#include <GeoMaterialPropertiesTable.h>
◆ GeoMatPMap
◆ GeoMatPMap_ConstIt
◆ GeoMatPVMap
◆ GeoMatPVMap_ConstIt
◆ MPTCiterator
◆ MPTiterator
◆ GeoMaterialPropertiesTable()
| GeoMaterialPropertiesTable::GeoMaterialPropertiesTable |
( |
| ) |
|
◆ ~GeoMaterialPropertiesTable()
| GeoMaterialPropertiesTable::~GeoMaterialPropertiesTable |
( |
| ) |
|
◆ AddConstProperty()
| void GeoMaterialPropertiesTable::AddConstProperty |
( |
const char * | key, |
|
|
double | PropertyValue ) |
◆ AddEntry()
| void GeoMaterialPropertiesTable::AddEntry |
( |
const char * | key, |
|
|
double | aPhotonMomentum, |
|
|
double | aPropertyValue ) |
Definition at line 59 of file GeoMaterialPropertiesTable.cxx.
62{
63 GeoMaterialPropertyVector *targetVector=
m_MPT[std::string(key)];
64 if(targetVector != 0)
65 targetVector->
AddElement(aPhotonMomentum, aPropertyValue);
66 else
67 throw std::runtime_error("GeoMaterialPropertiesTable::AddEntry ==> Material Property Vector not found.");
68}
void AddElement(double aPhotonMomentum, double aPropertyValue)
◆ AddProperty() [1/2]
| void GeoMaterialPropertiesTable::AddProperty |
( |
const char * | key, |
|
|
double * | PhotonMomenta, |
|
|
double * | PropertyValues, |
|
|
int | NumEntries ) |
Definition at line 31 of file GeoMaterialPropertiesTable.cxx.
35{
36 GeoMaterialPropertyVector *mpv =
37 new GeoMaterialPropertyVector(PhotonMomenta,
38 PropertyValues,
39 NumEntries);
40 m_MPT[std::string(key)] = mpv;
41}
◆ AddProperty() [2/2]
◆ beginPMap()
◆ beginPVMap()
◆ DumpTable()
| void GeoMaterialPropertiesTable::DumpTable |
( |
| ) |
const |
Definition at line 90 of file GeoMaterialPropertiesTable.cxx.
91{
93 {
94 std::cout << (*i).first << "\n";
95 if((*i).second != 0)
96 (*i).second->DumpVector();
97 else
98 std::cout << "NULL Material Property Vector Pointer." << "\n";
99 }
100
102 {
103 std::cout << j->first << "\n";
104 if(j->second != 0)
105 std::cout << j->second << "\n";
106 else
107 std::cout << "No Material Constant Property." << "\n";
108 }
109}
GeoMatPVMap::const_iterator GeoMatPVMap_ConstIt
GeoMatPMap::const_iterator GeoMatPMap_ConstIt
◆ endPMap()
◆ endPVMap()
◆ RemoveConstProperty()
| void GeoMaterialPropertiesTable::RemoveConstProperty |
( |
const char * | key | ) |
|
◆ RemoveProperty()
| void GeoMaterialPropertiesTable::RemoveProperty |
( |
const char * | key | ) |
|
◆ m_MPT
◆ m_MPTC
The documentation for this class was generated from the following files: