41template <
class T, std::
size_t N>
54 template <
typename... Args>
60 template <
typename First,
typename... Args>
72 inline T&
operator[](
typename std::array<T,N>::size_type i) {
return fArray[i]; }
87 std::array<T,N> fArray {};
94#include "G4AccArray.icc"
std::function< T(const T &, const T &)> G4MergeFunction
G4AccType GetType() const final
void Merge(const G4VAccumulable &other) final
~G4AccArray() override=default
G4AccArray(Args &&... args)
G4AccArray(G4AccArray &&rhs)=default
T & operator[](typename std::array< T, N >::size_type i)
void SetMergeMode(G4MergeMode value) final
std::array< T, N > & GetArray()
G4AccArray(const First &firstArg, Args &&... args)
void Print(G4PrintOptions options=G4PrintOptions()) const final
G4AccArray(const G4String &name="", const T &value=0, G4MergeMode mergeMode=G4MergeMode::kAddition)
const std::array< T, N > & GetArray() const
G4AccArray(const G4AccArray &rhs)=default
G4VAccumulable(G4MergeMode mergeMode=G4MergeMode::kAddition)