libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
qi::TypeSimpleIteratorImpl< T > Class Template Reference

#include <listtypeinterface.hxx>

Public Types

typedef T Storage
 
typedef DefaultTypeImplMethods
< Storage, TypeByPointerPOD< T > > 
TypeImpl
 

Public Member Functions

virtual AnyReference dereference (void *storage)
 
virtual void next (void **storage)
 Increment the iterator. More...
 
virtual bool equals (void *s1, void *s2)
 Check for iterator equality. More...
 
 _QI_BOUNCE_TYPE_METHODS (TypeImpl)
 
- Public Member Functions inherited from qi::IteratorTypeInterface
virtual TypeKind kind ()
 
- Public Member Functions inherited from qi::TypeInterface
virtual const TypeInfo & info ()=0
 Get the TypeInfo corresponding to this type. More...
 
virtual void * initializeStorage (void *ptr=0)=0
 
virtual void * ptrFromStorage (void **)=0
 
virtual void * clone (void *)=0
 Allocate a storage and copy the value given as an argument. More...
 
virtual void destroy (void *)=0
 Free all resources of a storage. More...
 
virtual bool less (void *a, void *b)=0
 
const char * infoString ()
 
qi::Signature signature (void *storage=0, bool resolveDynamic=false)
 

Static Public Member Functions

static AnyIterator make (const T &val)
 
- Static Public Member Functions inherited from qi::TypeInterface
static TypeInterface * fromSignature (const qi::Signature &sig)
 

Detailed Description

template<typename T>
class qi::TypeSimpleIteratorImpl< T >

Definition at line 38 of file listtypeinterface.hxx.

Member Typedef Documentation

template<typename T>
typedef T qi::TypeSimpleIteratorImpl< T >::Storage

Definition at line 41 of file listtypeinterface.hxx.

Definition at line 58 of file listtypeinterface.hxx.

Member Function Documentation

template<typename T>
qi::TypeSimpleIteratorImpl< T >::_QI_BOUNCE_TYPE_METHODS ( TypeImpl  )
template<typename T>
virtual AnyReference qi::TypeSimpleIteratorImpl< T >::dereference ( void *  storage)
inlinevirtual

Get the value pointed by the iterator

Returned reference is expected to point to somewhere in the iterator, or the container. It remains valid as long as the iterator is neither modified by next() nor destroyed, and the parent container is not destroyed.

Implements qi::IteratorTypeInterface.

Definition at line 42 of file listtypeinterface.hxx.

template<typename T>
virtual bool qi::TypeSimpleIteratorImpl< T >::equals ( void *  s1,
void *  s2 
)
inlinevirtual

Check for iterator equality.

Implements qi::IteratorTypeInterface.

Definition at line 52 of file listtypeinterface.hxx.

template<typename T>
static AnyIterator qi::TypeSimpleIteratorImpl< T >::make ( const T &  val)
inlinestatic

Definition at line 60 of file listtypeinterface.hxx.

template<typename T>
virtual void qi::TypeSimpleIteratorImpl< T >::next ( void **  storage)
inlinevirtual

Increment the iterator.

Implements qi::IteratorTypeInterface.

Definition at line 47 of file listtypeinterface.hxx.


The documentation for this class was generated from the following file: