24#ifndef _GEMA_STATE_DUMP_ITEM_H_
25#define _GEMA_STATE_DUMP_ITEM_H_
138 : _id(id), _prefix(prefix), _logger(logger)
141 assert(_prefix.size() > 0);
146 int id() {
return _id; }
193 virtual bool hasGeometryNodes()
const {
return _hasGeometryNodes; };
194 virtual const GmMesh* mesh()
const {
return _mesh;}
198 bool _hasGeometryNodes;
219 QString translateFunction (
void* ptr,
bool evaluator);
220 bool updateFunctionList();
222 void resetSaved() { _saved =
false; }
237 virtual qint64
size()
const { assert(!_buffer.isEmpty());
return _buffer.size(); }
242 virtual void getDataBuffer (
GmMemoryBufferList& bufferList, qint64 size = 0, qint64 offset = 0);
243 virtual bool setDataBuffer (
GmMemoryBufferList& bufferList,
const char* header, qint64 size, qint64 offset = 0);
244 virtual void bufferReleased(
int op,
bool ok);
247 virtual QString nameSuffix()
const;
326 virtual int itemType()
const;
336 virtual int itemSize()
const;
342 virtual bool partialOp()
const {
return !isDefValueSetData(); }
347 virtual qint64 size()
const;
348 virtual bool fillDataHeader(
char* header);
350 virtual void getDataBuffer (
GmMemoryBufferList& bufferList, qint64 size = 0, qint64 offset = 0);
351 virtual bool setDataBuffer (
GmMemoryBufferList& bufferList,
const char* header, qint64 size, qint64 offset = 0);
352 virtual void bufferReleased(
int op,
bool ok);
355 virtual QString nameSuffix()
const;
358 bool isDefValueSetData()
const;
359 void initDefBuffers();
397 virtual int itemSize()
const {
return sizeof(double); }
409 virtual qint64
size()
const {
return _data->size() *
sizeof(double); }
418 assert(
size >= 0 && offset >= 0);
419 assert((
unsigned)(
size + offset) <=
_data->size() *
sizeof(
double));
428 assert(
size > 0 && offset >= 0);
430 if((
unsigned)(
size + offset) >
_data->size() *
sizeof(
double))
501 void addBuffer(
char** data,
int* size,
int sizeMultiplier);
502 void addBuffer(
char* data,
int size);
519 virtual qint64
size()
const {
return _totalSize; }
521 virtual bool opStart(
int op);
522 virtual bool opEnd (
int op);
524 virtual bool fillDataHeader(
char* header);
526 virtual void getDataBuffer(
GmMemoryBufferList& bufferList, qint64 size = 0, qint64 offset = 0);
527 virtual bool setDataBuffer(
GmMemoryBufferList& bufferList,
const char* header, qint64 size, qint64 offset = 0);
537 BufferData() : _data(NULL), _size(NULL), _fsize(0), _multiplier(0) {}
538 BufferData(
char** d,
int* s,
int m) : _data(d), _size(s), _fsize(0), _multiplier(m) {}
539 BufferData(
char* d,
int s) : _data(d), _size(NULL), _fsize(s), _multiplier(1) {}
542 int bsize()
const {
return _size ? (*_size) * _multiplier : _fsize; }
545 char*
bptr()
const {
return _size ? *((
char**)_data) : (
char*)_data; }
567template <
class Vector>
575 bool fixed,
QString itemNamePrefix =
"")
578 S_TRACE(); assert(
id > 0); assert(data);
597 virtual qint64
size()
const {
return _data->size() *
sizeof(Vector::DataType); }
605 qint64* p = (qint64*)header;
606 p[0] =
_data->numDumpBuffers();
607 assert(p[0] > 0 && p[0] <= 2);
609 qint64 b1 =
_data->dumpBufferSize(0);
610 qint64 b2 = (p[0] == 2) ?
_data->dumpBufferSize(1) : 0;
611 assert(b1 <= std::numeric_limits<qint64>::max() - b2);
621 assert(
size == 0 && offset == 0);
623 for(
int i = 0, n =
_data->numDumpBuffers(); i < n; i++)
625 qint64 s =
_data->dumpBufferSize(i);
634 S_TRACE(); Q_UNUSED(header); Q_UNUSED(offset);
635 assert(
size > 0 && offset == 0);
637 qint64* p = (qint64*)header;
641 int items = (int)(
size /
sizeof(Vector::DataType));
642 assert(items *
sizeof(Vector::DataType) ==
size);
644 if(
_data->size() != items)
649 _data->addValues(items);
652 for(
int i = 0, n =
_data->numDumpBuffers(); i < n; i++)
707 virtual qint64
size()
const {
return _totalSize; }
709 virtual bool opStart(
int op);
711 virtual bool fillDataHeader(
char* header);
713 virtual void getDataBuffer(
GmMemoryBufferList& bufferList, qint64 size = 0, qint64 offset = 0);
714 virtual bool setDataBuffer(
GmMemoryBufferList& bufferList,
const char* header, qint64 size, qint64 offset = 0);
729template <
class K,
class V>
748 virtual bool opStart(
int op);
749 virtual bool opEnd(
int op);
752 virtual qint64
size()
const { assert(!_data.isEmpty());
return _data.size(); }
757 virtual void getDataBuffer(
GmMemoryBufferList& bufferList, qint64 size = 0, qint64 offset = 0);
758 virtual bool setDataBuffer(
GmMemoryBufferList& bufferList,
const char* header, qint64 size, qint64 offset = 0);
759 virtual void bufferReleased(
int op,
bool ok);
790 itemNamePrefix.isEmpty() ?
"VarMap" : itemNamePrefix) {}
832 virtual bool fillMapData (QVariantMap* map);
833 virtual bool mapDataLoaded(QVariantMap* map);
867 virtual bool opStart(
int op) {
return op == 0 ? loadDataFromLuaState() :
true; }
870 virtual qint64
size()
const { assert(!_data.isEmpty());
return _data.size(); }
875 virtual void getDataBuffer (
GmMemoryBufferList& bufferList, qint64 size = 0, qint64 offset = 0);
876 virtual bool setDataBuffer (
GmMemoryBufferList& bufferList,
const char* header, qint64 size, qint64 offset = 0);
877 virtual void bufferReleased(
int op,
bool ok);
880 bool loadDataFromLuaState();
881 void saveDataToLuaState();
907 virtual bool opStart(
int op);
908 virtual bool opEnd(
int op);
909 virtual qint64
size()
const { assert(!_data.isEmpty());
return _data.size(); }
911 virtual void getDataBuffer(
GmMemoryBufferList& bufferList, qint64 size = 0, qint64 offset = 0);
912 virtual bool setDataBuffer(
GmMemoryBufferList& bufferList,
const char* header, qint64 size, qint64 offset = 0);
913 virtual void bufferReleased(
int op,
bool ok);
Base interface for providing discontinuity geometry information for spatial indices.
Definition gmDiscontinuitySet.h:59
A basic interface used for creating dump items for objects that can be dumped by a composition of mul...
Definition gmStateDumpItem.h:53
virtual bool stateAboutToBeSaved(GmStateDump *state)
Virtual method called just before starting a save operation on the given state. Returning false abort...
Definition gmStateDumpItem.h:70
virtual bool stateSaved(GmStateDump *state)
Virtual method called just after succesfully completing a save operation on the given state....
Definition gmStateDumpItem.h:75
virtual ~GmGroupDumpItem()
Virtual destructor.
Definition gmStateDumpItem.h:56
virtual bool addStateItemsToGroup(GmStateDump *state, int groupId)=0
Initialization method, called once, allowing the object to add its state items to the given group of ...
virtual bool stateLoaded(GmStateDump *state)
Virtual method called just after succesfully completing a load operation on the given state....
Definition gmStateDumpItem.h:85
virtual bool stateAboutToBeLoaded(GmStateDump *state)
Virtual method called just before starting a load operation on the given state. Returning false abort...
Definition gmStateDumpItem.h:80
Class representing a category with multiple logging levels.
Definition gmLog.h:58
A helper class that can store a list of buffers and their sizes, allowing for GmMemoryDumpItem instan...
Definition gmMemoryDump.h:59
void addBuffer(char *buffer, qint64 size)
Adds another buffer to the buffer list.
Definition gmMemoryDump.cpp:207
Interface for an object that can be dumped and undumped to either file or memory by GmMemoryDump.
Definition gmMemoryDump.h:100
Base interface class for Mesh type plugins.
Definition gmMesh.h:48
Interface responsible for providing information of mesh and if the accessors stored in derived classe...
Definition gmStateDumpItem.h:188
Class responsible for storing either a GmVector / GmMatrix object.
Definition gmStateDumpItem.h:384
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:400
virtual bool setDataBuffer(GmMemoryBufferList &bufferList, const char *header, qint64 size, qint64 offset=0)
Fills the provided bufferList object with the set of buffers that should be used to update the dump i...
Definition gmStateDumpItem.h:425
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:406
virtual qint64 size() const
Returns the current item size (in bytes)
Definition gmStateDumpItem.h:409
T * _data
The stored vector / matrix.
Definition gmStateDumpItem.h:437
bool _fixedHint
Does this object has a low probability of growing?
Definition gmStateDumpItem.h:438
virtual bool fillDataHeader(char *header)
Function called together with getDataBuffer() to provide a "header information" with fixed size (equa...
Definition gmStateDumpItem.h:412
virtual void getDataBuffer(GmMemoryBufferList &bufferList, qint64 size=0, qint64 offset=0)
Fills the provided bufferList object with the set of buffers that together define the dump item data.
Definition gmStateDumpItem.h:415
virtual int itemSize() const
The item size needed for calculating sizes and offsets in bytes for partial updates....
Definition gmStateDumpItem.h:397
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:403
Ensure that all dump items stored by GmStateDump have an id() and a logger.
Definition gmStateDumpItem.h:134
QString _prefix
The object name prefix.
Definition gmStateDumpItem.h:174
virtual QString itemName() const
Returns the default item name composed of the object prefix + '' + the object id, optionally followed...
Definition gmStateDumpItem.h:155
GmStateDumpBaseDataItem(int id, QString prefix, const GmLogCategory &logger)
Constructor.
Definition gmStateDumpItem.h:137
const GmLogCategory & _logger
Basic logger object for dump messages.
Definition gmStateDumpItem.h:175
virtual QString nameSuffix() const
Virtual method returning the extra part of the item name, added to its standard prefix.
Definition gmStateDumpItem.h:171
virtual int itemSize() const
The item size needed for calculating sizes and offsets in bytes for partial updates....
Definition gmStateDumpItem.h:149
int id()
Returns the internal dump item id.
Definition gmStateDumpItem.h:146
int _id
The object id.
Definition gmStateDumpItem.h:173
Helper structure to store a tuple (buffer ptr, size ptr, size multiplier)
Definition gmStateDumpItem.h:531
int _multiplier
Multiplier to transform (*_size) into bytes or 1 if _fsize was filled.
Definition gmStateDumpItem.h:535
int _fsize
A fixed size for _data (in bytes), valid when _size is NULL.
Definition gmStateDumpItem.h:534
void * _data
Either a pointer to the buffer pointer (char**) or a pointer to the buffer (char*)
Definition gmStateDumpItem.h:532
int * _size
Pointer to the buffer size.
Definition gmStateDumpItem.h:533
char * bptr() const
Returns the buffer pointer.
Definition gmStateDumpItem.h:545
int bsize() const
Returns the buffer size in bytes.
Definition gmStateDumpItem.h:542
Class responsible for storing one or more user buffer objects.
Definition gmStateDumpItem.h:492
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:507
bool _fixedHint
Does this object has a low probability of growing?
Definition gmStateDumpItem.h:551
bool _checkSizes
When restoring, individual buffer sizes should be checked?
Definition gmStateDumpItem.h:552
virtual qint64 size() const
Returns the current item size (in bytes)
Definition gmStateDumpItem.h:519
QVector< BufferData > _bufferDataList
The stored data + size.
Definition gmStateDumpItem.h:548
qint64 _totalSize
The sum of the sizes in _sizes when the operation started.
Definition gmStateDumpItem.h:550
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:516
QVector< int > _sizes
The current buffer sizes when the operation started.
Definition gmStateDumpItem.h:549
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:513
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:510
Definition gmStateDumpItem.h:921
Class responsible for storing the needed data to rollback an "append only" file to a previous state.
Definition gmStateDumpItem.h:823
FILE * _fileh
The file handle.
Definition gmStateDumpItem.h:836
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:829
QString _fileName
The actual file name for fileh. Might be different from _baseName when working with temp files.
Definition gmStateDumpItem.h:838
QString _baseName
The base file name. Should be equal to the same data when restored.
Definition gmStateDumpItem.h:837
QVariantMap _dataMap
The stored variant map.
Definition gmStateDumpItem.h:839
Class responsible for storing a table mapping function pointers (either an user function or a functio...
Definition gmStateDumpItem.h:214
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:234
bool _saved
Has this dump item been saved at least once?
Definition gmStateDumpItem.h:252
int _neval
The number of evaluators on the _getBuffer.
Definition gmStateDumpItem.h:254
GmValueAccessor * _ac1
The accessor object providing the stored data.
Definition gmStateDumpItem.h:250
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:228
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:231
int _nuser
The number of user function entries on the _getBuffer.
Definition gmStateDumpItem.h:253
virtual qint64 size() const
Returns the current item size (in bytes)
Definition gmStateDumpItem.h:237
virtual bool fillDataHeader(char *header)
Function called together with getDataBuffer() to provide a "header information" with fixed size (equa...
Definition gmStateDumpItem.h:240
QVarLengthArray< char > _buffer
The buffer used by getDataBuffer() / setDataBuffer()
Definition gmStateDumpItem.h:255
QMap< void *, QString > _evalMap
The map translating loaded function evaluator pointers to user function Ids.
Definition gmStateDumpItem.h:257
QMap< void *, QString > _userMap
The map translating loaded user function pointers to user function Ids.
Definition gmStateDumpItem.h:256
GmValueAccessor * _ac2
A second accessor object used when working with ghost accessors. Can be NULL.
Definition gmStateDumpItem.h:251
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:225
The GmStateDump class presents a higher level of abstraction over GmMemoryDump, storing accessor data...
Definition gmStateDump.h:54
Class responsible for storing Lua global / local values.
Definition gmStateDumpItem.h:848
QStringList _globals
The name of the global variables to be saved/loaded.
Definition gmStateDumpItem.h:884
virtual bool fillDataHeader(char *header)
Function called together with getDataBuffer() to provide a "header information" with fixed size (equa...
Definition gmStateDumpItem.h:873
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:858
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:864
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:855
virtual bool opStart(int op)
Function called by GmMemoryDump::load(), GmMemoryDump::save(), GmMemoryDump::loadItem() and GmMemoryD...
Definition gmStateDumpItem.h:867
lua_State * _L
The Lua state where the values will be loaded/saved.
Definition gmStateDumpItem.h:883
QByteArray _data
The serialized data.
Definition gmStateDumpItem.h:887
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:861
QStringList _locals
The name of the local variables to be saved/loaded.
Definition gmStateDumpItem.h:885
virtual qint64 size() const
Returns the current item size (in bytes)
Definition gmStateDumpItem.h:870
QString _localTabName
The name of the table used to store local variable values.
Definition gmStateDumpItem.h:886
Class responsible for storing a QMap of values. Useful for storing generic sets of "scalar" attribute...
Definition gmStateDumpItem.h:731
QByteArray _data
The serialized data.
Definition gmStateDumpItem.h:776
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:737
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:746
virtual bool fillMapData(QMap< K, V > *map)
A virtual function called just before a save operation that can be used by derived classes to fill th...
Definition gmStateDumpItem.h:765
virtual qint64 size() const
Returns the current item size (in bytes)
Definition gmStateDumpItem.h:752
virtual bool mapDataLoaded(QMap< K, V > *map)
A virtual function called just after a load operation that can be used by derived classes to validate...
Definition gmStateDumpItem.h:771
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:743
bool _fixedHint
Does this object has a low probability of growing?
Definition gmStateDumpItem.h:775
QMap< K, V > * _varMap
The stored map.
Definition gmStateDumpItem.h:774
virtual bool fillDataHeader(char *header)
Function called together with getDataBuffer() to provide a "header information" with fixed size (equa...
Definition gmStateDumpItem.h:755
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:740
Class responsible for storing a GmMatrix object.
Definition gmStateDumpItem.h:464
GmStateDumpMatrixDataItem(int id, GmMatrix *mat, const GmLogCategory &logger, bool fixed, QString itemNamePrefix="")
Constructor.
Definition gmStateDumpItem.h:467
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:472
Class responsible for storing a GmSingleVector or a GmDualVector.
Definition gmStateDumpItem.h:569
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:585
virtual qint64 size() const
Returns the current item size (in bytes)
Definition gmStateDumpItem.h:597
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:594
virtual bool fillDataHeader(char *header)
Fills a header with the number of stored buffers (1 or 2) and their sizes.
Definition gmStateDumpItem.h:600
virtual bool setDataBuffer(GmMemoryBufferList &bufferList, const char *header, qint64 size, qint64 offset=0)
Fills the provided bufferList object with the set of buffers that should be used to update the dump i...
Definition gmStateDumpItem.h:632
bool _fixedHint
Does this object has a low probability of growing?
Definition gmStateDumpItem.h:659
GmStateDumpSDVectorDataItem(int id, Vector *data, bool noresize, const GmLogCategory &logger, bool fixed, QString itemNamePrefix="")
Constructor. The fixed parameter is a hint on the buffers changing size over time or not....
Definition gmStateDumpItem.h:574
bool _noresize
States that the buffers should not be automatically reside on a restore.
Definition gmStateDumpItem.h:660
Vector * _data
The stored vector (either a GmSingleVector or a GmDualVector)
Definition gmStateDumpItem.h:658
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:588
virtual void getDataBuffer(GmMemoryBufferList &bufferList, qint64 size=0, qint64 offset=0)
Fills the provided bufferList object with the set of buffers that together define the dump item data.
Definition gmStateDumpItem.h:618
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:591
Class responsible for storing the contents provided by a list of int vectors, each with its own size,...
Definition gmStateDumpItem.h:689
bool _fixedHint
Does this object has a low probability of growing?
Definition gmStateDumpItem.h:721
QList< int * > * _dataList
The data list.
Definition gmStateDumpItem.h:718
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:695
qint64 _totalSize
The sum of the sizes in _sizeLists when the operation started.
Definition gmStateDumpItem.h:720
bool _compact
Is this a compact list? See the class description.
Definition gmStateDumpItem.h:717
QList< int > * _sizeList
The sizes for each vector in _dataList.
Definition gmStateDumpItem.h:719
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:704
virtual qint64 size() const
Returns the current item size (in bytes)
Definition gmStateDumpItem.h:707
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:698
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:701
General class for QT streamable objects.
Definition gmStateDumpItem.h:895
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:905
T * _item
The stored item.
Definition gmStateDumpItem.h:916
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:902
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:900
virtual bool fillDataHeader(char *header)
Function called together with getDataBuffer() to provide a "header information" with fixed size (equa...
Definition gmStateDumpItem.h:903
QByteArray _data
The serialized data.
Definition gmStateDumpItem.h:917
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:901
virtual qint64 size() const
Returns the current item size (in bytes)
Definition gmStateDumpItem.h:909
A GmMemoryDumpItem implementation loading / storing values from the GmValueSetData object associated ...
Definition gmStateDumpItem.h:312
virtual bool partialOp() const
Does this item supports partial load / save operations?
Definition gmStateDumpItem.h:342
const GmMesh * mesh() const
Returns the mesh registered by the constructor.
Definition gmStateDumpItem.h:334
int _acType
Acessor type (0 = normal, 1 = geometry part of ghost ac and 2 = ghost part of ghost ac)
Definition gmStateDumpItem.h:365
int _defBufferSize
The size of the def buffers.
Definition gmStateDumpItem.h:371
char * _defSetBuffer
The internal buffer used by set operations for default value sets.
Definition gmStateDumpItem.h:370
virtual bool canCompress() const
Should this item be compressed if the MemoryDump object is configured with compression?
Definition gmStateDumpItem.h:339
int _loadMode
-1 = set not called, 0 = data on value set, 1 = data on defSetBuffer is double vec,...
Definition gmStateDumpItem.h:372
virtual bool fixedSize() const
Is this dump item a fixed size item that probably won't grow in the future? If so,...
Definition gmStateDumpItem.h:345
bool _isPacked
Is this a packed value set?
Definition gmStateDumpItem.h:368
bool _fixedHint
Does this object has a low probability of growing?
Definition gmStateDumpItem.h:366
bool _saved
Has this dump item been saved at least once?
Definition gmStateDumpItem.h:367
int acType() const
Returns the accessor type received on the object constructor (0 = normal, 1 = normal part of ghost ac...
Definition gmStateDumpItem.h:331
GmTrackedValueAccessor * _ac
The accessor object providing the stored data.
Definition gmStateDumpItem.h:364
char * _defGetBuffer
The internal buffer used by get operations for default value sets.
Definition gmStateDumpItem.h:369
GmStateDumpFunctionMapDataItem * _functionMap
The map used to translate function pointers to and from function ids.
Definition gmStateDumpItem.h:374
void resetSaved()
Resets the flag stating whether this item has already been saved or not. This operation is needed if ...
Definition gmStateDumpItem.h:324
Class responsible for a QVariantMap of values. Useful for storing generic sets of "scalar" attributes...
Definition gmStateDumpItem.h:785
Class responsible for storing a GmVector object.
Definition gmStateDumpItem.h:447
virtual int itemType() const
Returns the item type.
Definition gmStateDumpItem.h:455
GmStateDumpVectorDataItem(int id, GmVector *vec, const GmLogCategory &logger, bool fixed, QString itemNamePrefix="")
Constructor.
Definition gmStateDumpItem.h:450
Auxiliary class responisble for allowing a value accessor to track changes to the referenced value se...
Definition gmTrackedValueAccessor.h:38
Interface class for accessing and setting values from an "indexable" collection of values.
Definition gmValueAccessor.h:60
The generic interface implemented by every GmValueSetData object. Its purpose is to provide a base cl...
Definition gmValueSetData.h:58
#define GMC_API_EXPORT
Macro for controlling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_L...
Definition gmCoreConfig.h:35
Implementation of the GmDualVector and GmDualVectorR template classes.
Declaration of the GmMatrix class.
arma::mat GmMatrix
The basic type for a GeMA matrix object. Currently based on an Armadillo matrix.
Definition gmMatrix.h:38
Declaration of the GmMemoryDump and GmMemoryDumpItem classes.
#define GM_MEMORY_DUMP_ITEM_NAME_SIZE
The maximum size for a dump item name.
Definition gmMemoryDump.h:46
#define GM_MEMORY_DUMP_ITEM_DATA_SIZE
The size of the per item fixed item data buffer.
Definition gmMemoryDump.h:49
Implementation of the GmSingleVector template class.
GmStateDumpSDVectorDataItem< GmDualVector< int > > GmStateDumpDualVectorIntDataItem
A GmStateDumpSDVectorDataItem for a GmDualVector<int>
Definition gmStateDumpItem.h:667
GmStateDumpSDVectorDataItem< GmSingleVector< int > > GmStateDumpSingleVectorIntDataItem
A GmStateDumpSDVectorDataItem for a GmSingleVector<int>
Definition gmStateDumpItem.h:664
GmStateDumpItemTypes
The set of possible Dump item types formed by an or of the Base type given by this enumeration with l...
Definition gmStateDumpItem.h:99
@ GM_MESH_DUMP_ITEM
Dump item for mesh objects.
Definition gmStateDumpItem.h:108
@ GM_BUFFER_DUMP_ITEM
Dump item for multiple user buffers.
Definition gmStateDumpItem.h:104
@ GM_FILE_DUMP_ITEM
Dump item for "Append only" files.
Definition gmStateDumpItem.h:107
@ GM_MATRIX_DUMP_ITEM
Dump item for GmMatrix values.
Definition gmStateDumpItem.h:103
@ GM_LUA_DUMP_ITEM
Dump item for Lua global/local variables.
Definition gmStateDumpItem.h:106
@ GM_BC_DUMP_ITEM
Dump item for Boundary condition objects.
Definition gmStateDumpItem.h:109
@ GM_DUMP_ITEM_MASK
Mask for the high bits defining the basic dump item type.
Definition gmStateDumpItem.h:117
@ GM_SDVECTOR_DUMP_ITEM
Dump item for a GmSingleVector or a GmDualVector.
Definition gmStateDumpItem.h:111
@ GM_FUNCTIONMAP_DUMP_ITEM
Dump item for mapping function pointers to function names.
Definition gmStateDumpItem.h:101
@ GM_SPLITINTVEC_DUMP_ITEM
Dump item for a list of int vectors.
Definition gmStateDumpItem.h:110
@ GM_AC_DUMP_ITEM
Dump item for accessor values.
Definition gmStateDumpItem.h:100
@ GM_STREAM_DUMP_ITEM
Dump item for streamable items.
Definition gmStateDumpItem.h:113
@ GM_VECTOR_DUMP_ITEM
Dump item for GmVector values.
Definition gmStateDumpItem.h:102
@ GM_DS_DUMP_ITEM
Dump item for Discontinuity Set.
Definition gmStateDumpItem.h:112
@ GM_MAP_DUMP_ITEM
Dump item for a QMap.
Definition gmStateDumpItem.h:105
#define S_TRACE()
Macro for run time stack tracking at release build.
Definition gmTrace.h:44
Declaration of the GmVector class.
arma::vec GmVector
The basic type for a GeMA vector object. Currently based on an Armadillo vector.
Definition gmVector.h:34
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
bool isEmpty() const const
void truncate(int position)