ALPSCore reference
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
alps::accumulators::impl::Accumulator< T, mean_tag, B > Struct Template Reference

#include <mean.hpp>

Inheritance diagram for alps::accumulators::impl::Accumulator< T, mean_tag, B >:
Inheritance graph
Collaboration diagram for alps::accumulators::impl::Accumulator< T, mean_tag, B >:
Collaboration graph

Public Types

typedef alps::accumulators::mean_type< B >::type mean_type
 
typedef Result< T, mean_tag, typename B::result_type > result_type
 

Public Member Functions

 Accumulator ()
 
 Accumulator (Accumulator const &arg)
 
template<typename ArgumentPack >
 Accumulator (ArgumentPack const &args, typename std::enable_if<!is_accumulator< ArgumentPack >::value, int >::type=0)
 
mean_type const mean () const
 
void operator() (T const &val)
 
template<typename S >
void print (S &os, bool terse=false) const
 
void save (hdf5::archive &ar) const
 
void load (hdf5::archive &ar)
 
void reset ()
 
template<typename A >
void merge (const A &rhs)
 Merge the sum (mean) of given accumulator of type A into this sum (mean) More...
 

Static Public Member Functions

static std::size_t rank ()
 
static bool can_load (hdf5::archive &ar)
 

Protected Member Functions

T const & sum () const
 

Detailed Description

template<typename T, typename B>
struct alps::accumulators::impl::Accumulator< T, mean_tag, B >

Definition at line 71 of file mean.hpp.

Member Typedef Documentation

template<typename T , typename B >
typedef alps::accumulators::mean_type<B>::type alps::accumulators::impl::Accumulator< T, mean_tag, B >::mean_type

Definition at line 74 of file mean.hpp.

template<typename T , typename B >
typedef Result<T, mean_tag, typename B::result_type> alps::accumulators::impl::Accumulator< T, mean_tag, B >::result_type

Definition at line 75 of file mean.hpp.

Constructor & Destructor Documentation

template<typename T , typename B >
alps::accumulators::impl::Accumulator< T, mean_tag, B >::Accumulator ( )
inline

Definition at line 77 of file mean.hpp.

template<typename T , typename B >
alps::accumulators::impl::Accumulator< T, mean_tag, B >::Accumulator ( Accumulator< T, mean_tag, B > const &  arg)
inline

Definition at line 78 of file mean.hpp.

template<typename T , typename B >
template<typename ArgumentPack >
alps::accumulators::impl::Accumulator< T, mean_tag, B >::Accumulator ( ArgumentPack const &  args,
typename std::enable_if<!is_accumulator< ArgumentPack >::value, int >::type  = 0 
)
inline

Definition at line 80 of file mean.hpp.

Member Function Documentation

template<typename T , typename B >
bool alps::accumulators::impl::Accumulator< T, mean_tag, B >::can_load ( hdf5::archive ar)
static

Definition at line 64 of file mean.cpp.

template<typename T , typename B >
void alps::accumulators::impl::Accumulator< T, mean_tag, B >::load ( hdf5::archive ar)

Definition at line 52 of file mean.cpp.

template<typename T , typename B >
auto alps::accumulators::impl::Accumulator< T, mean_tag, B >::mean ( ) const

Definition at line 26 of file mean.cpp.

template<typename T , typename B >
template<typename A >
void alps::accumulators::impl::Accumulator< T, mean_tag, B >::merge ( const A &  rhs)
inline

Merge the sum (mean) of given accumulator of type A into this sum (mean)

Parameters
rhsAccumulator to merge

Definition at line 107 of file mean.hpp.

template<typename T , typename B >
void alps::accumulators::impl::Accumulator< T, mean_tag, B >::operator() ( T const &  val)

Definition at line 36 of file mean.cpp.

template<typename T , typename B >
template<typename S >
void alps::accumulators::impl::Accumulator< T, mean_tag, B >::print ( S &  os,
bool  terse = false 
) const
inline

Definition at line 89 of file mean.hpp.

template<typename T , typename B >
static std::size_t alps::accumulators::impl::Accumulator< T, mean_tag, B >::rank ( )
inlinestatic

Definition at line 97 of file mean.hpp.

template<typename T , typename B >
void alps::accumulators::impl::Accumulator< T, mean_tag, B >::reset ( )
inline

Definition at line 100 of file mean.hpp.

template<typename T , typename B >
void alps::accumulators::impl::Accumulator< T, mean_tag, B >::save ( hdf5::archive ar) const

Definition at line 46 of file mean.cpp.

template<typename T , typename B >
T const & alps::accumulators::impl::Accumulator< T, mean_tag, B >::sum ( ) const
protected

Definition at line 100 of file mean.cpp.


The documentation for this struct was generated from the following files: