21 #ifndef GENERATED_AGX_TASKTIMING_H_PLUGIN 22 #define GENERATED_AGX_TASKTIMING_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 ) 55 class TaskTimingModel;
58 class TaskTimingInstance;
59 class TaskTimingSemantics;
84 virtual void shutdownCleanup()
override;
99 virtual void configure(agx::TiXmlElement* eEntity)
override;
100 virtual void initAttributeAccessors()
override;
107 #ifndef AGX_TASKTIMING_DATA_SET_OVERRIDE 108 #define AGX_TASKTIMING_DATA_SET 112 TaskTimingInstance operator[] (
size_t index);
136 virtual ~TaskTimingData() {}
137 virtual void setNumElements(
agx::Index numElements)
override;
140 TaskTimingData& operator= (
const TaskTimingData&) {
return *
this; }
154 agx::Name const& getImplementation()
const;
164 void setImplementation(
agx::Name const& value);
165 void setNumSubtasks(
agx::UInt const& value);
173 friend class TaskTimingInstance;
174 TaskTimingSemantics();
202 TaskTimingData* getData();
203 const TaskTimingData* getData()
const;
243 TaskTimingInstance();
244 TaskTimingInstance(TaskTimingData* data,
agx::Index index);
249 TaskTimingData* getData();
250 const TaskTimingData* getData()
const;
297 inline TaskTimingInstance
agx::TaskTimingData::operator[] (
size_t index) {
return TaskTimingInstance(
this, (
agx::Index)index); }
304 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
311 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
319 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
328 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
365 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
372 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
381 AGX_FORCE_INLINE agx::Name const& TaskTimingInstance::name()
const { verifyIndex();
return getData()->name[getIndex()]; }
383 AGX_FORCE_INLINE agx::Name& TaskTimingInstance::implementation() { verifyIndex();
return getData()->implementation[getIndex()]; }
384 AGX_FORCE_INLINE agx::Name const& TaskTimingInstance::implementation()
const { verifyIndex();
return getData()->implementation[getIndex()]; }
386 AGX_FORCE_INLINE agx::UInt& TaskTimingInstance::numSubtasks() { verifyIndex();
return getData()->numSubtasks[getIndex()]; }
387 AGX_FORCE_INLINE agx::UInt const& TaskTimingInstance::numSubtasks()
const { verifyIndex();
return getData()->numSubtasks[getIndex()]; }
390 AGX_FORCE_INLINE agx::Real64 const& TaskTimingInstance::wallTime()
const { verifyIndex();
return getData()->wallTime[getIndex()]; }
393 AGX_FORCE_INLINE agx::Real64 const& TaskTimingInstance::computeCost()
const { verifyIndex();
return getData()->computeCost[getIndex()]; }
396 AGX_FORCE_INLINE agx::Real64 const& TaskTimingInstance::overheadTime()
const { verifyIndex();
return getData()->overheadTime[getIndex()]; }
408 # pragma warning(pop) 411 #undef AGX_ENTITY_WRAPPER 412 #undef AGX_ENTITY_NAMESPACE TaskTimingData * getData()
agxData::EntityData * getData()
static TaskTimingModel * instance()
AGXPHYSICS_EXPORT agx::Real64 & computeCost()
agxData::EntityInstance instance()
Pointer to a entity instance of type TaskTiming.
TaskTimingInstance InstanceType
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())
#define AGXPHYSICS_EXPORT
static agxData::ScalarAttributeT< agx::Name > * implementationAttribute
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)
AGXPHYSICS_EXPORT TaskTimingPtr()
bool isInstanceOf(agxData::EntityModel *model) const
Representation of a name string.
static agxData::ScalarAttributeT< agx::Real64 > * computeCostAttribute
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT TaskTimingInstance instance()
AGXPHYSICS_EXPORT agx::UInt & numSubtasks()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
TaskTimingModel ModelType
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT agx::Name & name()
AGXPHYSICS_EXPORT agx::Real64 & wallTime()
AGXPHYSICS_EXPORT TaskTimingPtr & operator=(const agxData::EntityPtr &ptr)
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXPHYSICS_EXPORT agx::Name & implementation()
static agxData::ScalarAttributeT< agx::Real64 > * overheadTimeAttribute
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT TaskTimingSemantics * operator->()
static agxData::ScalarAttributeT< agx::Name > * nameAttribute
AGXPHYSICS_EXPORT agx::Real64 & overheadTime()
static agxData::ScalarAttributeT< agx::UInt > * numSubtasksAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
static agxData::ScalarAttributeT< agx::Real64 > * wallTimeAttribute
#define DOXYGEN_START_INTERNAL_BLOCK()
Abstract description of the data attributes for the TaskTiming entity.