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

#include <pointertypeinterface.hxx>

Public Types

typedef DefaultTypeImplMethods
< T *, TypeByValue< T * > > 
TypeMethodsImpl
 
- Public Types inherited from qi::PointerTypeInterface
enum  PointerKind { Raw, Shared }
 

Public Member Functions

TypeInterface * pointedType ()
 Get the type of the pointed element. More...
 
PointerKind pointerKind ()
 Return whether the pointer has raw or shared semantics. More...
 
AnyReference dereference (void *storage)
 Get the pointed element (must not be destroyed) More...
 
void setPointee (void **storage, void *pointer)
 Set new pointee value. pointer must be a pointer to type pointedType() More...
 
 _QI_BOUNCE_TYPE_METHODS (TypeMethodsImpl)
 
- Public Member Functions inherited from qi::PointerTypeInterface
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)
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 14 of file pointertypeinterface.hxx.

Member Typedef Documentation

template<typename T >
typedef DefaultTypeImplMethods<T*, TypeByValue<T*> > qi::PointerTypeInterfaceImpl< T >::TypeMethodsImpl

Definition at line 37 of file pointertypeinterface.hxx.

Member Function Documentation

template<typename T >
qi::PointerTypeInterfaceImpl< T >::_QI_BOUNCE_TYPE_METHODS ( TypeMethodsImpl  )
template<typename T >
AnyReference qi::PointerTypeInterfaceImpl< T >::dereference ( void *  storage)
inlinevirtual

Get the pointed element (must not be destroyed)

Implements qi::PointerTypeInterface.

Definition at line 23 of file pointertypeinterface.hxx.

template<typename T >
TypeInterface* qi::PointerTypeInterfaceImpl< T >::pointedType ( )
inlinevirtual

Get the type of the pointed element.

Implements qi::PointerTypeInterface.

Definition at line 17 of file pointertypeinterface.hxx.

template<typename T >
PointerKind qi::PointerTypeInterfaceImpl< T >::pointerKind ( )
inlinevirtual

Return whether the pointer has raw or shared semantics.

Implements qi::PointerTypeInterface.

Definition at line 22 of file pointertypeinterface.hxx.

template<typename T >
void qi::PointerTypeInterfaceImpl< T >::setPointee ( void **  storage,
void *  pointer 
)
inlinevirtual

Set new pointee value. pointer must be a pointer to type pointedType()

Implements qi::PointerTypeInterface.

Definition at line 30 of file pointertypeinterface.hxx.


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