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;
105 virtual void configure(agx::TiXmlElement* eEntity)
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; }
202 friend class ThreadTimelineEntryPtr;
203 friend class ThreadTimelineEntryInstance;
204 ThreadTimelineEntrySemantics();
233 const ThreadTimelineEntryData*
getData()
const;
298 #ifdef AGX_GENERATED_TOLUA_WRAPPER
299 inline agx::UInt32 const& getTaskId()
const {
return (*this)->getTaskId(); }
300 inline agx::Real64 const& getStartTimeGlobal()
const {
return (*this)->getStartTimeGlobal(); }
301 inline agx::Real64 const& getEndTimeGlobal()
const {
return (*this)->getEndTimeGlobal(); }
302 inline agx::Real64 const& getStartTimeFrame()
const {
return (*this)->getStartTimeFrame(); }
303 inline agx::Real64 const& getEndTimeFrame()
const {
return (*this)->getEndTimeFrame(); }
304 inline agx::String const& getDescription()
const {
return (*this)->getDescription(); }
305 inline agx::UInt32 const& getCostEstimate()
const {
return (*this)->getCostEstimate(); }
306 inline agx::UInt32 const& getPoolSize()
const {
return (*this)->getPoolSize(); }
307 inline agx::UInt8 const& getJobType()
const {
return (*this)->getJobType(); }
308 inline agx::UInt64 const& getJobPtr()
const {
return (*this)->getJobPtr(); }
309 inline agx::String const& getExtraDataTitle()
const {
return (*this)->getExtraDataTitle(); }
310 inline agx::Real64 const& getExtraData()
const {
return (*this)->getExtraData(); }
313 inline void setTaskId(
agx::UInt32 const& value) { (*this)->setTaskId(value); }
314 inline void setStartTimeGlobal(
agx::Real64 const& value) { (*this)->setStartTimeGlobal(value); }
315 inline void setEndTimeGlobal(
agx::Real64 const& value) { (*this)->setEndTimeGlobal(value); }
316 inline void setStartTimeFrame(
agx::Real64 const& value) { (*this)->setStartTimeFrame(value); }
317 inline void setEndTimeFrame(
agx::Real64 const& value) { (*this)->setEndTimeFrame(value); }
318 inline void setDescription(
agx::String const& value) { (*this)->setDescription(value); }
319 inline void setCostEstimate(
agx::UInt32 const& value) { (*this)->setCostEstimate(value); }
320 inline void setPoolSize(
agx::UInt32 const& value) { (*this)->setPoolSize(value); }
321 inline void setJobType(
agx::UInt8 const& value) { (*this)->setJobType(value); }
322 inline void setJobPtr(
agx::UInt64 const& value) { (*this)->setJobPtr(value); }
323 inline void setExtraDataTitle(
agx::String const& value) { (*this)->setExtraDataTitle(value); }
324 inline void setExtraData(
agx::Real64 const& value) { (*this)->setExtraData(value); }
335 ThreadTimelineEntryInstance();
336 ThreadTimelineEntryInstance(ThreadTimelineEntryData* data,
agx::Index index);
341 ThreadTimelineEntryData* getData();
342 const ThreadTimelineEntryData* getData()
const;
419 inline ThreadTimelineEntryInstance
agx::ThreadTimelineEntryData::operator[] (
size_t index) {
return ThreadTimelineEntryInstance(
this, (
agx::Index)index); }
426 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
433 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
441 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
450 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
457 AGX_FORCE_INLINE ThreadTimelineEntrySemantics* ThreadTimelineEntryPtr::operator->() {
return (ThreadTimelineEntrySemantics* )
this; }
458 AGX_FORCE_INLINE const ThreadTimelineEntrySemantics* ThreadTimelineEntryPtr::operator->()
const {
return (
const ThreadTimelineEntrySemantics* )
this; }
463 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryPtr::taskId()
const { verifyIndex();
return getData()->taskId[calculateIndex()]; }
465 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryPtr::startTimeGlobal() { verifyIndex();
return getData()->startTimeGlobal[calculateIndex()]; }
466 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryPtr::startTimeGlobal()
const { verifyIndex();
return getData()->startTimeGlobal[calculateIndex()]; }
468 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryPtr::endTimeGlobal() { verifyIndex();
return getData()->endTimeGlobal[calculateIndex()]; }
469 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryPtr::endTimeGlobal()
const { verifyIndex();
return getData()->endTimeGlobal[calculateIndex()]; }
471 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryPtr::startTimeFrame() { verifyIndex();
return getData()->startTimeFrame[calculateIndex()]; }
472 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryPtr::startTimeFrame()
const { verifyIndex();
return getData()->startTimeFrame[calculateIndex()]; }
474 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryPtr::endTimeFrame() { verifyIndex();
return getData()->endTimeFrame[calculateIndex()]; }
475 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryPtr::endTimeFrame()
const { verifyIndex();
return getData()->endTimeFrame[calculateIndex()]; }
477 AGX_FORCE_INLINE agx::String& ThreadTimelineEntryPtr::description() { verifyIndex();
return getData()->description[calculateIndex()]; }
478 AGX_FORCE_INLINE agx::String const& ThreadTimelineEntryPtr::description()
const { verifyIndex();
return getData()->description[calculateIndex()]; }
480 AGX_FORCE_INLINE agx::UInt32& ThreadTimelineEntryPtr::costEstimate() { verifyIndex();
return getData()->costEstimate[calculateIndex()]; }
481 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryPtr::costEstimate()
const { verifyIndex();
return getData()->costEstimate[calculateIndex()]; }
484 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryPtr::poolSize()
const { verifyIndex();
return getData()->poolSize[calculateIndex()]; }
486 AGX_FORCE_INLINE agx::UInt8& ThreadTimelineEntryPtr::jobType() { verifyIndex();
return getData()->jobType[calculateIndex()]; }
487 AGX_FORCE_INLINE agx::UInt8 const& ThreadTimelineEntryPtr::jobType()
const { verifyIndex();
return getData()->jobType[calculateIndex()]; }
490 AGX_FORCE_INLINE agx::UInt64 const& ThreadTimelineEntryPtr::jobPtr()
const { verifyIndex();
return getData()->jobPtr[calculateIndex()]; }
492 AGX_FORCE_INLINE agx::String& ThreadTimelineEntryPtr::extraDataTitle() { verifyIndex();
return getData()->extraDataTitle[calculateIndex()]; }
493 AGX_FORCE_INLINE agx::String const& ThreadTimelineEntryPtr::extraDataTitle()
const { verifyIndex();
return getData()->extraDataTitle[calculateIndex()]; }
495 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryPtr::extraData() { verifyIndex();
return getData()->extraData[calculateIndex()]; }
496 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryPtr::extraData()
const { verifyIndex();
return getData()->extraData[calculateIndex()]; }
499 AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance() {}
500 AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance(ThreadTimelineEntryData* data,
agx::Index index) :
agxData::EntityInstance(data, index) {}
505 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
512 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
521 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryInstance::taskId()
const { verifyIndex();
return getData()->taskId[getIndex()]; }
523 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::startTimeGlobal() { verifyIndex();
return getData()->startTimeGlobal[getIndex()]; }
524 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::startTimeGlobal()
const { verifyIndex();
return getData()->startTimeGlobal[getIndex()]; }
526 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::endTimeGlobal() { verifyIndex();
return getData()->endTimeGlobal[getIndex()]; }
527 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::endTimeGlobal()
const { verifyIndex();
return getData()->endTimeGlobal[getIndex()]; }
529 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::startTimeFrame() { verifyIndex();
return getData()->startTimeFrame[getIndex()]; }
530 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::startTimeFrame()
const { verifyIndex();
return getData()->startTimeFrame[getIndex()]; }
532 AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::endTimeFrame() { verifyIndex();
return getData()->endTimeFrame[getIndex()]; }
533 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::endTimeFrame()
const { verifyIndex();
return getData()->endTimeFrame[getIndex()]; }
535 AGX_FORCE_INLINE agx::String& ThreadTimelineEntryInstance::description() { verifyIndex();
return getData()->description[getIndex()]; }
536 AGX_FORCE_INLINE agx::String const& ThreadTimelineEntryInstance::description()
const { verifyIndex();
return getData()->description[getIndex()]; }
538 AGX_FORCE_INLINE agx::UInt32& ThreadTimelineEntryInstance::costEstimate() { verifyIndex();
return getData()->costEstimate[getIndex()]; }
539 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryInstance::costEstimate()
const { verifyIndex();
return getData()->costEstimate[getIndex()]; }
542 AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryInstance::poolSize()
const { verifyIndex();
return getData()->poolSize[getIndex()]; }
545 AGX_FORCE_INLINE agx::UInt8 const& ThreadTimelineEntryInstance::jobType()
const { verifyIndex();
return getData()->jobType[getIndex()]; }
548 AGX_FORCE_INLINE agx::UInt64 const& ThreadTimelineEntryInstance::jobPtr()
const { verifyIndex();
return getData()->jobPtr[getIndex()]; }
550 AGX_FORCE_INLINE agx::String& ThreadTimelineEntryInstance::extraDataTitle() { verifyIndex();
return getData()->extraDataTitle[getIndex()]; }
551 AGX_FORCE_INLINE agx::String const& ThreadTimelineEntryInstance::extraDataTitle()
const { verifyIndex();
return getData()->extraDataTitle[getIndex()]; }
554 AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::extraData()
const { verifyIndex();
return getData()->extraData[getIndex()]; }
557 AGX_FORCE_INLINE ThreadTimelineEntrySemantics::ThreadTimelineEntrySemantics() {}
566 # pragma warning(pop)
569 #undef AGX_ENTITY_WRAPPER
570 #undef AGX_ENTITY_NAMESPACE
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_TYPE_BINDING(_Type, _Name)
Type-specific Array used for fast access into the data held by a Buffer.
Entity instance provides access to a single instance in an EntityStorage.
bool isInstanceOf(agxData::EntityModel *model) const
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...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
EntityPtr & operator=(const EntityPtr &other)=default
Data storage for a collection of entity instances of a specified EntityModel.
agx::String fullPath() const
Abstract description of the data attributes for the ThreadTimelineEntry entity.
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::Real64 > * endTimeFrameAttribute
ThreadTimelineEntryPtr PtrT
virtual void initAttributeAccessors() override
virtual void construct(agxData::EntityPtr instance) override
static ThreadTimelineEntryModel * instance()
virtual ~ThreadTimelineEntryModel()
static agxData::ScalarAttributeT< agx::UInt64 > * jobPtrAttribute
static agxData::ScalarAttributeT< agx::Real64 > * endTimeGlobalAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * poolSizeAttribute
static agxData::EntityStorage * defaultStorage()
static ThreadTimelineEntryPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::ScalarAttributeT< agx::Real64 > * startTimeFrameAttribute
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::ScalarAttributeT< agx::UInt32 > * costEstimateAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * taskIdAttribute
static agxData::ScalarAttributeT< agx::String > * descriptionAttribute
ThreadTimelineEntryModel(const agx::String &name="ThreadTimelineEntry")
static agxData::ScalarAttributeT< agx::Real64 > * startTimeGlobalAttribute
void construct(agx::ThreadTimelineEntryPtr threadTimelineEntry)
static agxData::ScalarAttributeT< agx::UInt8 > * jobTypeAttribute
virtual void configure(agx::TiXmlElement *eEntity) override
static agxData::ScalarAttributeT< agx::String > * extraDataTitleAttribute
static agxData::ScalarAttributeT< agx::Real64 > * extraDataAttribute
Pointer to a entity instance of type ThreadTimelineEntry.
AGXCORE_EXPORT agx::Real64 & endTimeFrame()
AGXCORE_EXPORT ThreadTimelineEntryPtr()
AGXCORE_EXPORT agx::String & description()
AGXCORE_EXPORT ThreadTimelineEntryPtr(const agxData::EntityPtr &ptr)
AGXCORE_EXPORT agx::Real64 & extraData()
AGXCORE_EXPORT agx::String const & extraDataTitle() const
AGXCORE_EXPORT ThreadTimelineEntrySemantics * operator->()
AGXCORE_EXPORT const ThreadTimelineEntryInstance instance() const
AGXCORE_EXPORT agx::Real64 & startTimeFrame()
const ThreadTimelineEntryData * getData() const
AGXCORE_EXPORT ThreadTimelineEntryPtr(const agxData::EntityInstance &instance)
AGXCORE_EXPORT agx::UInt8 const & jobType() const
AGXCORE_EXPORT agx::UInt64 & jobPtr()
AGXCORE_EXPORT agx::UInt32 const & taskId() const
AGXCORE_EXPORT agx::Real64 const & extraData() const
AGXCORE_EXPORT agx::Real64 const & endTimeGlobal() const
AGXCORE_EXPORT agx::String & extraDataTitle()
AGXCORE_EXPORT agx::Real64 const & endTimeFrame() const
ThreadTimelineEntryData DataType
AGXCORE_EXPORT agx::UInt32 & taskId()
AGXCORE_EXPORT agx::Real64 & endTimeGlobal()
AGXCORE_EXPORT agx::UInt32 const & costEstimate() const
AGXCORE_EXPORT agx::UInt32 & costEstimate()
AGXCORE_EXPORT agx::Real64 & startTimeGlobal()
AGXCORE_EXPORT agx::UInt8 & jobType()
AGXCORE_EXPORT agx::String const & description() const
AGXCORE_EXPORT agx::Real64 const & startTimeGlobal() const
AGXCORE_EXPORT agx::UInt32 & poolSize()
ThreadTimelineEntryInstance InstanceType
AGXCORE_EXPORT agx::UInt32 const & poolSize() const
ThreadTimelineEntryData * getData()
AGXCORE_EXPORT ThreadTimelineEntryInstance instance()
AGXCORE_EXPORT agx::UInt64 const & jobPtr() const
AGXCORE_EXPORT agx::Real64 const & startTimeFrame() const
AGXCORE_EXPORT const ThreadTimelineEntrySemantics * operator->() const
AGXCORE_EXPORT ThreadTimelineEntryPtr(agxData::EntityStorage *storage, agx::Index id)
ThreadTimelineEntryModel ModelType
Vector containing 'raw' data.
#define agxAssertN(expr, format,...)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contains classes for low level data storage for AGX.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())