21 #ifndef GENERATED_AGX_REFERENCED_H_PLUGIN 22 #define GENERATED_AGX_REFERENCED_H_PLUGIN 24 #define AGX_ENTITY_WRAPPER 1 28 # pragma warning(push) 30 # pragma warning( disable : 4505 ) 32 # pragma warning( disable : 4251 ) 34 # pragma warning( disable : 4355 ) 36 # pragma warning( disable: 4714 ) 54 class ReferencedModel;
57 class ReferencedInstance;
58 class ReferencedSemantics;
83 virtual void shutdownCleanup()
override;
95 virtual void configure(agx::TiXmlElement* eEntity)
override;
96 virtual void initAttributeAccessors()
override;
103 #ifndef AGX_REFERENCED_DATA_SET_OVERRIDE 104 #define AGX_REFERENCED_DATA_SET 108 ReferencedInstance operator[] (
size_t index);
126 virtual ~ReferencedData() {}
127 virtual void setNumElements(
agx::Index numElements)
override;
130 ReferencedData& operator= (
const ReferencedData&) {
return *
this; }
157 friend class ReferencedInstance;
158 ReferencedSemantics();
186 ReferencedData* getData();
187 const ReferencedData* getData()
const;
215 ReferencedInstance();
216 ReferencedInstance(ReferencedData* data,
agx::Index index);
221 ReferencedData* getData();
222 const ReferencedData* getData()
const;
254 inline ReferencedInstance
agx::ReferencedData::operator[] (
size_t index) {
return ReferencedInstance(
this, (
agx::Index)index); }
261 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
268 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
276 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
285 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
313 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
320 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
328 AGX_FORCE_INLINE agx::UInt32& ReferencedInstance::referenceCount() { verifyIndex();
return getData()->referenceCount[getIndex()]; }
329 AGX_FORCE_INLINE agx::UInt32 const& ReferencedInstance::referenceCount()
const { verifyIndex();
return getData()->referenceCount[getIndex()]; }
347 # pragma warning(pop) 350 #undef AGX_ENTITY_WRAPPER 351 #undef AGX_ENTITY_NAMESPACE AGXCORE_EXPORT ReferencedInstance instance()
AGXCORE_EXPORT agx::Vector< agxData::EntityPtr *> & observers()
agxData::EntityData * getData()
agxData::EntityInstance instance()
An entity reference is a safe/referencing handle to an entity instance whose model is descendant from...
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
static agxData::ScalarAttributeT< agx::Vector< agxData::EntityPtr *> > * observersAttribute
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...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::SpinMutex > * observerMutexAttribute
ReferencedModel ModelType
Type-specific Array used for fast access into the data held by a Buffer.
AGXCORE_EXPORT agx::UInt32 & referenceCount()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT ReferencedPtr()
static ReferencedModel * instance()
Contains classes for low level data storage for AGX.
static agxData::ScalarAttributeT< agx::UInt32 > * referenceCountAttribute
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Abstract description of the data attributes for the Referenced entity.
bool isInstanceOf(agxData::EntityModel *model) const
Pointer to a entity instance of type Referenced.
AGXCORE_EXPORT ReferencedPtr & operator=(const agxData::EntityPtr &ptr)
ReferencedInstance InstanceType
ReferencedData * getData()
#define DOXYGEN_END_INTERNAL_BLOCK()
agxData::EntityRef< ReferencedPtr > ReferencedRef
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXCORE_EXPORT ReferencedSemantics * operator->()
AGXCORE_EXPORT agx::SpinMutex & observerMutex()