17 #ifndef AGXDATA_ENTITYPTR_H 18 #define AGXDATA_ENTITYPTR_H 21 # pragma warning( disable: 4714 )// const' marked as __forceinline not inlined 37 template <
typename T>
class ScalarAttributeT;
38 template <
typename T>
class PointerAttributeT;
39 template <
typename T>
class VectorAttributeT;
40 template <
typename T>
class HashSetAttributeT;
41 template <
typename T>
class ArrayAttributeT;
42 template <
typename T>
class SharedAttributeT;
74 agxData::EntityData *getData();
75 const agxData::EntityData *getData()
const;
81 const T& dataSet()
const;
114 bool isValid()
const;
119 void verifyIndex()
const;
171 template <
typename T>
174 template <
typename T>
178 template <
typename T>
181 template <
typename T>
185 template <
typename T>
188 template <
typename T>
192 template <
typename T>
195 template <
typename T>
199 template <
typename T>
202 template <
typename T>
206 template <
typename T>
209 template <
typename T>
216 bool operator!()
const;
217 operator bool()
const;
219 bool operator<(
const EntityPtr& rhs )
const;
220 bool operator>(
const EntityPtr& rhs )
const;
225 void print(std::ostream& stream)
const;
228 static void TransformToAscii(
void *targetBuffer,
const void *sourceBuffer,
size_t numElements);
231 template <
typename T>
234 template <
typename T>
235 T& getElement(
const Attribute *attribute)
const;
AGXCORE_EXPORT UInt32 hash(const T &key)
void init(agxData::EntityStorage *storage, agx::Index id)
Set the target storage and id.
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
agxData::EntityData * getData()
Inheritance with partial specialization due to bug with ref_ptr containers.
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
bool operator==(T val, InvalidIndexStruct)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
Entity instance provides access to a single instance in an EntityStorage.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
AGXCORE_EXPORT const InvalidIndexStruct InvalidIndex
bool operator==(const EntityPtr &rhs) const
Type-specific Array used for fast access into the data held by a Buffer.
void invalidate()
Invalidate the entity pointer.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
An abstract attribute description, part of an Entity.
Contains classes for low level data storage for AGX.
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
bool operator>(const EntityPtr &rhs) const
AGXTERRAIN_EXPORT TimingStorage & getStorage()
bool operator!=(const EntityPtr &rhs) const
std::ostream & operator<<(std::ostream &output, const Attribute &attribute)
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
bool operator!=(T val, InvalidIndexStruct)
agx::VectorPOD< EntityPtr > EntityPtrVector
agxData::EntityStorage * getStorage() const
bool operator<(const EntityPtr &rhs) const
agx::Index calculateIndex() const
Calculate the index using the indirect id.