#include <GeoMaterialPropertyVector.h>
Definition at line 11 of file GeoMaterialPropertyVector.h.
◆ GeoMaterialPropertyVector() [1/3]
| GeoMaterialPropertyVector::GeoMaterialPropertyVector |
( |
| ) |
|
|
inline |
◆ GeoMaterialPropertyVector() [2/3]
| GeoMaterialPropertyVector::GeoMaterialPropertyVector |
( |
double * | PhotonMomenta, |
|
|
double * | PropertyValues, |
|
|
int | NumElements ) |
Definition at line 39 of file GeoMaterialPropertyVector.cxx.
42{
45
46 for(
int i = 0;
i < NumElements;
i++)
47 AddElement(PhotonMomenta[i], PropertyValues[i]);
48}
void AddElement(double aPhotonMomentum, double aPropertyValue)
◆ GeoMaterialPropertyVector() [3/3]
◆ ~GeoMaterialPropertyVector()
| GeoMaterialPropertyVector::~GeoMaterialPropertyVector |
( |
| ) |
|
◆ AddElement()
| void GeoMaterialPropertyVector::AddElement |
( |
double | aPhotonMomentum, |
|
|
double | aPropertyValue ) |
Definition at line 75 of file GeoMaterialPropertyVector.cxx.
77{
78 GeoMPVEntry *newElement;
79
80 newElement = new GeoMPVEntry(aPhotonMomentum, aPropertyValue);
81 m_MPV.push_back(newElement);
83}
◆ DumpVector()
| void GeoMaterialPropertyVector::DumpVector |
( |
| ) |
|
Definition at line 101 of file GeoMaterialPropertyVector.cxx.
102{
104 {
105 std::cerr << "nothing to dump\n";
106 throw std::runtime_error("GeoMaterialPropertyVector::DumpVector ==>Nothing to dump! Vector is empty");
107 }
108
110 {
111 std::cout <<
"m_MPV["<<
i <<
"]: ";
113 }
114 std::cout <<
" Done DumpVector of " <<
m_NumEntries <<
" entries\n";
115
116}
◆ GetEntry()
| GeoMPVEntry GeoMaterialPropertyVector::GetEntry |
( |
int | i | ) |
const |
|
private |
◆ GetPhotonMomentum()
| double GeoMaterialPropertyVector::GetPhotonMomentum |
( |
| ) |
const |
Definition at line 93 of file GeoMaterialPropertyVector.cxx.
94{
96 throw std::runtime_error("GeoMaterialPropertyVector::GetPhotonMomentum ==>Iterator attempted to Retrieve Photon Momentum out of range");
97 else
99}
◆ GetProperty()
| double GeoMaterialPropertyVector::GetProperty |
( |
| ) |
const |
Definition at line 85 of file GeoMaterialPropertyVector.cxx.
86{
88 throw std::runtime_error("GeoMaterialPropertyVector::GetProperty ==>Iterator attempted to Retrieve Property out of range");
89 else
91}
◆ operator++()
| bool GeoMaterialPropertyVector::operator++ |
( |
| ) |
|
◆ operator=()
Definition at line 18 of file GeoMaterialPropertyVector.cxx.
19{
20 if (this == &right) return *this;
21
22 for(
unsigned i=0;
i<
m_MPV.size(); ++
i)
25
28
30 {
31 GeoMPVEntry *newElement =
new GeoMPVEntry(right.
GetEntry(i));
32 m_MPV.push_back(newElement);
34 }
35
36 return *this;
37}
◆ ResetIterator()
| void GeoMaterialPropertyVector::ResetIterator |
( |
| ) |
|
◆ m_CurrentEntry
| int GeoMaterialPropertyVector::m_CurrentEntry |
|
private |
◆ m_MPV
| std::vector<GeoMPVEntry*> GeoMaterialPropertyVector::m_MPV |
|
private |
◆ m_NumEntries
| int GeoMaterialPropertyVector::m_NumEntries |
|
private |
The documentation for this class was generated from the following files: