NDDEM
Public Member Functions | Public Attributes | List of all members
Octree< d > Class Template Reference

#include <Octree.h>

Public Member Functions

int init_cells (std::vector< Boundary< d >> &boundaries, std::vector< double > &r)
 
int cells_to_split ()
 
int fit_in (std::vector< double > &r, double smallestdim, char lvl)
 
int allocate_to_cells (std::vector< std::vector< double >> &X)
 
int contacts (int ID, std::pair< int, int > bounds, CLp_it_t< d > &CLp_it, ContactList< d > &CLnew, std::vector< std::vector< double >> const &X, std::vector< double > const &r, double LE_displacement)
 
template<class Archive >
void serialize (Archive &ar)
 

Public Attributes

std::vector< Cells< d > > octree
 
std::vector< char > lvl_tree
 
char max_lvl =-1
 

Member Function Documentation

◆ allocate_to_cells()

template<int d>
int Octree< d >::allocate_to_cells ( std::vector< std::vector< double >> &  X)
inline

◆ cells_to_split()

template<int d>
int Octree< d >::cells_to_split ( )
inline

◆ contacts()

template<int d>
int Octree< d >::contacts ( int  ID,
std::pair< int, int >  bounds,
CLp_it_t< d > &  CLp_it,
ContactList< d > &  CLnew,
std::vector< std::vector< double >> const X,
std::vector< double > const r,
double  LE_displacement 
)
inline

◆ fit_in()

template<int d>
int Octree< d >::fit_in ( std::vector< double > &  r,
double  smallestdim,
char  lvl 
)
inline

◆ init_cells()

template<int d>
int Octree< d >::init_cells ( std::vector< Boundary< d >> &  boundaries,
std::vector< double > &  r 
)
inline

◆ serialize()

template<int d>
template<class Archive >
void Octree< d >::serialize ( Archive &  ar)
inline

Member Data Documentation

◆ lvl_tree

template<int d>
std::vector<char> Octree< d >::lvl_tree

◆ max_lvl

template<int d>
char Octree< d >::max_lvl =-1

◆ octree

template<int d>
std::vector<Cells<d> > Octree< d >::octree

The documentation for this class was generated from the following file: