MCPcopy Create free account
hub / github.com/Kitware/VTK / Init

Method Init

IO/Import/vtkVRML.h:75–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

vtkVRMLVectorTypeMethod · 0.95
ImportBeginMethod · 0.45

Calls 2

AllocateMemoryFunction · 0.85
InitializeFunction · 0.70

Tested by

no test coverage detected