14 #ifdef MOOSE_UNIT_TEST 15 #include "gtest/gtest.h" 44 CSGUniverse(
const std::string &
name, std::vector<CSGCell *> & cells,
bool is_root =
false);
72 const std::vector<std::reference_wrapper<const CSGCell>> &
getAllCells()
const {
return _cells; }
122 std::vector<std::reference_wrapper<const CSGCell>>
_cells;
133 #ifdef MOOSE_UNIT_TEST std::string name(const ElemQuality q)
std::string _name
Name of universe.
virtual ~CSGUniverse()=default
Destructor.
void setName(const std::string &name)
bool hasCell(const std::string &name) const
check if cell of provided name is present in universe
CSGUniverse creates an internal representation of a Constructive Solid Geometry (CSG) universe...
const std::vector< std::reference_wrapper< const CSGCell > > & getAllCells() const
Get list of the all cells in the universe.
const CSGCell & getCell(const std::string &name)
Get the CSGCell object by name.
void removeCell(const std::string &name)
remove a cell of the specified name from the universe
bool _is_root
whether or not this universe is the root universe
bool operator==(const CSGUniverse &other) const
Operator overload for checking if two CSGUniverse objects are equal.
const std::string & getName() const
Get the name of the universe.
CSGUniverseList creates a container for CSGUniverse objects to pass to CSGBase.
std::vector< std::reference_wrapper< const CSGCell > > _cells
list of references to cells in universe
CSGCell creates an internal representation of a Constructive Solid Geometry (CSG) cell...
bool isRoot() const
return true if the universe is the root universe
void removeAllCells()
remove all cells from the universe
CSGUniverse(const std::string &name, bool is_root=false)
Construct a new CSGUniverse object.
CSGBase creates an internal representation of a Constructive Solid Geometry (CSG) model...
bool operator!=(const CSGUniverse &other) const
Operator overload for checking if two CSGUniverse objects are not equal.
FRIEND_TEST(CSGUniverseTest, testGetCell)
Friends for unit testing.
void addCell(const CSGCell &cell)
add cell to universe