libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
qi::TypeImpl< std::pair< F, S > > Class Template Reference

#include <structtypeinterface.hxx>

Public Types

typedef DefaultTypeImplMethods
< std::pair< F, S >
, TypeByPointerPOD< std::pair
< F, S > > > 
Methods
 
typedef std::pair< F, S > BackendType
 

Public Member Functions

 TypeImpl ()
 
std::vector< TypeInterface * > memberTypes ()
 
void * get (void *storage, unsigned int index)
 Get the field storage at index (not a copy) More...
 
void set (void **storage, unsigned int index, void *valStorage)
 Set the fields of the struct at index (copies the value given) More...
 
 _QI_BOUNCE_TYPE_METHODS (Methods)
 
- Public Member Functions inherited from qi::StructTypeInterface
AnyReferenceVector values (void *storage)
 Get all the fields of the structure. More...
 
virtual std::vector< void * > get (void *storage)
 Get all the fields storages of the struct (not a copy) More...
 
virtual void set (void **storage, const std::vector< void * > &)
 Set all the fields of the struct (copies the values given in the vector) More...
 
virtual TypeKind kind ()
 
virtual std::vector< std::string > elementsName ()
 Get the names of the fields of the struct. More...
 
virtual std::string className ()
 Get the type name of the struct. More...
 
virtual bool canDropFields (void *storage, const std::vector< std::string > &fieldNames)
 Return whether struct accepts field-name-based conversion that drops fieldNames. More...
 
virtual bool fillMissingFields (std::map< std::string, AnyValue > &fields, const std::vector< std::string > &missing)
 Fill missing fields caused by conversion from a different struct. Return whether fill succeeded. More...
 
- 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)
 

Public Attributes

std::vector< TypeInterface * > _memberTypes
 

Additional Inherited Members

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

Detailed Description

template<typename F, typename S>
class qi::TypeImpl< std::pair< F, S > >

Definition at line 462 of file structtypeinterface.hxx.

Member Typedef Documentation

template<typename F , typename S >
typedef std::pair<F, S> qi::TypeImpl< std::pair< F, S > >::BackendType

Definition at line 466 of file structtypeinterface.hxx.

template<typename F , typename S >
typedef DefaultTypeImplMethods<std::pair<F, S>, TypeByPointerPOD<std::pair<F,S> > > qi::TypeImpl< std::pair< F, S > >::Methods

Definition at line 465 of file structtypeinterface.hxx.

Constructor & Destructor Documentation

template<typename F , typename S >
qi::TypeImpl< std::pair< F, S > >::TypeImpl ( )
inline

Definition at line 467 of file structtypeinterface.hxx.

Member Function Documentation

template<typename F , typename S >
qi::TypeImpl< std::pair< F, S > >::_QI_BOUNCE_TYPE_METHODS ( Methods  )
template<typename F , typename S >
void* qi::TypeImpl< std::pair< F, S > >::get ( void *  storage,
unsigned int  index 
)
inlinevirtual

Get the field storage at index (not a copy)

Implements qi::StructTypeInterface.

Definition at line 475 of file structtypeinterface.hxx.

template<typename F , typename S >
std::vector<TypeInterface*> qi::TypeImpl< std::pair< F, S > >::memberTypes ( )
inlinevirtual

Get all the member types

Note that this function does not recieve a storage argument. There must be one instance of StructTypeInterface per type of struct. If you need dynamic structs, look at makeTupleType().

Implements qi::StructTypeInterface.

Definition at line 474 of file structtypeinterface.hxx.

template<typename F , typename S >
void qi::TypeImpl< std::pair< F, S > >::set ( void **  storage,
unsigned int  index,
void *  valStorage 
)
inlinevirtual

Set the fields of the struct at index (copies the value given)

Implements qi::StructTypeInterface.

Definition at line 484 of file structtypeinterface.hxx.

Member Data Documentation

template<typename F , typename S >
std::vector<TypeInterface*> qi::TypeImpl< std::pair< F, S > >::_memberTypes

Definition at line 472 of file structtypeinterface.hxx.


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