#include <AGDDMaterialStore.h>
Definition at line 23 of file AGDDMaterialStore.h.
◆ AGDDMaterialStore()
| AGDDMaterialStore::AGDDMaterialStore |
( |
| ) |
|
Definition at line 11 of file AGDDMaterialStore.cxx.
12{
15}
AGDDMaterialMap m_theMaterials
AGDDElementMap m_theElements
◆ ElementBegin()
◆ ElementEnd()
◆ GetElement()
| AGDDElement * AGDDMaterialStore::GetElement |
( |
std::string_view | el | ) |
|
Definition at line 45 of file AGDDMaterialStore.cxx.
45 {
48 std::cout<<
" Element "<<
el<<
" not found!"<<std::endl;
49 return nullptr;
50 }
52}
◆ GetMaterial()
Definition at line 37 of file AGDDMaterialStore.cxx.
37 {
40 std::cout <<
" Material " <<
mat <<
" not found!\n";
41 return nullptr;
42 }
44}
◆ MaterialBegin()
◆ MaterialEnd()
◆ NumberOfElements()
| int AGDDMaterialStore::NumberOfElements |
( |
| ) |
|
|
inline |
◆ NumberOfMaterials()
| int AGDDMaterialStore::NumberOfMaterials |
( |
| ) |
|
|
inline |
◆ PrintElement()
| void AGDDMaterialStore::PrintElement |
( |
const std::string & | n | ) |
|
Definition at line 82 of file AGDDMaterialStore.cxx.
83{
86 else
87 std::cout<<
"Element "<<
n<<
" not found!"<<std::endl;
88}
◆ PrintElementNames()
| void AGDDMaterialStore::PrintElementNames |
( |
| ) |
|
Definition at line 54 of file AGDDMaterialStore.cxx.
55{
56 std::cout<<"List of elements so far defined: "<<
57 std::endl<<"-----> ";
58 AGDDElementMap::const_iterator
it;
61 {
63 if (!(i%5)) std::cout<<std::endl<<"-----> ";
64 std::cout<<(*it).first<<",";
65 }
66}
◆ PrintMaterial()
| void AGDDMaterialStore::PrintMaterial |
( |
const std::string & | n | ) |
|
Definition at line 90 of file AGDDMaterialStore.cxx.
91{
94 else
95 std::cout<<
"Material "<<
n<<
" not found!"<<std::endl;
96}
◆ PrintMaterialNames()
| void AGDDMaterialStore::PrintMaterialNames |
( |
| ) |
|
Definition at line 68 of file AGDDMaterialStore.cxx.
69{
70 std::cout<<"List of materials so far defined: "<<
71 std::endl<<"-----> ";
72 AGDDMaterialMap::const_iterator
it;
75 {
77 if (!(i%5)) std::cout<<std::endl<<"-----> ";
78 std::cout<<(*it).first<<",";
79 }
80}
◆ RegisterElement()
| void AGDDMaterialStore::RegisterElement |
( |
AGDDElement * | el | ) |
|
Definition at line 18 of file AGDDMaterialStore.cxx.
18 {
20 if (!inserted) {
21 std::cout <<
"Element " <<
el->GetName()<<
" already defined: skipping\n";
22 return;
23 }
25}
◆ RegisterMaterial()
Definition at line 27 of file AGDDMaterialStore.cxx.
27 {
29 if (!inserted) {
30 std::cout <<
"Material " <<
mat->GetName() <<
" already defined: skipping\n";
31 return;
32 }
34}
◆ m_nrOfElements
| int AGDDMaterialStore::m_nrOfElements |
|
private |
◆ m_nrOfMaterials
| int AGDDMaterialStore::m_nrOfMaterials |
|
private |
◆ m_theElements
◆ m_theMaterials
The documentation for this class was generated from the following files: