| 73 | } |
| 74 | |
| 75 | void Init() |
| 76 | { |
| 77 | this->Allocated = DEFAULTINCREMENT; |
| 78 | if (!this->UseNew) |
| 79 | { |
| 80 | vtkVRMLAllocator::Initialize(); |
| 81 | // NOLINTNEXTLINE(bugprone-sizeof-expression) |
| 82 | void* mem = vtkVRMLAllocator::AllocateMemory(this->Allocated * sizeof(T)); |
| 83 | this->Data = new (mem) T[this->Allocated]; |
| 84 | } |
| 85 | else |
| 86 | { |
| 87 | this->Data = new T[this->Allocated]; |
| 88 | } |
| 89 | Used = 0; |
| 90 | } |
| 91 | |
| 92 | void Reserve(int newSize) |
| 93 | { |
no test coverage detected