21 #ifndef GENERATED_AGX_THREADTIMELINEENTRY_H_PLUGIN 22 #define GENERATED_AGX_THREADTIMELINEENTRY_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 ThreadTimelineEntryModel;
56 class ThreadTimelineEntryData;
57 class ThreadTimelineEntryPtr;
58 class ThreadTimelineEntryInstance;
59 class ThreadTimelineEntrySemantics;
84 virtual void shutdownCleanup()
override;
105 virtual void configure(agx::TiXmlElement* eEntity)
override;
106 virtual void initAttributeAccessors()
override;
113 #ifndef AGX_THREADTIMELINEENTRY_DATA_SET_OVERRIDE 114 #define AGX_THREADTIMELINEENTRY_DATA_SET 115 class AGXCORE_EXPORT ThreadTimelineEntryData :
public agxData::EntityData
118 ThreadTimelineEntryInstance operator[] (
size_t index);
151 ThreadTimelineEntryData();
154 virtual ~ThreadTimelineEntryData() {}
155 virtual void setNumElements(
agx::Index numElements)
override;
158 ThreadTimelineEntryData& operator= (
const ThreadTimelineEntryData&) {
return *
this; }
203 friend class ThreadTimelineEntryInstance;
204 ThreadTimelineEntrySemantics();
227 AGXCORE_EXPORT const ThreadTimelineEntryInstance instance()
const;
230 AGXCORE_EXPORT const ThreadTimelineEntrySemantics* operator->()
const;
232 ThreadTimelineEntryData* getData();
233 const ThreadTimelineEntryData* getData()
const;
303 ThreadTimelineEntryInstance();
304 ThreadTimelineEntryInstance(ThreadTimelineEntryData* data,
agx::Index index);
309 ThreadTimelineEntryData* getData();
310 const ThreadTimelineEntryData* getData()
const;
387 inline ThreadTimelineEntryInstance
agx::ThreadTimelineEntryData::operator[] (
size_t index) {
return ThreadTimelineEntryInstance(
this, (
agx::Index)index); }
394 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
401 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
409 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
418 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
467 AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance() {}
473 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
480 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
489 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryInstance::taskId()
const { verifyIndex();
return getData()->taskId[getIndex()]; }
491 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::startTimeGlobal() { verifyIndex();
return getData()->startTimeGlobal[getIndex()]; }
492 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::startTimeGlobal()
const { verifyIndex();
return getData()->startTimeGlobal[getIndex()]; }
494 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::endTimeGlobal() { verifyIndex();
return getData()->endTimeGlobal[getIndex()]; }
495 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::endTimeGlobal()
const { verifyIndex();
return getData()->endTimeGlobal[getIndex()]; }
497 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::startTimeFrame() { verifyIndex();
return getData()->startTimeFrame[getIndex()]; }
498 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::startTimeFrame()
const { verifyIndex();
return getData()->startTimeFrame[getIndex()]; }
500 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::endTimeFrame() { verifyIndex();
return getData()->endTimeFrame[getIndex()]; }
501 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::endTimeFrame()
const { verifyIndex();
return getData()->endTimeFrame[getIndex()]; }
503 AGX_FORCE_INLINE agx::String& ThreadTimelineEntryInstance::description() { verifyIndex();
return getData()->description[getIndex()]; }
504 AGX_FORCE_INLINE agx::String const& ThreadTimelineEntryInstance::description()
const { verifyIndex();
return getData()->description[getIndex()]; }
506 AGX_FORCE_INLINE agx::UInt32& ThreadTimelineEntryInstance::costEstimate() { verifyIndex();
return getData()->costEstimate[getIndex()]; }
507 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryInstance::costEstimate()
const { verifyIndex();
return getData()->costEstimate[getIndex()]; }
510 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryInstance::poolSize()
const { verifyIndex();
return getData()->poolSize[getIndex()]; }
513 AGX_FORCE_INLINE agx::UInt8 const& ThreadTimelineEntryInstance::jobType()
const { verifyIndex();
return getData()->jobType[getIndex()]; }
516 AGX_FORCE_INLINE agx::UInt64 const& ThreadTimelineEntryInstance::jobPtr()
const { verifyIndex();
return getData()->jobPtr[getIndex()]; }
518 AGX_FORCE_INLINE agx::String& ThreadTimelineEntryInstance::extraDataTitle() { verifyIndex();
return getData()->extraDataTitle[getIndex()]; }
519 AGX_FORCE_INLINE agx::String const& ThreadTimelineEntryInstance::extraDataTitle()
const { verifyIndex();
return getData()->extraDataTitle[getIndex()]; }
522 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::extraData()
const { verifyIndex();
return getData()->extraData[getIndex()]; }
525 AGX_FORCE_INLINE ThreadTimelineEntrySemantics::ThreadTimelineEntrySemantics() {}
531 AGX_TYPE_BINDING(agx::ThreadTimelineEntryInstance,
"ThreadTimelineEntryInstance")
534 # pragma warning(pop) 537 #undef AGX_ENTITY_WRAPPER 538 #undef AGX_ENTITY_NAMESPACE Pointer to a entity instance of type ThreadTimelineEntry.
agxData::EntityData * getData()
agxData::EntityInstance instance()
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())
ThreadTimelineEntryInstance InstanceType
static ThreadTimelineEntryModel * instance()
Entity instance provides access to a single instance in an EntityStorage.
ThreadTimelineEntryData * getData()
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
AGXCORE_EXPORT agx::Real64 & startTimeGlobal()
ThreadTimelineEntryData DataType
static agxData::ScalarAttributeT< agx::UInt32 > * costEstimateAttribute
static agxData::ScalarAttributeT< agx::Real64 > * extraDataAttribute
static agxData::ScalarAttributeT< agx::String > * extraDataTitleAttribute
static agxData::ScalarAttributeT< agx::Real64 > * endTimeGlobalAttribute
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::ScalarAttributeT< agx::UInt32 > * poolSizeAttribute
AGXCORE_EXPORT agx::Real64 & endTimeGlobal()
AGXCORE_EXPORT agx::UInt32 & poolSize()
static agxData::ScalarAttributeT< agx::Real64 > * endTimeFrameAttribute
AGXCORE_EXPORT agx::Real64 & extraData()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ThreadTimelineEntryPtr PtrT
static agxData::ScalarAttributeT< agx::Real64 > * startTimeFrameAttribute
Contains classes for low level data storage for AGX.
AGXCORE_EXPORT agx::UInt32 & taskId()
ThreadTimelineEntryModel ModelType
Abstract description of the data attributes for the ThreadTimelineEntry entity.
AGXCORE_EXPORT agx::Real64 & endTimeFrame()
static agxData::ScalarAttributeT< agx::String > * descriptionAttribute
static agxData::ScalarAttributeT< agx::UInt64 > * jobPtrAttribute
AGXCORE_EXPORT agx::String & extraDataTitle()
AGXCORE_EXPORT ThreadTimelineEntryPtr()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXCORE_EXPORT ThreadTimelineEntrySemantics * operator->()
AGXCORE_EXPORT agx::UInt8 & jobType()
bool isInstanceOf(agxData::EntityModel *model) const
AGXCORE_EXPORT ThreadTimelineEntryPtr & operator=(const agxData::EntityPtr &ptr)
AGXCORE_EXPORT ThreadTimelineEntryInstance instance()
AGXCORE_EXPORT agx::String & description()
static agxData::ScalarAttributeT< agx::Real64 > * startTimeGlobalAttribute
static agxData::ScalarAttributeT< agx::UInt8 > * jobTypeAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * taskIdAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXCORE_EXPORT agx::Real64 & startTimeFrame()
AGXCORE_EXPORT agx::UInt32 & costEstimate()
AGXCORE_EXPORT agx::UInt64 & jobPtr()