![]() |
VR-Link API Documentation for HLA 1.3
|
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link. More...
Collaboration diagram for DtObjectId:Public Member Functions | |
| DtObjectId () | |
| The Default constructor. More... | |
| DtObjectId (RTI::ObjectHandle id) | |
| DtObjectId (const char *str) | |
| This constructor from a string is not provided by the 1516 interface. More... | |
| DtObjectId (const DtNetObjectId &netId) | |
| This constructor from an integer is not allowed in 1516. More... | |
| DtObjectId (const DtObjectId &orig) | |
| DtObjectId & | operator= (const DtObjectId &orig) |
| int | operator== (const DtObjectId &orig) const |
| Equality operators. More... | |
| int | operator!= (const DtObjectId &orig) const |
| bool | operator< (const DtObjectId &orig) const |
| operator RTI::ObjectHandle () const | |
| virtual void | makePlaceholder () |
| makePlaceholder() causes this object, if it is invalid, to have a unique DtObjectId Hash Key, by setting the invalid ID to a unique number. More... | |
| virtual bool | valid () const |
| returns true if this instance represents a real RTI object. More... | |
| virtual int | invalidId () const |
| returns 0, if the object is valid, 1, if the object is invalid and not unique >1, if the object is unique (created as a placeholder) More... | |
| const char * | string () const |
Static Public Member Functions | |
| static const DtObjectId & | nullId () |
| static const DtObjectId & | defaultId () |
Protected Attributes | |
| RTI::ObjectHandle | myId |
| int | myValidityFlag |
Static Protected Attributes | |
| static int | nextPlaceholderNumber |
Private Attributes | |
| DtString | myMutableStringRep |
| This is a cashed value which is computed in string() More... | |
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
In HLA 13 DtObjects represent RTI::ObjectInstances. It is possible that an instance of a DtObject could be a placeholder for VR-Link and not correspond to an object in the RTI. In HLA 1516 DtObjects can be real objects, invalid objects, or invalid objects which are placeholders. The difference between invalid objects, and invalid objects which are placeholders is that the string() which is used to generate a hash key, will be the same for plane invalid objects, but for invalid objects which are placeholders, the string will be unique.
| DtObjectId::DtObjectId | ( | ) |
The Default constructor.
In 1516 this creates an invalid DtObject. When a DtObject is created using this default constructor it will have an invalid ID of 1.
| DtObjectId::DtObjectId | ( | RTI::ObjectHandle | id | ) |
| DtObjectId::DtObjectId | ( | const char * | str | ) |
This constructor from a string is not provided by the 1516 interface.
| DtObjectId::DtObjectId | ( | const DtNetObjectId & | netId | ) |
This constructor from an integer is not allowed in 1516.
| DtObjectId::DtObjectId | ( | const DtObjectId & | orig | ) |
|
static |
|
virtual |
returns 0, if the object is valid, 1, if the object is invalid and not unique >1, if the object is unique (created as a placeholder)
|
virtual |
makePlaceholder() causes this object, if it is invalid, to have a unique DtObjectId Hash Key, by setting the invalid ID to a unique number.
|
static |
| DtObjectId::operator RTI::ObjectHandle | ( | ) | const |
| int DtObjectId::operator!= | ( | const DtObjectId & | orig | ) | const |
| bool DtObjectId::operator< | ( | const DtObjectId & | orig | ) | const |
| DtObjectId& DtObjectId::operator= | ( | const DtObjectId & | orig | ) |
| int DtObjectId::operator== | ( | const DtObjectId & | orig | ) | const |
Equality operators.
| const char* DtObjectId::string | ( | ) | const |
|
virtual |
returns true if this instance represents a real RTI object.
|
protected |
|
mutableprivate |
This is a cashed value which is computed in string()
|
protected |
|
staticprotected |