LoAdSG
SingleDepthCellStructure.h
1#ifndef SINGLEDEPTHCELLSTRUCTURE_H
2#define SINGLEDEPTHCELLSTRUCTURE_H
3
4
5#include "../sgrid/sparseGrid.h"
6#include "celldimension.h"
7
8class SingleDepthHashCellStructure{
9
10#ifndef BENCHMARKING
11private:
12#else
13 public:
14#endif
15
16
17
18
20 const Depth _depth;
21
22
23public:
25
26 SingleDepthHashCellStructure(Depth depth, AdaptiveSparseGrid_Base &grid);//:_grid(grid),_depth(depth){}
27
28
29 bool addPoint(const CellDimension &key);
30
31
32 Depth getDepth() const {return _depth;}
33
34 bool isDepth(const Depth & depth) const {return _depth == depth;}
35
36 size_t getNumberOfEntries() const { return _map.size();}
37
38};
39
40#endif
Definition sparseGrid.h:86
A simple multihash implementation. Is able to store multiple elements with the same hash.
Definition simpleMultiHash.h:154