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

#include <count.hpp>

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

Public Types

typedef count_type< T >::type count_type
 
typedef Result< T, count_tag, typename B::result_type > result_type
 

Public Member Functions

 Accumulator ()
 
 Accumulator (Accumulator const &arg)
 
template<typename ArgumentPack >
 Accumulator (ArgumentPack const &, typename std::enable_if<!is_accumulator< ArgumentPack >::value, int >::type=0)
 
count_type count () const
 
void operator() (T const &)
 
template<typename W >
void operator() (T const &, W)
 
template<typename S >
void print (S &os, bool=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 counter of the given accumulator of type A into this counter. More...
 

Static Public Member Functions

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

Detailed Description

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

Definition at line 157 of file count.hpp.

Member Typedef Documentation

template<typename T , typename B >
typedef count_type<T>::type alps::accumulators::impl::Accumulator< T, count_tag, B >::count_type

Definition at line 160 of file count.hpp.

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

Definition at line 161 of file count.hpp.

Constructor & Destructor Documentation

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

Definition at line 163 of file count.hpp.

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

Definition at line 165 of file count.hpp.

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

Definition at line 167 of file count.hpp.

Member Function Documentation

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

Definition at line 86 of file count.cpp.

template<typename T , typename B >
count_type alps::accumulators::impl::Accumulator< T, count_tag, B >::count ( ) const
inline

Definition at line 171 of file count.hpp.

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

Definition at line 75 of file count.cpp.

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

Merge the counter of the given accumulator of type A into this counter.

Parameters
rhsAccumulator to merge

Definition at line 198 of file count.hpp.

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

Definition at line 175 of file count.hpp.

template<typename T , typename B >
template<typename W >
void alps::accumulators::impl::Accumulator< T, count_tag, B >::operator() ( T const &  ,
 
)
inline

Definition at line 178 of file count.hpp.

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

Definition at line 182 of file count.hpp.

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

Definition at line 189 of file count.hpp.

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

Definition at line 192 of file count.hpp.

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

Definition at line 67 of file count.cpp.


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