C++ TargetRTS
|
An object that identifies a capsule instance at run-time. More...
#include <RTActorId.h>
Public Member Functions | |
RTActorId (const RTActor *=nullptr) | |
Construction from an RTActor pointer. | |
RTActorId (const RTActorId &) | |
Construction from an RTActor reference. | |
operator RTActor * (void) const | |
RTActorId & | operator= (const RTActor *) |
RTActorId & | operator= (const RTActorId &) |
RTActor * | operator-> (void) const |
virtual int | operator== (const RTDataObject &) const override |
int | operator== (const RTActorRef &) const |
int | operator== (const RTActorId &) const |
int | operator!= (const RTDataObject &) const |
int | operator!= (const RTActorRef &) const |
int | operator!= (const RTActorId &) const |
int | isValid (void) const |
Determine if this object identifies a valid capsule instance. | |
RTActor * | getRTActor (void) const |
Return the wrapped RTActor pointer. | |
void | resetActor (void) |
Reset the capsule instance identifier. | |
virtual const RTObject_class * | getClassData (void) const override |
Return the type descriptor for the RTActor object. | |
Public Member Functions inherited from RTDataObject | |
RTDataObject (const RTDataObject &) | |
virtual int | operator== (const RTDataObject &) const |
int | operator!= (const RTDataObject &) const |
virtual RTDataObject * | copy (void) const |
char * | printString (void) const |
int | printString (char *buf, int size) const |
virtual int | put (RTEncoding &) const |
virtual int | ObjectForm (RTDecoding &) |
virtual const RTObject_class * | getClassData (void) const |
virtual const char * | getTypeName (void) const |
RTVersionId | getVersion (void) const |
int | isType (const char *) const |
int | isSameType (const RTObject_class *) const |
Static Public Attributes | |
static const RTObject_class | classData |
Type descriptor for the RTActor object. | |
Static Public Attributes inherited from RTDataObject | |
static const RTObject_class | classData |
Additional Inherited Members | |
Static Public Member Functions inherited from RTDataObject | |
static void | initialize (void) |
An object that identifies a capsule instance at run-time.
It is a wrapper object for an RTActor pointer.
|
overridevirtual |
Return the type descriptor for the RTActor object.
Reimplemented from RTDataObject.
RTActor * RTActorId::getRTActor | ( | void | ) | const |
int RTActorId::isValid | ( | void | ) | const |
Determine if this object identifies a valid capsule instance.
This function should be called immediately after incarnating a capsule instance to check if the incarnation was successful. Note that after destroying a capsule instance this function still returns 1 even if the wrapped RTActor pointer then is invalid. Make sure to call resetActor() for an RTActorId object that identifies a capsule instance that is destroyed.
|
overridevirtual |
Reimplemented from RTDataObject.
void RTActorId::resetActor | ( | void | ) |
Reset the capsule instance identifier.
This function should be called if the capsule instance is destroyed.