libqi-api  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
qi::TypeBufferImpl Class Reference

#include <buffertypeinterface.hxx>

Public Types

using Methods = DefaultTypeImplMethods< Buffer, TypeByPointerPOD< Buffer > >
 

Public Member Functions

std::pair< char *, size_t > get (void *storage) override
 Get the buffer of data (not a copy) More...
 
void set (void **storage, const char *ptr, size_t sz) override
 Set the buffer of data (buffer is copied) More...
 
 _QI_BOUNCE_TYPE_METHODS (Methods)
 
- Public Member Functions inherited from qi::RawTypeInterface
TypeKind kind () override
 
- Public Member Functions inherited from qi::TypeInterface
virtual ~TypeInterface ()=default
 
virtual const TypeInfoinfo ()=0
 Get the TypeInfo corresponding to this type. More...
 
virtual void * initializeStorage (void *ptr=nullptr)=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=nullptr, bool resolveDynamic=false)
 

Additional Inherited Members

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

Detailed Description

Definition at line 14 of file buffertypeinterface.hxx.

Member Typedef Documentation

Definition at line 33 of file buffertypeinterface.hxx.

Member Function Documentation

qi::TypeBufferImpl::_QI_BOUNCE_TYPE_METHODS ( Methods  )
std::pair<char*, size_t> qi::TypeBufferImpl::get ( void *  storage)
inlineoverridevirtual

Get the buffer of data (not a copy)

Implements qi::RawTypeInterface.

Definition at line 17 of file buffertypeinterface.hxx.

void qi::TypeBufferImpl::set ( void **  storage,
const char *  ptr,
size_t  sz 
)
inlineoverridevirtual

Set the buffer of data (buffer is copied)

Implements qi::RawTypeInterface.

Definition at line 27 of file buffertypeinterface.hxx.


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