#include <G4AccumulableManager.hh>
Definition at line 44 of file G4AccumulableManager.hh.
G4AccumulableManager::~G4AccumulableManager |
( |
| ) |
|
|
virtual |
std::vector<G4VAccumulable*>::iterator G4AccumulableManager::Begin |
( |
| ) |
|
std::vector<G4VAccumulable*>::const_iterator G4AccumulableManager::BeginConst |
( |
| ) |
const |
std::vector<G4VAccumulable*>::const_iterator G4AccumulableManager::EndConst |
( |
| ) |
const |
Definition at line 136 of file G4AccumulableManager.cc.
139 auto it = fMap.find(name);
140 if ( it == fMap.end() ) {
143 description <<
" " <<
"accumulable " << name <<
" does not exist.";
144 G4Exception(
"G4AccumulableManager::GetAccumulable",
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 155 of file G4AccumulableManager.cc.
158 if ( id < 0 || id >=
G4int(fVector.size()) ) {
161 description <<
" " <<
"accumulable " <<
id <<
" does not exist.";
162 G4Exception(
"G4AccumulableManager::GetAccumulable",
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4int G4AccumulableManager::GetNofAccumulables |
( |
| ) |
const |
void G4AccumulableManager::Merge |
( |
| ) |
|
Definition at line 172 of file G4AccumulableManager.cc.
179 if ( ! fgMasterInstance ) {
182 <<
" " <<
"No master G4AccumulableManager instance exists."
184 <<
" " <<
"Accumulables will not be merged.";
196 auto it = fVector.begin();
197 for (
auto itMaster : fgMasterInstance->fVector ) {
201 itMaster->Merge(*(*(it++)));
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 116 of file G4AccumulableManager.cc.
121 if ( !
CheckName(
name,
"RegisterAccumulable") )
return false;
124 if ( !
name.length() ) {
125 name = GenerateName();
129 fMap[
name] = accumulable;
130 fVector.push_back(accumulable);
G4bool CheckName(const G4String &name, const G4String &objectType)
void G4AccumulableManager::Reset |
( |
| ) |
|
The documentation for this class was generated from the following files: