65template <
class itemType>
67 const vector<vector<itemType>> &table,
68 const string &tableName,
69 ostream &stream)
const {
71 size_t localByteNumber = 0;
74 for(
size_t i = 0; i < table.size(); i++) {
75 localByteNumber += table[i].size() *
sizeof(itemType);
78 if((localByteNumber) && (tableName.length()) && (msg)) {
79 msg << tableName <<
": " << localByteNumber <<
" bytes";
83 return localByteNumber;
88 size +=
sizeof(*this);
104 size += tableTableFootprint<SimplexId>(
edgeLinkList_,
"edgeLinkList_");
108 size += tableTableFootprint<SimplexId>(
edgeStarList_,
"edgeStarList_");
123 size += tableTableFootprint<SimplexId>(
vertexEdgeList_,
"vertexEdgeList_");
125 size += tableTableFootprint<SimplexId>(
vertexLinkList_,
"vertexLinkList_");
127 size += tableTableFootprint<SimplexId>(
130 size += tableTableFootprint<SimplexId>(
vertexStarList_,
"vertexStarList_");
132 size += tableTableFootprint<SimplexId>(
139 msg <<
"Total footprint: " << (size / 1024) / 1024 <<
" MB.";
bool hasPreconditionedEdgeTriangles_
std::vector< std::vector< SimplexId > > vertexStarList_
bool hasPreconditionedCellEdges_
bool hasPreconditionedBoundaryVertices_
bool hasPreconditionedBoundaryEdges_
bool hasPreconditionedCellNeighbors_
bool hasPreconditionedEdges_
bool hasPeriodicBoundaries_
std::vector< std::array< SimplexId, 3 > > triangleList_
bool hasPreconditionedVertexLinks_
bool hasPreconditionedEdgeLinks_
~AbstractTriangulation() override
std::vector< bool > boundaryEdges_
bool hasPreconditionedVertexNeighbors_
bool hasPreconditionedManifold_
std::vector< bool > boundaryTriangles_
std::vector< std::array< SimplexId, 4 > > tetraTriangleList_
bool hasPreconditionedBoundaryTriangles_
std::vector< std::vector< SimplexId > > triangleLinkList_
std::vector< std::vector< SimplexId > > vertexNeighborList_
bool hasPreconditionedTriangleStars_
std::vector< std::vector< SimplexId > > vertexLinkList_
std::vector< std::vector< SimplexId > > edgeLinkList_
std::vector< bool > boundaryVertices_
std::vector< std::vector< SimplexId > > vertexEdgeList_
std::vector< std::vector< SimplexId > > triangleEdgeVector_
std::vector< std::vector< SimplexId > > triangleStarList_
std::vector< std::vector< SimplexId > > cellNeighborList_
bool hasPreconditionedVertexStars_
std::vector< std::array< SimplexId, 2 > > edgeList_
std::vector< std::array< SimplexId, 6 > > tetraEdgeList_
std::vector< std::vector< SimplexId > > edgeStarList_
size_t tableFootprint(const std::vector< itemType > &table, const std::string &tableName="", std::ostream &stream=std::cout) const
bool hasPreconditionedTriangleEdges_
bool hasPreconditionedCellTriangles_
std::vector< std::vector< SimplexId > > vertexTriangleList_
bool hasPreconditionedTriangles_
std::vector< std::vector< SimplexId > > cellEdgeVector_
bool hasPreconditionedVertexTriangles_
size_t footprint(size_t size=0) const
std::vector< std::vector< SimplexId > > cellTriangleVector_
size_t tableTableFootprint(const std::vector< std::vector< itemType > > &table, const std::string &tableName="", std::ostream &stream=std::cout) const
bool hasPreconditionedVertexEdges_
bool hasPreconditionedEdgeStars_
bool hasPreconditionedTriangleLinks_
std::vector< std::array< SimplexId, 3 > > triangleEdgeList_
std::vector< std::vector< SimplexId > > edgeTriangleList_
void setDebugMsgPrefix(const std::string &prefix)
printMsg(debug::output::BOLD+" | | | | | . \\ | | (__| | / __/| |_| / __/|__ _|"+debug::output::ENDCOLOR, debug::Priority::PERFORMANCE, debug::LineMode::NEW, stream)