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;
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\'",
499 AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance() {}
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() {}
563 AGX_TYPE_BINDING(agx::ThreadTimelineEntryInstance,
"ThreadTimelineEntryInstance")
566 # pragma warning(pop) 569 #undef AGX_ENTITY_WRAPPER 570 #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
Namespace agx 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()