141 using Ptr = std::shared_ptr<DtAttribute>;
214 operator const T()
const;
unsigned int myKey
Key used for locking and unlocking.
Definition attributeHandle.h:166
static unsigned int nextKey()
Generates a new unique key for locking.
bool assigned() const
Checks if this handle is assigned to an attribute.
friend class DtAttribute
Definition attributeHandle.h:168
virtual DtAttribute * operator->()
Dereference operator for accessing the attribute.
bool unlock()
Unlocks the attribute.
virtual ~DtAttributeHandle()
Virtual destructor.
const DtAttributeHandle operator[](const unsigned int i) const
Const indexing operator for accessing child attributes by index.
bool lock()
Locks the attribute.
DtAttributeHandle operator[](const std::string &name)
Indexing operator for accessing child attributes by name.
DtAttributeHandle(Ptr ptr)
Constructor that takes a shared pointer to an attribute.
void assign(const DtAttributeHandle &other)
Assigns this handle to refer to the same attribute as another handle.
const DtAttributeHandle operator[](const std::string &name) const
Const indexing operator for accessing child attributes by name.
Ptr myPtr
Shared pointer to the attribute.
Definition attributeHandle.h:160
bool assignedSame(const DtAttributeHandle &other) const
Checks if this handle is assigned to the same attribute as another handle.
DtAttributeHandle()
Default constructor.
DtAttributeHandle(const DtAttributeHandle &other)
Copy constructor.
void unassign()
Unassigns this handle from its attribute.
bool locking() const
Checks if this handle has locking enabled.
std::shared_ptr< DtAttribute > Ptr
Shared pointer type for attributes.
Definition attributeHandle.h:141
const DtAttributeHandleType< T > as() const
Converts this handle to a const typed handle.
DtAttributeHandleType< T > as()
Converts this handle to a typed handle.
DtAttributeHandle & operator=(const DtAttributeHandle &other)
void avoidNull() const
Ensures that the handle is assigned to an attribute.
virtual const DtAttribute * operator->() const
Const dereference operator for accessing the attribute.
DtAttributeHandle operator[](const unsigned int i)
Indexing operator for accessing child attributes by index.
bool myLocking
Flag indicating if this handle uses locking.
Definition attributeHandle.h:163
Type-specific handle class for attributes.
Definition attributeHandle.h:181
DtAttributeHandleType< T > & operator=(const T &newValue)
Assignment operator for setting the attribute value.
DtAttributeHandleType(const DtAttributeHandle &other)
Constructor from a generic attribute handle.
DtAttributeHandleType(const DtAttributeHandleType< T > &other)
Copy constructor.
virtual DtAttributeType< T > * operator->() override
Dereference operator for accessing the typed attribute.
DtAttributeHandleType()
Default constructor.
virtual const DtAttributeType< T > * operator->() const override
Const dereference operator for accessing the typed attribute.
virtual ~DtAttributeHandleType() override
Virtual destructor.
const T & operator*() const
Core attribute class for shared data storage.
Definition attribute.h:34
Type-specific attribute class.
Definition attribute.h:516
Defines export macros for the VREngage Utility library.
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
bool operator!=(const makVre::DtAttributeHandleType< T > &a, const T &b)
bool operator==(const makVre::DtAttributeHandleType< T > &a, const T &b)