12 #ifndef smtk_mesh_moab_IncrementalAllocator_h
13 #define smtk_mesh_moab_IncrementalAllocator_h
15 #include "smtk/CoreExports.h"
18 #include "smtk/mesh/moab/BufferedCellAllocator.h"
19 #include "smtk/mesh/moab/Interface.h"
49 std::size_t addCoordinate(
double* xyz)
override;
50 bool setCoordinate(std::size_t coord,
double* xyz)
override;
55 return BufferedCellAllocator::addCell(ctype, pointIds, nCoordinates);
60 return BufferedCellAllocator::addCell(ctype, pointIds, nCoordinates);
64 return BufferedCellAllocator::addCell(ctype, pointIds, nCoordinates);
67 bool flush()
override {
return BufferedCellAllocator::flush(); }
69 smtk::mesh::HandleRange cells()
override {
return BufferedCellAllocator::cells(); }
71 bool isValid()
const override {
return BufferedCellAllocator::isValid(); }
74 bool allocateCoordinates(std::size_t nCoordinates);
80 std::size_t m_index{ 0 };
81 std::vector<std::vector<double*>> m_coordinateMemories;