34 #ifndef __CHAINMESHCELL__
35 #define __CHAINMESHCELL__
97 return std::make_shared<ChainMeshCell>(*
this);
116 std::vector<unsigned int>
part()
const override
123 std::vector<std::vector<unsigned int>>
nearCells()
const override
ChainMeshCell(const int ID, const std::vector< unsigned int > part={}, std::vector< std::vector< unsigned int >> nearCells={})
constructor that uses comoving coordinates
bool isSet_nearCells()
check if the protected member m_nearCells is set
std::vector< std::vector< unsigned int > > nearCells() const override
get the protected member m_nearCells
std::vector< std::vector< unsigned int > > m_nearCells
the cells near the object, sorted for distance
~ChainMeshCell()=default
default destructor
bool isSet_part()
check if the protected member m_part is set
std::shared_ptr< Object > getShared()
function that allows copying private variables of the class when an object of class Catalogue is copi...
void set_nearCells(const std::vector< std::vector< unsigned int >> nearCells={}) override
set the protected member m_nearCells
void set_part(const std::vector< unsigned int > part={}) override
set the protected member m_part
std::vector< unsigned int > m_part
the particles in the cell
ChainMeshCell()
default constructor
std::vector< unsigned int > part() const override
get the protected member m_part
Object()=default
default constructor
int ID() const
get the member m_radius
The global namespace of the CosmoBolognaLib
bool isSet(const std::string var)
check if the value of a [string] variable has already been set