13 #include <vlpi/entityType.h>
17 class DtStateDataWrapper;
27 template <
typename T_BaseClass>
61 operator const T_BaseClass* ()
const {
return dynamic_cast<const T_BaseClass*
>(
mySimObject.get()); };
128 #include "simObjectReferenceTemplate.inl"
UUID is a unique ID wrapper class.
Definition: uuid.h:59
const T_BaseClass * operator->() const
Member-access operator; asserts if the reference is not valid.
std::shared_ptr< const DtStateDataWrapper > mySimObject
Shared pointer to the underlying state-data object; null for an invalid reference.
Definition: simObjectReferenceTemplate.h:124
bool operator>(const DtSimObjectReferenceTemplate &rhs) const
Greater-than comparison by UUID.
Definition: simObjectReferenceTemplate.h:85
Contains the DtUUID class declaration.
bool operator==(const DtSimObjectReferenceTemplate &rhs) const
Equality comparison by UUID.
bool operator<(const DtSimObjectReferenceTemplate &rhs) const
Less-than comparison by UUID.
const T_BaseClass * operator*() const
Dereference operator; asserts if the reference is not valid.
static DtSimObjectReferenceTemplate nullReference()
Returns a null (invalid) reference suitable for default initialisation.
DtSimObjectReferenceTemplate()
Default-constructs a null (invalid) reference.
Definition: simObjectReferenceTemplate.h:32
virtual ~DtSimObjectReferenceTemplate()
Destructor.
bool isDeleted() const
Returns true if the underlying object has been deleted from the simulation.
const DtUUID & uuid() const
Returns the UUID of the referenced object, or a null UUID if invalid.
The DtSimObjectReferenceTemplate is a shared pointer that can be used amongst many object for access ...
Definition: simObjectReferenceTemplate.h:28
DtString objectName() const
Returns the human-readable name of the referenced object.
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: stateDataWrapper.h:49
DtEntityType entityType() const
Returns the DtEntityType of the referenced object, or a null DtEntityType if invalid.
void reset()
Resets this reference to a null (invalid) state.
bool isValid() const
Do not call the ->checkValidity() method to echk object validity as that could cause a crash if the o...
DtSimObjectReferenceTemplate & operator=(const DtStateDataWrapper *rhs)
Assigns a new raw state-data pointer to this reference.