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

#include <G4AccArray.hh>

Inheritance diagram for G4AccArray< T, N >:

Public Member Functions

 G4AccArray (const G4String &name="", const T &value=0, G4MergeMode mergeMode=G4MergeMode::kAddition)
template<typename... Args>
 G4AccArray (Args &&... args)
template<typename First, typename... Args>
 G4AccArray (const First &firstArg, Args &&... args)
 G4AccArray (const G4AccArray &rhs)=default
 G4AccArray (G4AccArray &&rhs)=default
 ~G4AccArray () override=default
T & operator[] (typename std::array< T, N >::size_type i)
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
std::array< T, N > & GetArray ()
const std::array< T, N > & GetArray () 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<class T, std::size_t N>
class G4AccArray< T, N >

Definition at line 42 of file G4AccArray.hh.

Constructor & Destructor Documentation

◆ G4AccArray() [1/5]

template<class T, std::size_t N>
G4AccArray< T, N >::G4AccArray ( const G4String & name = "",
const T & value = 0,
G4MergeMode mergeMode = G4MergeMode::kAddition )

Referenced by G4AccArray(), and G4AccArray().

◆ G4AccArray() [2/5]

template<class T, std::size_t N>
template<typename... Args>
G4AccArray< T, N >::G4AccArray ( Args &&... args)

◆ G4AccArray() [3/5]

template<class T, std::size_t N>
template<typename First, typename... Args>
G4AccArray< T, N >::G4AccArray ( const First & firstArg,
Args &&... args )

◆ G4AccArray() [4/5]

template<class T, std::size_t N>
G4AccArray< T, N >::G4AccArray ( const G4AccArray< T, N > & rhs)
default

◆ G4AccArray() [5/5]

template<class T, std::size_t N>
G4AccArray< T, N >::G4AccArray ( G4AccArray< T, N > && rhs)
default

◆ ~G4AccArray()

template<class T, std::size_t N>
G4AccArray< T, N >::~G4AccArray ( )
overridedefault

Member Function Documentation

◆ GetArray() [1/2]

template<class T, std::size_t N>
std::array< T, N > & G4AccArray< T, N >::GetArray ( )

◆ GetArray() [2/2]

template<class T, std::size_t N>
const std::array< T, N > & G4AccArray< T, N >::GetArray ( ) const

◆ GetType()

template<class T, std::size_t N>
G4AccType G4AccArray< T, N >::GetType ( ) const
inlinefinalvirtual

Reimplemented from G4VAccumulable.

Definition at line 81 of file G4AccArray.hh.

Referenced by GetType().

◆ Merge()

template<class T, std::size_t N>
void G4AccArray< T, N >::Merge ( const G4VAccumulable & other)
finalvirtual

Implements G4VAccumulable.

◆ operator[]()

template<class T, std::size_t N>
T & G4AccArray< T, N >::operator[] ( typename std::array< T, N >::size_type i)
inline

Definition at line 72 of file G4AccArray.hh.

72{ return fArray[i]; }

◆ Print()

template<class T, std::size_t N>
void G4AccArray< T, N >::Print ( G4PrintOptions options = G4PrintOptions()) const
finalvirtual

Reimplemented from G4VAccumulable.

Referenced by Print().

◆ Reset()

template<class T, std::size_t N>
void G4AccArray< T, N >::Reset ( )
finalvirtual

Implements G4VAccumulable.

◆ SetMergeMode()

template<class T, std::size_t N>
void G4AccArray< T, N >::SetMergeMode ( G4MergeMode value)
finalvirtual

Reimplemented from G4VAccumulable.

Referenced by SetMergeMode().


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