#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 | el | ) |
|
Definition at line 51 of file AGDDMaterialStore.cxx.
52{
55 else
56 {
57 std::cout<<
" Element "<<
el<<
" not found!"<<std::endl;
58 return 0;
59 }
60}
◆ GetMaterial()
Definition at line 41 of file AGDDMaterialStore.cxx.
42{
45 else
46 {
47 std::cout<<
" Material "<<
mat<<
" not found!"<<std::endl;
48 return 0;
49 }
50}
◆ MaterialBegin()
◆ MaterialEnd()
◆ NumberOfElements()
| int AGDDMaterialStore::NumberOfElements |
( |
| ) |
|
|
inline |
◆ NumberOfMaterials()
| int AGDDMaterialStore::NumberOfMaterials |
( |
| ) |
|
|
inline |
◆ PrintElement()
| void AGDDMaterialStore::PrintElement |
( |
const std::string & | n | ) |
|
Definition at line 90 of file AGDDMaterialStore.cxx.
91{
94 else
95 std::cout<<
"Element "<<
n<<
" not found!"<<std::endl;
96}
◆ PrintElementNames()
| void AGDDMaterialStore::PrintElementNames |
( |
| ) |
|
Definition at line 62 of file AGDDMaterialStore.cxx.
63{
64 std::cout<<"List of elements so far defined: "<<
65 std::endl<<"-----> ";
66 AGDDElementMap::const_iterator
it;
69 {
71 if (!(i%5)) std::cout<<std::endl<<"-----> ";
72 std::cout<<(*it).first<<",";
73 }
74}
◆ PrintMaterial()
| void AGDDMaterialStore::PrintMaterial |
( |
const std::string & | n | ) |
|
Definition at line 98 of file AGDDMaterialStore.cxx.
99{
102 else
103 std::cout<<
"Material "<<
n<<
" not found!"<<std::endl;
104}
◆ PrintMaterialNames()
| void AGDDMaterialStore::PrintMaterialNames |
( |
| ) |
|
Definition at line 76 of file AGDDMaterialStore.cxx.
77{
78 std::cout<<"List of materials so far defined: "<<
79 std::endl<<"-----> ";
80 AGDDMaterialMap::const_iterator
it;
83 {
85 if (!(i%5)) std::cout<<std::endl<<"-----> ";
86 std::cout<<(*it).first<<",";
87 }
88}
◆ RegisterElement()
| void AGDDMaterialStore::RegisterElement |
( |
AGDDElement * | el | ) |
|
Definition at line 17 of file AGDDMaterialStore.cxx.
18{
20 {
21 std::cout<<
"Element "<<
el->GetName()<<
" already defined:skipping"<<std::endl;
22 }
23 else
24 {
27 }
28}
◆ RegisterMaterial()
Definition at line 29 of file AGDDMaterialStore.cxx.
30{
32 {
33 std::cout<<
"Material "<<
mat->GetName()<<
" already defined:skipping"<<std::endl;
34 }
35 else
36 {
39 }
40}
◆ 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: