31#ifndef G4AccumulableManager_h
32#define G4AccumulableManager_h 1
96 std::vector<G4VAccumulable*>::iterator
Begin();
97 std::vector<G4VAccumulable*>::iterator
End();
98 std::vector<G4VAccumulable*>::const_iterator
BeginConst()
const;
99 std::vector<G4VAccumulable*>::const_iterator
EndConst()
const;
115 template <
typename T>
119 const G4String kBaseName =
"accumulable";
125 std::vector<G4VAccumulable*> fVector;
126 std::map<G4String, G4VAccumulable*> fMap;
127 std::vector<G4VAccumulable*> fAccumulablesToDelete;
130#include "G4AccumulableManager.icc"
G4Accumulable< T > * GetAccumulable(const G4String &name, G4bool warn=true) const
G4Accumulable< T > * CreateAccumulable(const G4String &name, T value, G4MergeMode mergeMode=G4MergeMode::kAddition)
std::vector< G4VAccumulable * >::iterator Begin()
G4int GetNofAccumulables() const
virtual ~G4AccumulableManager()
static G4AccumulableManager * Instance()
std::vector< G4VAccumulable * >::const_iterator EndConst() const
G4bool RegisterAccumulable(G4Accumulable< T > &accumulable)
std::vector< G4VAccumulable * >::iterator End()
G4Accumulable< T > * GetAccumulable(G4int id, G4bool warn=true) const
G4Accumulable< T > * CreateAccumulable(T value, G4MergeMode mergeMode=G4MergeMode::kAddition)
std::vector< G4VAccumulable * >::const_iterator BeginConst() const