Changed tab
This commit is contained in:
parent
e01d3d0331
commit
730185ff89
@ -55,12 +55,20 @@ namespace CosmoTool
|
|||||||
|
|
||||||
typedef octCoordType OctCoords[3];
|
typedef octCoordType OctCoords[3];
|
||||||
|
|
||||||
|
template<class T = void>
|
||||||
struct OctCell
|
struct OctCell
|
||||||
{
|
{
|
||||||
octPtr numberLeaves;
|
octPtr numberLeaves;
|
||||||
octPtr children[8];
|
octPtr children[8];
|
||||||
|
T data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
struct OctTree_defaultUpdater {
|
||||||
|
void operator()(T& d) { }
|
||||||
|
};
|
||||||
|
|
||||||
|
template<typename T_dataUpdater = OctTree_defaultUpdater<void>, class T = void>
|
||||||
class OctTree
|
class OctTree
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -103,9 +111,10 @@ namespace CosmoTool
|
|||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
T_dataUpdater updater;
|
||||||
const FCoordinates *particles;
|
const FCoordinates *particles;
|
||||||
octPtr numParticles;
|
octPtr numParticles;
|
||||||
OctCell *cells;
|
OctCell<T> *cells;
|
||||||
float Lbox;
|
float Lbox;
|
||||||
octPtr lastNode;
|
octPtr lastNode;
|
||||||
octPtr numCells;
|
octPtr numCells;
|
||||||
|
Loading…
Reference in New Issue
Block a user