![]() |
VR-Forces Developer's Guide
|
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the underlying DtSimObject. The operators will assert if the object is not valid, or, you can check the isValid() method before calling if you are unsure. An object will be invalid if it has been deleted.
Public Member Functions | |
| DtSimObjectReference () | |
| DtSimObjectReference (const DtSimObjectReference &) | |
| virtual | ~DtSimObjectReference () |
| DtSimObjectReference & | operator= (const DtSimObjectReference &) |
| const DtSimObject * | operator-> () const |
| const DtSimObject * | operator* () const |
| operator const DtSimObject * () const | |
| const DtUUID & | uuid () const |
| void | reset () |
| bool | operator< (const DtSimObjectReference &rhs) const |
| bool | operator> (const DtSimObjectReference &rhs) |
| bool | operator== (const DtSimObjectReference &) const |
| bool | operator< (const DtUUID &rhs) const |
| bool | operator> (const DtUUID &rhs) |
| bool | operator== (const DtUUID &) const |
| operator DtUUID () const | |
| DtString | objectName () const |
| bool | isValid () const |
| bool | isDeleted () const |
Static Public Member Functions | |
| static DtSimObjectReference | nullReference () |
Protected Attributes | |
| std::shared_ptr< const DtSimObject > | mySimObject |
Private Member Functions | |
| DtSimObjectReference (const DtSimObject *o) | |
| DtSimObjectReference & | operator= (const DtSimObject *rhs) |
Friends | |
| class | DtSimObjectManager |
| DtSimObjectReference::DtSimObjectReference | ( | ) |
| DtSimObjectReference::DtSimObjectReference | ( | const DtSimObjectReference & | ) |
|
virtual |
|
private |
| DtSimObjectReference& DtSimObjectReference::operator= | ( | const DtSimObjectReference & | ) |
| const DtSimObject* DtSimObjectReference::operator-> | ( | ) | const |
| const DtSimObject* DtSimObjectReference::operator* | ( | ) | const |
|
inline |
| const DtUUID& DtSimObjectReference::uuid | ( | ) | const |
| void DtSimObjectReference::reset | ( | ) |
|
static |
| bool DtSimObjectReference::operator< | ( | const DtSimObjectReference & | rhs | ) | const |
|
inline |
| bool DtSimObjectReference::operator== | ( | const DtSimObjectReference & | ) | const |
| DtSimObjectReference::operator DtUUID | ( | ) | const |
| DtString DtSimObjectReference::objectName | ( | ) | const |
| bool DtSimObjectReference::isValid | ( | ) | const |
| bool DtSimObjectReference::isDeleted | ( | ) | const |
|
private |
|
friend |
|
protected |