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