17 #ifndef AGXDATA_ENTITYINSTANCE_H
18 #define AGXDATA_ENTITYINSTANCE_H
76 agxData::EntityData* getData();
77 const agxData::EntityData* getData()
const;
101 bool isValid()
const;
106 void verifyIndex()
const;
113 bool operator!()
const;
114 operator bool()
const;
122 static void TransformToAscii(
void *targetBuffer,
const void *sourceBuffer,
size_t numElements);
Entity instance provides access to a single instance in an EntityStorage.
~EntityInstance()=default
Destructor.
bool operator!() const
Boolean operators, implemented using isValid.
bool operator<(const EntityInstance &rhs) const
void init(agxData::EntityData *data, agx::Index index)
Initialize an instance.
bool operator!=(const EntityInstance &rhs) const
agx::Index getIndex() const
bool operator==(const EntityInstance &rhs) const
bool operator>(const EntityInstance &rhs) const
EntityInstance()
Constructors.
static void TransformToAscii(void *targetBuffer, const void *sourceBuffer, size_t numElements)
agxData::EntityStorage * getStorage()
Alias for getData()->getStorage()
agxData::EntityData * getData()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
Data storage for a collection of entity instances of a specified EntityModel.
Contains classes for low level data storage for AGX.
std::ostream & operator<<(std::ostream &output, const Attribute &attribute)
agxData::EntityData * EntityDataPtr
AGXTERRAIN_EXPORT TimingStorage & getStorage()
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT UInt32 hash(const T &key)
bool operator!=(T val, InvalidIndexStruct)
bool operator==(T val, InvalidIndexStruct)
AGXCORE_EXPORT const InvalidIndexStruct InvalidIndex
void AGXPHYSICS_EXPORT init()
Initialize agx.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())