ALPSCore reference
Classes | Public Member Functions | List of all members
alps::accumulators::accumulator_wrapper Class Reference

#include <accumulator.hpp>

Collaboration diagram for alps::accumulators::accumulator_wrapper:
Collaboration graph

Public Member Functions

 accumulator_wrapper ()
 default constructor More...
 
template<typename T >
 accumulator_wrapper (T arg)
 constructor from raw accumulator More...
 
 accumulator_wrapper (accumulator_wrapper const &rhs)
 
 accumulator_wrapper (hdf5::archive &ar)
 
template<typename T >
void operator() (T const &value)
 
template<typename T >
accumulator_wrapperoperator<< (T const &value)
 
void merge (const accumulator_wrapper &rhs_acc)
 Merge another accumulator into this one. More...
 
accumulator_wrapper clone () const
 Returns a copy with the wrapped accumulator cloned. More...
 
accumulator_wrappernew_clone () const
 Returns a pointer to a new-allocated copy with the wrapped accumulator cloned. More...
 
accumulator_wrapperoperator= (std::shared_ptr< accumulator_wrapper > const &rhs)
 
boost::uint64_t count () const
 
template<typename T >
base_wrapper< T > & get ()
 
template<typename A >
A & extract ()
 
template<typename T >
mean_type< base_wrapper< T > >::type mean () const
 
template<typename T >
error_type< base_wrapper< T > >::type error () const
 
void save (hdf5::archive &ar) const
 
void load (hdf5::archive &ar)
 
void reset () const
 
std::shared_ptr< result_wrapperresult () const
 
void print (std::ostream &os, bool terse=false) const
 

Detailed Description

Definition at line 392 of file accumulator.hpp.

Constructor & Destructor Documentation

alps::accumulators::accumulator_wrapper::accumulator_wrapper ( )

default constructor

Definition at line 17 of file accumulator_wrapper.cpp.

template<typename T >
alps::accumulators::accumulator_wrapper::accumulator_wrapper ( arg)
inline

constructor from raw accumulator

Definition at line 411 of file accumulator.hpp.

alps::accumulators::accumulator_wrapper::accumulator_wrapper ( accumulator_wrapper const &  rhs)

copy constructor

Note
The wrapped accumulator object is NOT copied!

Definition at line 21 of file accumulator_wrapper.cpp.

alps::accumulators::accumulator_wrapper::accumulator_wrapper ( hdf5::archive ar)

Definition at line 25 of file accumulator_wrapper.cpp.

Member Function Documentation

accumulator_wrapper alps::accumulators::accumulator_wrapper::clone ( ) const

Returns a copy with the wrapped accumulator cloned.

Definition at line 71 of file accumulator_wrapper.cpp.

boost::uint64_t alps::accumulators::accumulator_wrapper::count ( ) const

Definition at line 112 of file accumulator_wrapper.cpp.

template<typename T >
error_type<base_wrapper<T> >::type alps::accumulators::accumulator_wrapper::error ( ) const
inline

Definition at line 530 of file accumulator.hpp.

template<typename A >
A& alps::accumulators::accumulator_wrapper::extract ( )
inline

Definition at line 498 of file accumulator.hpp.

template<typename T >
base_wrapper<T>& alps::accumulators::accumulator_wrapper::get ( )
inline

Definition at line 485 of file accumulator.hpp.

void alps::accumulators::accumulator_wrapper::load ( hdf5::archive ar)

Definition at line 145 of file accumulator_wrapper.cpp.

template<typename T >
mean_type<base_wrapper<T> >::type alps::accumulators::accumulator_wrapper::mean ( ) const
inline

Definition at line 529 of file accumulator.hpp.

void alps::accumulators::accumulator_wrapper::merge ( const accumulator_wrapper rhs_acc)

Merge another accumulator into this one.

Parameters
rhs_accaccumulator to merge.

Definition at line 52 of file accumulator_wrapper.cpp.

accumulator_wrapper * alps::accumulators::accumulator_wrapper::new_clone ( ) const

Returns a pointer to a new-allocated copy with the wrapped accumulator cloned.

Definition at line 78 of file accumulator_wrapper.cpp.

template<typename T >
void alps::accumulators::accumulator_wrapper::operator() ( T const &  value)
inline

Definition at line 445 of file accumulator.hpp.

template<typename T >
accumulator_wrapper& alps::accumulators::accumulator_wrapper::operator<< ( T const &  value)
inline

Definition at line 449 of file accumulator.hpp.

accumulator_wrapper & alps::accumulators::accumulator_wrapper::operator= ( std::shared_ptr< accumulator_wrapper > const &  rhs)

Definition at line 97 of file accumulator_wrapper.cpp.

void alps::accumulators::accumulator_wrapper::print ( std::ostream &  os,
bool  terse = false 
) const

Definition at line 193 of file accumulator_wrapper.cpp.

void alps::accumulators::accumulator_wrapper::reset ( ) const

Definition at line 159 of file accumulator_wrapper.cpp.

std::shared_ptr< result_wrapper > alps::accumulators::accumulator_wrapper::result ( ) const

Definition at line 174 of file accumulator_wrapper.cpp.

void alps::accumulators::accumulator_wrapper::save ( hdf5::archive ar) const

Definition at line 129 of file accumulator_wrapper.cpp.


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