AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ThreadTimelineEntryEntity.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. 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 
75  static ThreadTimelineEntryModel* instance();
76 
78  static ThreadTimelineEntryPtr createInstance();
79 
81  static agxData::EntityStorage* defaultStorage();
82 
84  virtual void shutdownCleanup() override;
85 
86 
87 
88  /* Attributes */
101 
102  protected:
103  virtual ~ThreadTimelineEntryModel();
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 
237  AGXCORE_EXPORT agx::UInt32& taskId();
239  AGXCORE_EXPORT agx::UInt32 const& taskId() const;
240 
242  AGXCORE_EXPORT agx::Real64& startTimeGlobal();
244  AGXCORE_EXPORT agx::Real64 const& startTimeGlobal() const;
245 
247  AGXCORE_EXPORT agx::Real64& endTimeGlobal();
249  AGXCORE_EXPORT agx::Real64 const& endTimeGlobal() const;
250 
252  AGXCORE_EXPORT agx::Real64& startTimeFrame();
254  AGXCORE_EXPORT agx::Real64 const& startTimeFrame() const;
255 
257  AGXCORE_EXPORT agx::Real64& endTimeFrame();
259  AGXCORE_EXPORT agx::Real64 const& endTimeFrame() const;
260 
262  AGXCORE_EXPORT agx::String& description();
264  AGXCORE_EXPORT agx::String const& description() const;
265 
267  AGXCORE_EXPORT agx::UInt32& costEstimate();
269  AGXCORE_EXPORT agx::UInt32 const& costEstimate() const;
270 
272  AGXCORE_EXPORT agx::UInt32& poolSize();
274  AGXCORE_EXPORT agx::UInt32 const& poolSize() const;
275 
277  AGXCORE_EXPORT agx::UInt8& jobType();
279  AGXCORE_EXPORT agx::UInt8 const& jobType() const;
280 
282  AGXCORE_EXPORT agx::UInt64& jobPtr();
284  AGXCORE_EXPORT agx::UInt64 const& jobPtr() const;
285 
287  AGXCORE_EXPORT agx::String& extraDataTitle();
289  AGXCORE_EXPORT agx::String const& extraDataTitle() const;
290 
292  AGXCORE_EXPORT agx::Real64& extraData();
294  AGXCORE_EXPORT agx::Real64 const& extraData() const;
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 
Pointer to a entity instance of type ThreadTimelineEntry.
double Real64
Definition: Real.h:45
agxData::EntityData * getData()
agxData::EntityInstance instance()
Definition: EntityPtr.h:269
Data storage for a collection of entity instances of a specified EntityModel.
Definition: EntityStorage.h:73
#define agxAssertN(expr, format,...)
Definition: debug.h:145
agxData::EntityData * getData()
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
Definition: Object.h:364
ThreadTimelineEntryInstance InstanceType
uint8_t UInt8
Definition: Integer.h:38
bool isInstanceOf(agxData::EntityModel *model) const
static ThreadTimelineEntryModel * instance()
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...
Definition: EntityPtr.h:51
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agx::String fullPath() const
#define AGX_FORCE_INLINE
Definition: Object.h:62
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.
Definition: agxData.h:30
static agxData::ScalarAttributeT< agx::UInt32 > * poolSizeAttribute
static agxData::ScalarAttributeT< agx::Real64 > * endTimeFrameAttribute
Vector containing &#39;raw&#39; data.
Definition: Vector.h:245
EntityPtr & operator=(const EntityPtr &other)=default
static agxData::ScalarAttributeT< agx::Real64 > * startTimeFrameAttribute
UInt32 Index
Definition: Integer.h:52
ThreadTimelineEntryModel ModelType
Abstract description of the data attributes for the ThreadTimelineEntry entity.
static agxData::ScalarAttributeT< agx::String > * descriptionAttribute
static agxData::ScalarAttributeT< agx::UInt64 > * jobPtrAttribute
AGXCORE_EXPORT ThreadTimelineEntryPtr()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Definition: EntityModel.h:63
#define CALLABLE
Definition: Object.h:76
bool isInstanceOf(agxData::EntityModel *model) const
uint64_t UInt64
Definition: Integer.h:41
static agxData::ScalarAttributeT< agx::Real64 > * startTimeGlobalAttribute
static agxData::ScalarAttributeT< agx::UInt8 > * jobTypeAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * taskIdAttribute
uint32_t UInt32
Definition: Integer.h:40
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:101
#define AGXCORE_EXPORT
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:100