| 53 | |
| 54 | |
| 55 | PointId ColumnPointTable::addPoint() |
| 56 | { |
| 57 | if (m_numPts % m_blockPtCnt == 0) |
| 58 | { |
| 59 | for (Dimension::Id id : m_layoutRef.dims()) |
| 60 | { |
| 61 | const Dimension::Detail *detail = m_layoutRef.dimDetail(id); |
| 62 | |
| 63 | // Make a block that holds m_blockPtCnt values of a dimension. |
| 64 | size_t size = m_blockPtCnt * Dimension::size(detail->type()); |
| 65 | char *buf = new char[size]; |
| 66 | memset(buf, 0, size); |
| 67 | DimBlockList& dimBlocks = m_blocks[detail->order()]; |
| 68 | dimBlocks.push_back(buf); |
| 69 | } |
| 70 | } |
| 71 | return m_numPts++; |
| 72 | } |
| 73 | |
| 74 | namespace |
| 75 | { |