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

#include <error.hpp>

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

Public Types

typedef alps::accumulators::error_type< B >::type error_type
 
typedef alps::numeric::scalar< error_type >::type error_scalar_type
 
typedef Result< T, error_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)
 
error_type const error () 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 mean & error of given accumulator of type A into this accumulator. More...
 

Static Public Member Functions

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

Detailed Description

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

Definition at line 71 of file error.hpp.

Member Typedef Documentation

template<typename T , typename B >
typedef alps::numeric::scalar<error_type>::type alps::accumulators::impl::Accumulator< T, error_tag, B >::error_scalar_type

Definition at line 75 of file error.hpp.

template<typename T , typename B >
typedef alps::accumulators::error_type<B>::type alps::accumulators::impl::Accumulator< T, error_tag, B >::error_type

Definition at line 74 of file error.hpp.

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

Definition at line 76 of file error.hpp.

Constructor & Destructor Documentation

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

Definition at line 78 of file error.hpp.

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

Definition at line 80 of file error.hpp.

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

Definition at line 82 of file error.hpp.

Member Function Documentation

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

Definition at line 71 of file error.cpp.

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

Definition at line 26 of file error.cpp.

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

Definition at line 58 of file error.cpp.

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

Merge the mean & error of given accumulator of type A into this accumulator.

Parameters
rhsAccumulator to merge

Definition at line 109 of file error.hpp.

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

Definition at line 41 of file error.cpp.

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

Definition at line 91 of file error.hpp.

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

Definition at line 99 of file error.hpp.

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

Definition at line 102 of file error.hpp.

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

Definition at line 52 of file error.cpp.


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