#include <G4HadronXSDataTable.hh>
Definition at line 54 of file G4HadronXSDataTable.hh.
◆ ~G4HadronXSDataTable()
G4HadronXSDataTable::~G4HadronXSDataTable |
( |
| ) |
|
Definition at line 63 of file G4HadronXSDataTable.cc.
64{
65 for (std::size_t i = 0; i < fPiData.size(); ++i) {
66 auto ptr = fPiData[i];
67 for (std::size_t j = 0; j < ptr->size(); ++j) {
68 auto p = (*ptr)[j];
69 for (std::size_t k = i + 1; k < fPiData.size(); ++k) {
70 auto qtr = fPiData[k];
71 for (std::size_t l = 0; l < qtr->size(); ++l) {
72 if ((*qtr)[l] == p) { (*qtr)[l] = nullptr; }
73 }
74 }
75 delete p;
76 (*ptr)[j] = nullptr;
77 }
78 delete ptr;
79 }
80 fPiData.clear();
81 for (auto const & ptr : fTable) {
82 ptr->clearAndDestroy();
83 delete ptr;
84 }
85 fTable.clear();
86}
◆ G4HadronXSDataTable()
◆ AddPiData()
void G4HadronXSDataTable::AddPiData |
( |
std::vector< G4PiData * > * | ptr | ) |
|
Definition at line 90 of file G4HadronXSDataTable.cc.
91{
92 if (nullptr == ptr || ptr->empty()) { return; }
93 for (auto & d : fPiData) {
94 if (ptr == d) { return; }
95 }
96 fPiData.push_back(ptr);
97}
◆ AddTable()
Definition at line 101 of file G4HadronXSDataTable.cc.
102{
103 if (nullptr != ptr) {
104 for (auto & p : fTable) { if (p == ptr) { return; } }
105 fTable.push_back(ptr);
106 }
107}
◆ Instance()
Definition at line 48 of file G4HadronXSDataTable.cc.
48 {
49 if ( sInstance == nullptr ) {
51 sInstance = &theObject;
52 }
53 return sInstance;
54}
G4HadronXSDataTable(const G4HadronXSDataTable &)=delete
◆ operator=()
The documentation for this class was generated from the following files: