Geant4 11.2.2
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=0, G4MergeMode mergeMode=G4MergeMode::kAddition)
 
 G4Accumulable (const G4Accumulable &rhs)
 
 G4Accumulable (G4Accumulable &&rhs) noexcept
 
 ~G4Accumulable () override=default
 
G4Accumulable< T > & operator= (const G4Accumulable< T > &rhs)
 
G4Accumulable< T > & operator= (G4Accumulable< T > &&rhs) noexcept
 
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)
 
void Merge (const G4VAccumulable &other) final
 
void Reset () final
 
GetValue () const
 
G4MergeMode GetMergeMode () const
 
- Public Member Functions inherited from G4VAccumulable
 G4VAccumulable (G4String name="")
 
 G4VAccumulable (const G4VAccumulable &rhs)=default
 
 G4VAccumulable (G4VAccumulable &&rhs)=default
 
virtual ~G4VAccumulable ()=default
 
G4VAccumulableoperator= (const G4VAccumulable &rhs)=default
 
G4VAccumulableoperator= (G4VAccumulable &&rhs)=default
 
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,
T initValue,
G4MergeMode mergeMode = G4MergeMode::kAddition )

◆ G4Accumulable() [2/4]

template<typename T >
G4Accumulable< T >::G4Accumulable ( T initValue = 0,
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 ( G4Accumulable< T > && rhs)
noexcept

◆ ~G4Accumulable()

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

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 >
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/3]

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

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

◆ Reset()

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

Implements G4VAccumulable.


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