#include <G4DNAEventSet.hh>
Definition at line 78 of file G4DNAEventSet.hh.
◆ EventMap
◆ EventSet
◆ Index
◆ G4DNAEventSet()
G4DNAEventSet::G4DNAEventSet |
( |
| ) |
|
◆ ~G4DNAEventSet()
G4DNAEventSet::~G4DNAEventSet |
( |
| ) |
|
|
virtual |
◆ AddEvent()
void G4DNAEventSet::AddEvent |
( |
std::unique_ptr< Event > | pEvent | ) |
|
Definition at line 105 of file G4DNAEventSet.cc.
106{
107
108 auto key = pEvent->GetIndex();
110 auto it = fEventSet.emplace(std::move(pEvent));
111 fEventMap[key] = std::get<0>(it);
112}
void RemoveEventOfVoxel(const Index &key)
Referenced by CreateEvent(), and CreateEvent().
◆ begin() [1/2]
EventSet::iterator G4DNAEventSet::begin |
( |
| ) |
|
|
inline |
◆ begin() [2/2]
EventSet::const_iterator G4DNAEventSet::begin |
( |
| ) |
const |
|
inline |
◆ CreateEvent() [1/2]
◆ CreateEvent() [2/2]
Definition at line 82 of file G4DNAEventSet.cc.
84{
85 auto pEvent = std::make_unique<Event>(time, index, std::move(jum));
87}
◆ Empty()
G4bool G4DNAEventSet::Empty |
( |
| ) |
|
|
inline |
◆ end() [1/2]
EventSet::iterator G4DNAEventSet::end |
( |
| ) |
|
|
inline |
◆ end() [2/2]
EventSet::const_iterator G4DNAEventSet::end |
( |
| ) |
const |
|
inline |
◆ PrintEventSet()
void G4DNAEventSet::PrintEventSet |
( |
| ) |
|
Definition at line 118 of file G4DNAEventSet.cc.
119{
121 G4cout <<
"*****************************************************" <<
G4endl;
122 G4cout <<
"G4DNAEventSet::PrintEventSet() of : "<< this->
size()<<
" events "<<
G4endl;
123 for(const auto& it : fEventSet)
124 {
125 (*it).PrintEvent();
126 }
128 G4cout <<
"*****************************************************" <<
G4endl;
130}
G4GLOB_DLL std::ostream G4cout
◆ rbegin()
EventSet::reverse_iterator G4DNAEventSet::rbegin |
( |
| ) |
|
|
inline |
◆ RemoveEvent()
void G4DNAEventSet::RemoveEvent |
( |
EventSet::iterator | iter | ) |
|
Definition at line 99 of file G4DNAEventSet.cc.
100{
101 auto index = (*iter)->GetIndex();
103}
◆ RemoveEventOfVoxel()
void G4DNAEventSet::RemoveEventOfVoxel |
( |
const Index & | key | ) |
|
Definition at line 89 of file G4DNAEventSet.cc.
90{
91 auto it = fEventMap.find(key);
92 if(it != fEventMap.end())
93 {
94 fEventSet.erase(it->second);
95 fEventMap.erase(it);
96 }
97}
Referenced by AddEvent(), and RemoveEvent().
◆ RemoveEventSet()
void G4DNAEventSet::RemoveEventSet |
( |
| ) |
|
|
inline |
◆ rend()
EventSet::reverse_iterator G4DNAEventSet::rend |
( |
| ) |
|
|
inline |
◆ size()
size_t G4DNAEventSet::size |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: