|
libqi-api
release-2.5.3-2016-11-18
|
#include <staticobjecttype.hpp>
Public Member Functions | |
| void | initialize (const MetaObject &mo, const ObjectTypeData &data) |
| virtual const TypeInfo & | info () |
| Get the TypeInfo corresponding to this type. More... | |
| virtual const MetaObject & | metaObject (void *instance) |
| virtual qi::Future< AnyReference > | metaCall (void *instance, AnyObject context, unsigned int method, const GenericFunctionParameters ¶ms, MetaCallType callType, Signature returnSignature) |
| virtual void | metaPost (void *instance, AnyObject context, unsigned int signal, const GenericFunctionParameters ¶ms) |
| virtual qi::Future< SignalLink > | connect (void *instance, AnyObject context, unsigned int event, const SignalSubscriber &subscriber) |
| virtual qi::Future< void > | disconnect (void *instance, AnyObject context, SignalLink linkId) |
| Disconnect an event link. Returns if disconnection was successful. More... | |
| virtual qi::Future< AnyValue > | property (void *instance, AnyObject context, unsigned int id) |
| virtual qi::Future< void > | setProperty (void *instance, AnyObject context, unsigned int id, AnyValue value) |
| virtual const std::vector < std::pair< TypeInterface *, int > > & | parentTypes () |
| virtual void * | initializeStorage (void *) |
| virtual void * | ptrFromStorage (void **) |
| virtual void * | clone (void *inst) |
| Allocate a storage and copy the value given as an argument. More... | |
| virtual void | destroy (void *) |
| Free all resources of a storage. More... | |
| virtual bool | less (void *a, void *b) |
Public Member Functions inherited from qi::ObjectTypeInterface | |
| virtual TypeKind | kind () |
| int | inherits (TypeInterface *other) |
Public Member Functions inherited from qi::TypeInterface | |
| 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) |
Static Public Attributes inherited from qi::ObjectTypeInterface | |
| static const int | INHERITS_FAILED = INT_MIN |
One instance of this class represents one C++ class
To avoid exposing this class, which means not being templated by the class type, we just store the two things we need in an erased way:
Definition at line 61 of file staticobjecttype.hpp.
|
virtual |
Allocate a storage and copy the value given as an argument.
Implements qi::TypeInterface.
|
virtual |
Implements qi::ObjectTypeInterface.
|
virtual |
Free all resources of a storage.
Implements qi::TypeInterface.
|
virtual |
Disconnect an event link. Returns if disconnection was successful.
Implements qi::ObjectTypeInterface.
|
virtual |
Get the TypeInfo corresponding to this type.
Implements qi::TypeInterface.
| void qi::detail::StaticObjectTypeBase::initialize | ( | const MetaObject & | mo, |
| const ObjectTypeData & | data | ||
| ) |
|
virtual |
Initialize and return a new storage, from nothing or a T*.
If ptr is not null, it should be used as a storage (the method can usually just return ptr in that case).
Implements qi::TypeInterface.
|
virtual |
Return true if a is less than b
Less must always work: compare pointers if you have to.
Implements qi::TypeInterface.
|
virtual |
Implements qi::ObjectTypeInterface.
|
virtual |
Implements qi::ObjectTypeInterface.
|
virtual |
Implements qi::ObjectTypeInterface.
|
virtual |
Implements qi::ObjectTypeInterface.
|
virtual |
Implements qi::ObjectTypeInterface.
|
virtual |
Get pointer to type from pointer to storage.
This allows for storing an integer value (for instance) directily into the pointer and avoid an allocation.
This method should be called on storage before casting it to a specific type.
Implements qi::TypeInterface.
|
virtual |
Implements qi::ObjectTypeInterface.