AGX Dynamics  2.35.0.1
ThreadTimelineEntryEntity.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or
9 having been advised so by Algoryx Simulation AB for a time limited evaluation,
10 or having purchased a valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
18 // AUTOMATICALLY GENERATED ENTITY, DO NOT EDIT! //
20 
21 #ifndef GENERATED_AGX_THREADTIMELINEENTRY_H_PLUGIN
22 #define GENERATED_AGX_THREADTIMELINEENTRY_H_PLUGIN
23 
24 #define AGX_ENTITY_WRAPPER 1
25 
26 
27 #ifdef _MSC_VER
28 # pragma warning(push)
29 // warning C4505: 'agxData::VectorAttributeT<T>::print' : unreferenced local function has been removed
30 # pragma warning( disable : 4505 )
31 // warning C4251: 'X' : class 'Y' needs to have dll-interface to be used by clients of class 'Z'
32 # pragma warning( disable : 4251 )
33 // warning C4355: 'this' : used in base member initializer list
34 # pragma warning( disable : 4355 )
35 // marked as __forceinline not inlined
36 # pragma warning( disable: 4714 )
37 #endif
38 
39 #include <agxData/EntityModel.h>
40 #include <agxData/EntityStorage.h>
41 #include <agxData/EntityRef.h>
42 #include <agxData/EntityPtr.h>
43 #include <agxData/EntityInstance.h>
44 #include <agx/Integer.h>
45 #include <agx/Real.h>
46 #include <agx/macros.h>
47 #include <agx/Integer.h>
48 #include <agx/Real.h>
49 #include <agx/String.h>
50 
51 
52 namespace agx
53 {
54 
55  class ThreadTimelineEntryModel;
56  class ThreadTimelineEntryData;
57  class ThreadTimelineEntryPtr;
58  class ThreadTimelineEntryInstance;
59  class ThreadTimelineEntrySemantics;
60 
61 
63 
68  {
69  public:
71 
72  ThreadTimelineEntryModel(const agx::String& name = "ThreadTimelineEntry");
73 
76 
79 
82 
84  virtual void shutdownCleanup() override;
85 
86 
87 
88  /* Attributes */
101 
102  protected:
104  virtual agxData::EntityData* createData(agxData::EntityStorage* storage) override;
105  virtual void configure(agx::TiXmlElement* eEntity) override;
106  virtual void initAttributeAccessors() override;
107  virtual void construct(agxData::EntityPtr instance) override;
108  void construct(agx::ThreadTimelineEntryPtr threadTimelineEntry);
109  };
110 
111 
113  #ifndef AGX_THREADTIMELINEENTRY_DATA_SET_OVERRIDE
114  #define AGX_THREADTIMELINEENTRY_DATA_SET
115  class AGXCORE_EXPORT ThreadTimelineEntryData : public agxData::EntityData
116  {
117  public:
118  ThreadTimelineEntryInstance operator[] (size_t index);
119 
120  public:
123  agxData::Array< agx::Real64 > startTimeGlobal;
124  agxData::Array< agx::Real64 > endTimeGlobal;
125  agxData::Array< agx::Real64 > startTimeFrame;
126  agxData::Array< agx::Real64 > endTimeFrame;
127  agxData::Array< agx::String > description;
128  agxData::Array< agx::UInt32 > costEstimate;
132  agxData::Array< agx::String > extraDataTitle;
134 
135  public:
136  typedef agx::UInt32 taskIdType;
137  typedef agx::Real64 startTimeGlobalType;
138  typedef agx::Real64 endTimeGlobalType;
139  typedef agx::Real64 startTimeFrameType;
140  typedef agx::Real64 endTimeFrameType;
141  typedef agx::String descriptionType;
142  typedef agx::UInt32 costEstimateType;
143  typedef agx::UInt32 poolSizeType;
144  typedef agx::UInt8 jobTypeType;
145  typedef agx::UInt64 jobPtrType;
146  typedef agx::String extraDataTitleType;
147  typedef agx::Real64 extraDataType;
148 
149  public:
150  ThreadTimelineEntryData(agxData::EntityStorage* storage);
151  ThreadTimelineEntryData();
152 
153  protected:
154  virtual ~ThreadTimelineEntryData() {}
155  virtual void setNumElements(agx::Index numElements) override;
156 
157  private:
158  ThreadTimelineEntryData& operator= (const ThreadTimelineEntryData&) { return *this; }
159 
160  };
161  #endif
163 
164 
166  class AGXCORE_EXPORT ThreadTimelineEntrySemantics : protected agxData::EntityPtr
167  {
168  public:
169 
170  // Automatic getters
171  agx::UInt32 const& getTaskId() const;
172  agx::Real64 const& getStartTimeGlobal() const;
173  agx::Real64 const& getEndTimeGlobal() const;
174  agx::Real64 const& getStartTimeFrame() const;
175  agx::Real64 const& getEndTimeFrame() const;
176  agx::String const& getDescription() const;
177  agx::UInt32 const& getCostEstimate() const;
178  agx::UInt32 const& getPoolSize() const;
179  agx::UInt8 const& getJobType() const;
180  agx::UInt64 const& getJobPtr() const;
181  agx::String const& getExtraDataTitle() const;
182  agx::Real64 const& getExtraData() const;
183 
184  // Semantics defined by explicit kernels
185 
186  // Automatic setters
187  void setTaskId(agx::UInt32 const& value);
188  void setStartTimeGlobal(agx::Real64 const& value);
189  void setEndTimeGlobal(agx::Real64 const& value);
190  void setStartTimeFrame(agx::Real64 const& value);
191  void setEndTimeFrame(agx::Real64 const& value);
192  void setDescription(agx::String const& value);
193  void setCostEstimate(agx::UInt32 const& value);
194  void setPoolSize(agx::UInt32 const& value);
195  void setJobType(agx::UInt8 const& value);
196  void setJobPtr(agx::UInt64 const& value);
197  void setExtraDataTitle(agx::String const& value);
198  void setExtraData(agx::Real64 const& value);
199 
200 
201  protected:
202  friend class ThreadTimelineEntryPtr;
203  friend class ThreadTimelineEntryInstance;
204  ThreadTimelineEntrySemantics();
205  };
207 
208 
209 
212  class CALLABLE ThreadTimelineEntryPtr : public agxData::EntityPtr
213  {
214  public:
216  typedef ThreadTimelineEntryData DataType;
217  typedef ThreadTimelineEntryInstance InstanceType;
218 
219  public:
226  AGXCORE_EXPORT ThreadTimelineEntryInstance instance();
227  AGXCORE_EXPORT const ThreadTimelineEntryInstance instance() const;
228 
229  AGXCORE_EXPORT ThreadTimelineEntrySemantics* operator->();
230  AGXCORE_EXPORT const ThreadTimelineEntrySemantics* operator->() const;
231 
232  ThreadTimelineEntryData* getData();
233  const ThreadTimelineEntryData* getData() const;
234 
235 
240 
245 
250 
255 
260 
265 
270 
275 
280 
285 
290 
295 
297  // Only used by tolua!
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(); }
311 
312 
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); }
325  #endif
327 
328  };
329 
330 
332  class AGXCORE_EXPORT ThreadTimelineEntryInstance : public agxData::EntityInstance
333  {
334  public:
335  ThreadTimelineEntryInstance();
336  ThreadTimelineEntryInstance(ThreadTimelineEntryData* data, agx::Index index);
337  ThreadTimelineEntryInstance(agxData::EntityStorage *storage, agx::Index index);
338  ThreadTimelineEntryInstance(const agxData::EntityInstance& other);
339  ThreadTimelineEntryInstance(const agxData::EntityPtr& ptr);
340 
341  ThreadTimelineEntryData* getData();
342  const ThreadTimelineEntryData* getData() const;
343 
344  public:
346  agx::UInt32& taskId();
348  agx::UInt32 const& taskId() const;
349 
351  agx::Real64& startTimeGlobal();
353  agx::Real64 const& startTimeGlobal() const;
354 
356  agx::Real64& endTimeGlobal();
358  agx::Real64 const& endTimeGlobal() const;
359 
361  agx::Real64& startTimeFrame();
363  agx::Real64 const& startTimeFrame() const;
364 
366  agx::Real64& endTimeFrame();
368  agx::Real64 const& endTimeFrame() const;
369 
371  agx::String& description();
373  agx::String const& description() const;
374 
376  agx::UInt32& costEstimate();
378  agx::UInt32 const& costEstimate() const;
379 
381  agx::UInt32& poolSize();
383  agx::UInt32 const& poolSize() const;
384 
386  agx::UInt8& jobType();
388  agx::UInt8 const& jobType() const;
389 
391  agx::UInt64& jobPtr();
393  agx::UInt64 const& jobPtr() const;
394 
396  agx::String& extraDataTitle();
398  agx::String const& extraDataTitle() const;
399 
401  agx::Real64& extraData();
403  agx::Real64 const& extraData() const;
404 
405  };
407 
408 
409 
412 
413 
414 
416  /* Implementation */
417  //-----------------------------------------------------------------------------------------------------
418  //-----------------------------------------------------------------------------------------------------
419  inline ThreadTimelineEntryInstance agx::ThreadTimelineEntryData::operator[] (size_t index) { return ThreadTimelineEntryInstance(this, (agx::Index)index); }
420  //-----------------------------------------------------------------------------------------------------
423  AGX_FORCE_INLINE ThreadTimelineEntryPtr::ThreadTimelineEntryPtr(const agxData::EntityPtr& ptr) : agxData::EntityPtr(ptr)
424  {
426  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
428  }
429 
430  AGX_FORCE_INLINE ThreadTimelineEntryPtr::ThreadTimelineEntryPtr(const agxData::EntityInstance& instance) : agxData::EntityPtr(instance)
431  {
433  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
435  }
436 
437  AGX_FORCE_INLINE ThreadTimelineEntryPtr& ThreadTimelineEntryPtr::operator= (const agxData::EntityPtr& ptr)
438  {
440  agxAssertN(!ptr || ptr.isInstanceOf(ThreadTimelineEntryModel::instance()),
441  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
442  EntityPtr::getModel()->fullPath().c_str(), ThreadTimelineEntryModel::instance()->fullPath().c_str());
443  return *this;
444  }
445 
446  AGX_FORCE_INLINE ThreadTimelineEntryPtr& ThreadTimelineEntryPtr::operator= (const agxData::EntityInstance& instance)
447  {
449  agxAssertN(!instance || instance.isInstanceOf(ThreadTimelineEntryModel::instance()),
450  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
451  EntityPtr::getModel()->fullPath().c_str(), ThreadTimelineEntryModel::instance()->fullPath().c_str());
452  return *this;
453  }
454 
455  inline ThreadTimelineEntryInstance ThreadTimelineEntryPtr::instance() { return agxData::EntityPtr::instance(); }
456  inline const ThreadTimelineEntryInstance ThreadTimelineEntryPtr::instance() const { return agxData::EntityPtr::instance(); }
457  AGX_FORCE_INLINE ThreadTimelineEntrySemantics* ThreadTimelineEntryPtr::operator->() { return (ThreadTimelineEntrySemantics* )this; }
458  AGX_FORCE_INLINE const ThreadTimelineEntrySemantics* ThreadTimelineEntryPtr::operator->() const { return (const ThreadTimelineEntrySemantics* )this; }
459  AGX_FORCE_INLINE ThreadTimelineEntryData* ThreadTimelineEntryPtr::getData() { return static_cast<ThreadTimelineEntryData* >(agxData::EntityPtr::getData()); }
460  AGX_FORCE_INLINE const ThreadTimelineEntryData* ThreadTimelineEntryPtr::getData() const { return static_cast<const ThreadTimelineEntryData* >(agxData::EntityPtr::getData()); }
461 
462  AGX_FORCE_INLINE agx::UInt32& ThreadTimelineEntryPtr::taskId() { verifyIndex(); return getData()->taskId[calculateIndex()]; }
463  AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryPtr::taskId() const { verifyIndex(); return getData()->taskId[calculateIndex()]; }
464 
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()]; }
467 
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()]; }
470 
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()]; }
473 
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()]; }
476 
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()]; }
479 
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()]; }
482 
483  AGX_FORCE_INLINE agx::UInt32& ThreadTimelineEntryPtr::poolSize() { verifyIndex(); return getData()->poolSize[calculateIndex()]; }
484  AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryPtr::poolSize() const { verifyIndex(); return getData()->poolSize[calculateIndex()]; }
485 
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()]; }
488 
489  AGX_FORCE_INLINE agx::UInt64& ThreadTimelineEntryPtr::jobPtr() { verifyIndex(); return getData()->jobPtr[calculateIndex()]; }
490  AGX_FORCE_INLINE agx::UInt64 const& ThreadTimelineEntryPtr::jobPtr() const { verifyIndex(); return getData()->jobPtr[calculateIndex()]; }
491 
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()]; }
494 
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()]; }
497 
498  //-----------------------------------------------------------------------------------------------------
499  AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance() {}
500  AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance(ThreadTimelineEntryData* data, agx::Index index) : agxData::EntityInstance(data, index) {}
501  AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance(agxData::EntityStorage* storage, agx::Index index) : agxData::EntityInstance(storage, index) {}
502  AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance(const agxData::EntityInstance& other) : agxData::EntityInstance(other)
503  {
505  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
507  }
508 
509  AGX_FORCE_INLINE ThreadTimelineEntryInstance::ThreadTimelineEntryInstance(const agxData::EntityPtr& ptr) : agxData::EntityInstance(ptr)
510  {
512  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
514  }
515 
516 
517  AGX_FORCE_INLINE ThreadTimelineEntryData* ThreadTimelineEntryInstance::getData() { return static_cast<ThreadTimelineEntryData* >(agxData::EntityInstance::getData()); }
518  AGX_FORCE_INLINE const ThreadTimelineEntryData* ThreadTimelineEntryInstance::getData() const { return static_cast<const ThreadTimelineEntryData* >(agxData::EntityInstance::getData()); }
519 
520  AGX_FORCE_INLINE agx::UInt32& ThreadTimelineEntryInstance::taskId() { verifyIndex(); return getData()->taskId[getIndex()]; }
521  AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryInstance::taskId() const { verifyIndex(); return getData()->taskId[getIndex()]; }
522 
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()]; }
525 
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()]; }
528 
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()]; }
531 
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()]; }
534 
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()]; }
537 
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()]; }
540 
541  AGX_FORCE_INLINE agx::UInt32& ThreadTimelineEntryInstance::poolSize() { verifyIndex(); return getData()->poolSize[getIndex()]; }
542  AGX_FORCE_INLINE agx::UInt32 const& ThreadTimelineEntryInstance::poolSize() const { verifyIndex(); return getData()->poolSize[getIndex()]; }
543 
544  AGX_FORCE_INLINE agx::UInt8& ThreadTimelineEntryInstance::jobType() { verifyIndex(); return getData()->jobType[getIndex()]; }
545  AGX_FORCE_INLINE agx::UInt8 const& ThreadTimelineEntryInstance::jobType() const { verifyIndex(); return getData()->jobType[getIndex()]; }
546 
547  AGX_FORCE_INLINE agx::UInt64& ThreadTimelineEntryInstance::jobPtr() { verifyIndex(); return getData()->jobPtr[getIndex()]; }
548  AGX_FORCE_INLINE agx::UInt64 const& ThreadTimelineEntryInstance::jobPtr() const { verifyIndex(); return getData()->jobPtr[getIndex()]; }
549 
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()]; }
552 
553  AGX_FORCE_INLINE agx::Real64& ThreadTimelineEntryInstance::extraData() { verifyIndex(); return getData()->extraData[getIndex()]; }
554  AGX_FORCE_INLINE agx::Real64 const& ThreadTimelineEntryInstance::extraData() const { verifyIndex(); return getData()->extraData[getIndex()]; }
555 
556  //-----------------------------------------------------------------------------------------------------
557  AGX_FORCE_INLINE ThreadTimelineEntrySemantics::ThreadTimelineEntrySemantics() {}
558  //-----------------------------------------------------------------------------------------------------
560 }
561 
562 AGX_TYPE_BINDING(agx::ThreadTimelineEntryPtr, "ThreadTimelineEntryPtr")
563 AGX_TYPE_BINDING(agx::ThreadTimelineEntryInstance, "ThreadTimelineEntryInstance")
564 
565 #ifdef _MSC_VER
566 # pragma warning(pop)
567 #endif
568 
569 #undef AGX_ENTITY_WRAPPER
570 #undef AGX_ENTITY_NAMESPACE
571 #endif
572 
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
#define AGXCORE_EXPORT
Type-specific Array used for fast access into the data held by a Buffer.
Definition: Array.h:107
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...
Definition: EntityModel.h:64
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
Definition: EntityPtr.h:52
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
Definition: EntityPtr.h:269
EntityPtr & operator=(const EntityPtr &other)=default
Data storage for a collection of entity instances of a specified EntityModel.
Definition: EntityStorage.h:73
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
virtual void initAttributeAccessors() override
virtual void construct(agxData::EntityPtr instance) override
static ThreadTimelineEntryModel * instance()
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
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.
Definition: agx/Vector.h:246
#define agxAssertN(expr, format,...)
Definition: debug.h:145
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
#define CALLABLE
Definition: macros.h:72
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
#define AGX_FORCE_INLINE
Definition: macros.h:58
Contains classes for low level data storage for AGX.
Definition: Container.h:23
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
double Real64
Definition: Real.h:45
uint32_t UInt32
Definition: Integer.h:40
uint64_t UInt64
Definition: Integer.h:41
uint8_t UInt8
Definition: Integer.h:38
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
Definition: Object.h:364
UInt32 Index
Definition: Integer.h:52