Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Accumulable< T > Class Template Reference

#include <G4Accumulable.hh>

+ Inheritance diagram for G4Accumulable< T >:

Public Member Functions

 G4Accumulable (const G4String &name, T initValue, G4MergeMode mergeMode=G4MergeMode::kAddition)
 
 G4Accumulable (T initValue, G4MergeMode mergeMode=G4MergeMode::kAddition)
 
 G4Accumulable (const G4Accumulable &rhs)
 
 G4Accumulable ()=delete
 
virtual ~G4Accumulable ()
 
G4Accumulable< T > & operator= (const G4Accumulable< T > &rhs)
 
G4Accumulable< T > & operator+= (const G4Accumulable< T > &rhs)
 
G4Accumulable< T > & operator*= (const G4Accumulable< T > &rhs)
 
G4Accumulable< T > operator++ (int)
 
G4Accumulable< T > & operator++ ()
 
G4Accumulable< T > & operator= (const T &rhs)
 
G4Accumulable< T > & operator+= (const T &rhs)
 
G4Accumulable< T > & operator*= (const T &rhs)
 
virtual void Merge (const G4VAccumulable &other) final
 
virtual void Reset () final
 
GetValue () const
 
G4MergeMode GetMergeMode () const
 
- Public Member Functions inherited from G4VAccumulable
 G4VAccumulable (const G4String &name="")
 
 G4VAccumulable (const G4VAccumulable &rhs)
 
virtual ~G4VAccumulable ()
 
G4VAccumulableoperator= (const G4VAccumulable &rhs)
 
virtual void Merge (const G4VAccumulable &other)=0
 
virtual void Reset ()=0
 
G4String GetName () const
 

Additional Inherited Members

- Protected Attributes inherited from G4VAccumulable
G4String fName
 

Detailed Description

template<typename T>
class G4Accumulable< T >

Definition at line 40 of file G4Accumulable.hh.

Constructor & Destructor Documentation

◆ G4Accumulable() [1/4]

template<typename T >
G4Accumulable< T >::G4Accumulable ( const G4String name,
initValue,
G4MergeMode  mergeMode = G4MergeMode::kAddition 
)

◆ G4Accumulable() [2/4]

template<typename T >
G4Accumulable< T >::G4Accumulable ( initValue,
G4MergeMode  mergeMode = G4MergeMode::kAddition 
)

◆ G4Accumulable() [3/4]

template<typename T >
G4Accumulable< T >::G4Accumulable ( const G4Accumulable< T > &  rhs)

◆ G4Accumulable() [4/4]

template<typename T >
G4Accumulable< T >::G4Accumulable ( )
delete

◆ ~G4Accumulable()

template<typename T >
virtual G4Accumulable< T >::~G4Accumulable ( )
virtual

Member Function Documentation

◆ GetMergeMode()

template<typename T >
G4MergeMode G4Accumulable< T >::GetMergeMode ( ) const

◆ GetValue()

template<typename T >
T G4Accumulable< T >::GetValue ( ) const

◆ Merge()

template<typename T >
virtual void G4Accumulable< T >::Merge ( const G4VAccumulable other)
finalvirtual

Implements G4VAccumulable.

◆ operator*=() [1/2]

template<typename T >
G4Accumulable< T > & G4Accumulable< T >::operator*= ( const G4Accumulable< T > &  rhs)

◆ operator*=() [2/2]

template<typename T >
G4Accumulable< T > & G4Accumulable< T >::operator*= ( const T &  rhs)

◆ operator++() [1/2]

template<typename T >
G4Accumulable< T > & G4Accumulable< T >::operator++ ( )

◆ operator++() [2/2]

template<typename T >
G4Accumulable< T > G4Accumulable< T >::operator++ ( int  )

◆ operator+=() [1/2]

template<typename T >
G4Accumulable< T > & G4Accumulable< T >::operator+= ( const G4Accumulable< T > &  rhs)

◆ operator+=() [2/2]

template<typename T >
G4Accumulable< T > & G4Accumulable< T >::operator+= ( const T &  rhs)

◆ operator=() [1/2]

template<typename T >
G4Accumulable< T > & G4Accumulable< T >::operator= ( const G4Accumulable< T > &  rhs)

◆ operator=() [2/2]

template<typename T >
G4Accumulable< T > & G4Accumulable< T >::operator= ( const T &  rhs)

◆ Reset()

template<typename T >
virtual void G4Accumulable< T >::Reset ( )
finalvirtual

Implements G4VAccumulable.


The documentation for this class was generated from the following file: