17#ifndef AGXDATA_ENTITYINSTANCE_H
18#define AGXDATA_ENTITYINSTANCE_H
60 void init(agxData::EntityData* data,
agx::Index index);
75 agxData::EntityData* getData();
76 const agxData::EntityData* getData()
const;
100 bool isValid()
const;
105 void verifyIndex()
const;
112 bool operator!()
const;
113 operator bool()
const;
121 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
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
UInt32 hash(const T &key)