31#ifndef G4AccumulableManager_h
32#define G4AccumulableManager_h 1
91 std::vector<G4VAccumulable*>::iterator
Begin();
92 std::vector<G4VAccumulable*>::iterator
End();
93 std::vector<G4VAccumulable*>::const_iterator
BeginConst()
const;
94 std::vector<G4VAccumulable*>::const_iterator
EndConst()
const;
110 template <
typename T>
114 const G4String kBaseName =
"accumulable";
121 std::vector<G4VAccumulable*> fVector;
122 std::map<G4String, G4VAccumulable*> fMap;
123 std::vector<G4VAccumulable*> fAccumulablesToDelete;
126#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