CSGCellList creates a container for CSGCell objects to pass to CSGBase object. More...
#include <CSGCellList.h>
Protected Member Functions | |
| CSGCellList () | |
| Default constructor. More... | |
| virtual | ~CSGCellList ()=default |
| Destructor. More... | |
| CSGCell & | addMaterialCell (const std::string &name, const std::string &mat_name, const CSGRegion ®ion) |
| Add a Material Cell object to cell list. More... | |
| CSGCell & | addVoidCell (const std::string &name, const CSGRegion ®ion) |
| Add a Void Cell object cell list. More... | |
| CSGCell & | addUniverseCell (const std::string &name, const CSGUniverse &univ, const CSGRegion ®ion) |
| Add a Universe Cell object to cell list. More... | |
| std::unordered_map< std::string, std::unique_ptr< CSGCell > > & | getCellListMap () |
| Get map of all names to cells in cell list. More... | |
| std::vector< std::reference_wrapper< const CSGCell > > | getAllCells () const |
| Get all the cells in CSGBase instance. More... | |
| CSGCell & | getCell (const std::string &name) const |
| Get the CSGCell by name. More... | |
| CSGCell & | addCell (std::unique_ptr< CSGCell > cell) |
| add a cell to the CellList. More... | |
| void | renameCell (const CSGCell &cell, const std::string &name) |
| rename the specified cell More... | |
Protected Attributes | |
| std::unordered_map< std::string, std::unique_ptr< CSGCell > > | _cells |
| Mapping of cell names to pointers of stored cell objects. More... | |
Friends | |
| class | CSGBase |
CSGCellList creates a container for CSGCell objects to pass to CSGBase object.
Definition at line 20 of file CSGCellList.h.
|
protected |
|
protectedvirtualdefault |
Destructor.
add a cell to the CellList.
Ownership of cell will be transferred to cell list object that calls this function
| cell | cell to add to the CellList. |
Definition at line 18 of file CSGCellList.C.
Referenced by addMaterialCell(), addUniverseCell(), addVoidCell(), CSG::CSGBase::joinCellList(), and renameCell().
|
protected |
Add a Material Cell object to cell list.
| name | unique cell name |
| mat_name | material name |
| region | cell region |
Definition at line 43 of file CSGCellList.C.
Referenced by CSG::CSGBase::createCell().
|
protected |
Add a Universe Cell object to cell list.
| name | unique cell name |
| univ | universe |
| region | cell region |
Definition at line 51 of file CSGCellList.C.
Referenced by CSG::CSGBase::createCell().
|
protected |
Add a Void Cell object cell list.
| name | unique cell name |
| region | cell region |
Definition at line 37 of file CSGCellList.C.
Referenced by CSG::CSGBase::createCell().
|
protected |
Get all the cells in CSGBase instance.
Definition at line 59 of file CSGCellList.C.
Referenced by CSG::CSGBase::getAllCells().
|
protected |
Get the CSGCell by name.
| name |
Definition at line 28 of file CSGCellList.C.
Referenced by CSG::CSGBase::checkCellInBase(), CSG::CSGBase::getCellByName(), and CSG::CSGBase::updateCellRegion().
|
inlineprotected |
Get map of all names to cells in cell list.
Definition at line 72 of file CSGCellList.h.
Referenced by CSG::CSGBase::joinCellList().
rename the specified cell
| cell | reference to CSGCell object that should be renamed |
| name | new name |
Definition at line 68 of file CSGCellList.C.
Referenced by CSG::CSGBase::renameCell().
|
friend |
Definition at line 110 of file CSGCellList.h.
|
protected |
Mapping of cell names to pointers of stored cell objects.
Definition at line 107 of file CSGCellList.h.
Referenced by addCell(), getAllCells(), getCell(), getCellListMap(), and renameCell().
1.8.14