libqi-api
2.8.7.4
|
#include <staticobjecttype.hpp>
Public Member Functions | |
void | initialize (const MetaObject &mo, const ObjectTypeData &data) |
const TypeInfo & | info () override |
Get the TypeInfo corresponding to this type. More... | |
const MetaObject & | metaObject (void *instance) override |
ObjectUid | uid (void *instance) const override |
qi::Future< AnyReference > | metaCall (void *instance, AnyObject context, unsigned int method, const GenericFunctionParameters ¶ms, MetaCallType callType, Signature returnSignature) override |
void | metaPost (void *instance, AnyObject context, unsigned int signal, const GenericFunctionParameters ¶ms) override |
qi::Future< SignalLink > | connect (void *instance, AnyObject context, unsigned int event, const SignalSubscriber &subscriber) override |
qi::Future< void > | disconnect (void *instance, AnyObject context, SignalLink linkId) override |
Disconnect an event link. Returns if disconnection was successful. More... | |
qi::Future< AnyValue > | property (void *instance, AnyObject context, unsigned int id) override |
qi::Future< void > | setProperty (void *instance, AnyObject context, unsigned int id, AnyValue value) override |
const std::vector< std::pair < TypeInterface *, std::ptrdiff_t > > & | parentTypes () override |
void * | initializeStorage (void *) override |
void * | ptrFromStorage (void **) override |
void * | clone (void *inst) override |
Allocate a storage and copy the value given as an argument. More... | |
void | destroy (void *) override |
Free all resources of a storage. More... | |
bool | less (void *a, void *b) override |
![]() | |
virtual TypeKind | kind () |
std::ptrdiff_t | inherits (TypeInterface *other) |
![]() | |
virtual | ~TypeInterface ()=default |
const char * | infoString () |
qi::Signature | signature (void *storage=nullptr, bool resolveDynamic=false) |
Additional Inherited Members | |
![]() | |
static TypeInterface * | fromSignature (const qi::Signature &sig) |
![]() | |
static const auto | INHERITS_FAILED = PTRDIFF_MAX |
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.
|
overridevirtual |
Allocate a storage and copy the value given as an argument.
Implements qi::TypeInterface.
|
overridevirtual |
Implements qi::ObjectTypeInterface.
|
overridevirtual |
Free all resources of a storage.
Implements qi::TypeInterface.
|
overridevirtual |
Disconnect an event link. Returns if disconnection was successful.
Implements qi::ObjectTypeInterface.
|
overridevirtual |
Get the TypeInfo corresponding to this type.
Implements qi::TypeInterface.
void qi::detail::StaticObjectTypeBase::initialize | ( | const MetaObject & | mo, |
const ObjectTypeData & | data | ||
) |
|
overridevirtual |
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.
|
overridevirtual |
Return true if a is less than b
Less must always work: compare pointers if you have to.
Implements qi::TypeInterface.
|
overridevirtual |
Implements qi::ObjectTypeInterface.
|
overridevirtual |
Implements qi::ObjectTypeInterface.
|
overridevirtual |
Implements qi::ObjectTypeInterface.
|
overridevirtual |
Implements qi::ObjectTypeInterface.
|
overridevirtual |
Implements qi::ObjectTypeInterface.
|
overridevirtual |
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.
|
overridevirtual |
Implements qi::ObjectTypeInterface.
|
overridevirtual |
Implements qi::ObjectTypeInterface.