42 #ifndef vtkXMLOffsetsManager_DoNotInclude 43 #error "do not include unless you know what you are doing" 46 #ifndef vtkXMLOffsetsManager_h 47 #define vtkXMLOffsetsManager_h 64 assert( numTimeStep > 0);
65 this->Positions.resize(numTimeStep);
66 this->RangeMinPositions.resize(numTimeStep);
67 this->RangeMaxPositions.resize(numTimeStep);
68 this->OffsetValues.resize(numTimeStep);
72 assert( t < this->Positions.size());
73 return this->Positions[t];
77 assert( t < this->RangeMinPositions.size());
78 return this->RangeMinPositions[t];
82 assert( t < this->RangeMaxPositions.size());
83 return this->RangeMaxPositions[t];
87 assert( t < this->OffsetValues.size());
88 return this->OffsetValues[t];
92 return this->LastMTime;
101 std::vector<vtkTypeInt64> Positions;
102 std::vector<vtkTypeInt64> RangeMinPositions;
103 std::vector<vtkTypeInt64> RangeMaxPositions;
105 std::vector<vtkTypeInt64> OffsetValues;
120 assert( index < this->Internals.size());
136 return static_cast<unsigned int>(this->Internals.size());
140 assert(numElements >= 0);
141 this->Internals.resize(numElements);
145 assert(numElements > 0);
146 assert(numTimeSteps > 0);
147 this->Internals.resize(numElements);
148 for(
int i=0; i<numElements; i++)
150 this->Internals[i].Allocate(numTimeSteps);
154 std::vector<OffsetsManager> Internals;
163 assert( index < this->Internals.size());
164 return this->Internals[
index];
168 assert(numPieces > 0);
170 this->Internals.resize(0);
171 this->Internals.resize(numPieces);
173 void Allocate(
int numPieces,
int numElements,
int numTimeSteps)
175 assert(numPieces > 0);
176 assert(numElements > 0);
177 assert(numTimeSteps > 0);
180 this->Internals.resize(0);
181 this->Internals.resize(numPieces);
182 for(
int i=0; i<numPieces; i++)
184 this->Internals[i].Allocate(numElements, numTimeSteps);
188 std::vector<OffsetsManagerGroup> Internals;
OffsetsManagerGroup & GetPiece(unsigned int index)
void Allocate(int numTimeStep)
vtkTypeUInt32 vtkMTimeType
void Allocate(int numElements)
void Allocate(int numPieces)
Helper class due to PIMPL excess.
OffsetsManager & GetPiece(unsigned int index)
vtkTypeInt64 & GetRangeMaxPosition(unsigned int t)
unsigned int GetNumberOfElements()
vtkTypeInt64 & GetRangeMinPosition(unsigned int t)
vtkTypeInt64 & GetPosition(unsigned int t)
vtkTypeInt64 & GetOffsetValue(unsigned int t)
void Allocate(int numElements, int numTimeSteps)
void Allocate(int numPieces, int numElements, int numTimeSteps)
OffsetsManager & GetElement(unsigned int index)
vtkMTimeType & GetLastMTime()