30#ifndef vtkXMLOffsetsManager_DoNotInclude
31#error "do not include unless you know what you are doing"
34#ifndef vtkXMLOffsetsManager_h
35#define vtkXMLOffsetsManager_h
42VTK_ABI_NAMESPACE_BEGIN
53 assert(numTimeStep > 0);
54 this->Positions.resize(numTimeStep);
55 this->RangeMinPositions.resize(numTimeStep);
56 this->RangeMaxPositions.resize(numTimeStep);
57 this->OffsetValues.resize(numTimeStep);
61 assert(t < this->Positions.size());
62 return this->Positions[t];
66 assert(t < this->RangeMinPositions.size());
67 return this->RangeMinPositions[t];
71 assert(t < this->RangeMaxPositions.size());
72 return this->RangeMaxPositions[t];
76 assert(t < this->OffsetValues.size());
77 return this->OffsetValues[t];
88 std::vector<vtkTypeInt64> Positions;
89 std::vector<vtkTypeInt64> RangeMinPositions;
90 std::vector<vtkTypeInt64> RangeMaxPositions;
92 std::vector<vtkTypeInt64> OffsetValues;
107 assert(index < this->Internals.size());
124 assert(numElements >= 0);
125 this->Internals.resize(numElements);
129 assert(numElements >= 0);
130 assert(numTimeSteps > 0);
131 this->Internals.resize(numElements);
132 for (
int i = 0; i < numElements; i++)
134 this->Internals[i].Allocate(numTimeSteps);
139 std::vector<OffsetsManager> Internals;
148 assert(index < this->Internals.size());
149 return this->Internals[index];
153 assert(numPieces > 0);
155 this->Internals.resize(0);
156 this->Internals.resize(numPieces);
158 void Allocate(
int numPieces,
int numElements,
int numTimeSteps)
160 assert(numPieces > 0);
161 assert(numElements > 0);
162 assert(numTimeSteps > 0);
165 this->Internals.resize(0);
166 this->Internals.resize(numPieces);
167 for (
int i = 0; i < numPieces; i++)
169 this->Internals[i].Allocate(numElements, numTimeSteps);
174 std::vector<OffsetsManagerGroup> Internals;
void Allocate(int numPieces)
OffsetsManagerGroup & GetPiece(unsigned int index)
void Allocate(int numPieces, int numElements, int numTimeSteps)
OffsetsManager & GetPiece(unsigned int index)
void Allocate(int numElements)
unsigned int GetNumberOfElements()
OffsetsManager & GetElement(unsigned int index)
void Allocate(int numElements, int numTimeSteps)
Helper class due to PIMPL excess.
void Allocate(int numTimeStep)
vtkTypeInt64 & GetPosition(unsigned int t)
vtkTypeInt64 & GetRangeMaxPosition(unsigned int t)
vtkTypeInt64 & GetOffsetValue(unsigned int t)
vtkMTimeType & GetLastMTime()
vtkTypeInt64 & GetRangeMinPosition(unsigned int t)
vtkTypeUInt32 vtkMTimeType