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

#include <G4AccValue.hh>

Inheritance diagram for G4AccValue< T >:

Public Member Functions

 G4AccValue (const G4String &name, T initValue, G4MergeMode mergeMode=G4MergeMode::kAddition)
 G4AccValue (T initValue=0, G4MergeMode mergeMode=G4MergeMode::kAddition)
 G4AccValue (const G4AccValue &rhs)
 G4AccValue (G4AccValue &&rhs) noexcept
 ~G4AccValue () override=default
G4AccValue< T > & operator= (const G4AccValue< T > &rhs)
G4AccValue< T > & operator= (G4AccValue< T > &&rhs) noexcept
G4AccValue< T > & operator+= (const G4AccValue< T > &rhs)
G4AccValue< T > & operator*= (const G4AccValue< T > &rhs)
G4AccValue< T > operator++ (int)
G4AccValue< T > & operator++ ()
G4AccValue< T > & operator= (const T &rhs)
G4AccValue< T > & operator+= (const T &rhs)
G4AccValue< T > & operator*= (const T &rhs)
void Merge (const G4VAccumulable &other) final
void Reset () final
void Print (G4PrintOptions options=G4PrintOptions()) const final
void SetMergeMode (G4MergeMode value) final
G4AccType GetType () const final
GetValue () const
Public Member Functions inherited from G4VAccumulable
 G4VAccumulable (G4MergeMode mergeMode=G4MergeMode::kAddition)
 G4VAccumulable (const G4String &name, G4MergeMode mergeMode=G4MergeMode::kAddition)
 G4VAccumulable (const G4VAccumulable &rhs)=default
 G4VAccumulable (G4VAccumulable &&rhs)=default
virtual ~G4VAccumulable ()=default
G4VAccumulableoperator= (const G4VAccumulable &rhs)=default
G4VAccumulableoperator= (G4VAccumulable &&rhs)=default
void SetName (const G4String &name)
void SetId (G4int id)
G4String GetName () const
G4MergeMode GetMergeMode () const
G4int GetId () const

Additional Inherited Members

Protected Member Functions inherited from G4VAccumulable
void PrintBase (G4PrintOptions options) const
Protected Attributes inherited from G4VAccumulable
G4String fName
G4MergeMode fMergeMode = G4MergeMode::kAddition
G4int fId = G4Accumulables::kInvalidId

Detailed Description

template<typename T>
class G4AccValue< T >

Definition at line 40 of file G4AccValue.hh.

Constructor & Destructor Documentation

◆ G4AccValue() [1/4]

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

◆ G4AccValue() [2/4]

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

◆ G4AccValue() [3/4]

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

◆ G4AccValue() [4/4]

template<typename T>
G4AccValue< T >::G4AccValue ( G4AccValue< T > && rhs)
noexcept

◆ ~G4AccValue()

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

Member Function Documentation

◆ GetType()

template<typename T>
G4AccType G4AccValue< T >::GetType ( ) const
inlinefinalvirtual

Reimplemented from G4VAccumulable.

Definition at line 72 of file G4AccValue.hh.

Referenced by GetType().

◆ GetValue()

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

◆ Merge()

template<typename T>
void G4AccValue< T >::Merge ( const G4VAccumulable & other)
finalvirtual

Implements G4VAccumulable.

◆ operator*=() [1/2]

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

◆ operator*=() [2/2]

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

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator+=() [1/2]

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

◆ operator+=() [2/2]

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

◆ operator=() [1/3]

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

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

◆ Print()

template<typename T>
void G4AccValue< T >::Print ( G4PrintOptions options = G4PrintOptions()) const
finalvirtual

Reimplemented from G4VAccumulable.

Referenced by Print(), and Reset().

◆ Reset()

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

Implements G4VAccumulable.

◆ SetMergeMode()

template<typename T>
void G4AccValue< T >::SetMergeMode ( G4MergeMode value)
finalvirtual

Reimplemented from G4VAccumulable.

Referenced by SetMergeMode().


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