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

#include <accumulator.hpp>

Collaboration diagram for alps::accumulators::result_wrapper:
Collaboration graph

Public Member Functions

 result_wrapper ()
 
template<typename T >
 result_wrapper (T arg)
 
template<typename T >
 result_wrapper (base_wrapper< T > *arg)
 
 result_wrapper (result_wrapper const &rhs)
 
 result_wrapper (hdf5::archive &ar)
 
result_wrapperoperator= (std::shared_ptr< result_wrapper > const &rhs)
 
template<typename T >
base_wrapper< T > & get ()
 
template<typename A >
A & extract ()
 
template<typename A >
A const & extract () const
 
template<template< typename > class AFROM, template< typename > class ATO>
result_wrapper cast () const
 Cast to the result_wrapper containing another raw result type, or throw. More...
 
boost::uint64_t count () const
 
template<typename T >
mean_type< base_wrapper< T > >::type mean () const
 
template<typename T >
error_type< base_wrapper< T > >::type error () const
 
template<typename T >
autocorrelation_type< base_wrapper< T > >::type autocorrelation () const
 
void save (hdf5::archive &ar) const
 
void load (hdf5::archive &ar)
 
void print (std::ostream &os, bool terse=false) const
 
template<typename T >
result_wrapper transform (boost::function< T(T)> op) const
 
template<typename T >
result_wrapper transform (T(*op)(T)) const
 
result_wrapper operator+ () const
 
result_wrapper operator- () const
 
result_wrapperoperator+= (result_wrapper const &rhs)
 Do += with another result. More...
 
result_wrapperoperator+= (long double arg)
 Do += with a constant value. More...
 
result_wrapper operator+ (result_wrapper const &arg) const
 
result_wrapper operator+ (long double arg) const
 Visitor to do OP with RHS constant value. More...
 
result_wrapperoperator-= (result_wrapper const &rhs)
 Do -= with another result. More...
 
result_wrapperoperator-= (long double arg)
 Do -= with a constant value. More...
 
result_wrapper operator- (result_wrapper const &arg) const
 
result_wrapper operator- (long double arg) const
 Visitor to do OP with RHS constant value. More...
 
result_wrapperoperator*= (result_wrapper const &rhs)
 Do *= with another result. More...
 
result_wrapperoperator*= (long double arg)
 Do *= with a constant value. More...
 
result_wrapper operator* (result_wrapper const &arg) const
 
result_wrapper operator* (long double arg) const
 Visitor to do OP with RHS constant value. More...
 
result_wrapperoperator/= (result_wrapper const &rhs)
 Do /= with another result. More...
 
result_wrapperoperator/= (long double arg)
 Do /= with a constant value. More...
 
result_wrapper operator/ (result_wrapper const &arg) const
 
result_wrapper operator/ (long double arg) const
 Visitor to do OP with RHS constant value. More...
 
result_wrapper inverse () const
 
result_wrapper sin () const
 
result_wrapper cos () const
 
result_wrapper tan () const
 
result_wrapper sinh () const
 
result_wrapper cosh () const
 
result_wrapper tanh () const
 
result_wrapper asin () const
 
result_wrapper acos () const
 
result_wrapper atan () const
 
result_wrapper abs () const
 
result_wrapper sqrt () const
 
result_wrapper log () const
 
result_wrapper sq () const
 
result_wrapper cb () const
 
result_wrapper cbrt () const
 

Detailed Description

Definition at line 74 of file accumulator.hpp.

Constructor & Destructor Documentation

alps::accumulators::result_wrapper::result_wrapper ( )

Definition at line 17 of file result_wrapper.cpp.

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

Definition at line 81 of file accumulator.hpp.

template<typename T >
alps::accumulators::result_wrapper::result_wrapper ( base_wrapper< T > *  arg)
inline

Definition at line 88 of file accumulator.hpp.

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

Definition at line 28 of file result_wrapper.cpp.

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

Definition at line 34 of file result_wrapper.cpp.

Member Function Documentation

result_wrapper alps::accumulators::result_wrapper::abs ( ) const

Definition at line 250 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::acos ( ) const

Definition at line 248 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::asin ( ) const

Definition at line 247 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::atan ( ) const

Definition at line 249 of file result_wrapper.cpp.

template<typename T >
autocorrelation_type<base_wrapper<T> >::type alps::accumulators::result_wrapper::autocorrelation ( ) const
inline

Definition at line 205 of file accumulator.hpp.

template<template< typename > class AFROM, template< typename > class ATO>
result_wrapper alps::accumulators::result_wrapper::cast ( ) const
inline

Cast to the result_wrapper containing another raw result type, or throw.

Template Parameters
AFROMnamed accumulator template names (e.g., FullBinningAccumulator) to convert from
ATOnamed accumulator template names (e.g., NoBinningAccumulator) to convert to

Example:

// ....
const result_wrapper& r1=rset["no_binning"];
result_wrapper r2=rset["full_binning"].cast<FullBinningAccumulator,NoBinningAccumulator>();
result_wrapper rsum=r1+r2;

Definition at line 170 of file accumulator.hpp.

result_wrapper alps::accumulators::result_wrapper::cb ( ) const

Definition at line 254 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::cbrt ( ) const

Definition at line 255 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::cos ( ) const

Definition at line 242 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::cosh ( ) const

Definition at line 245 of file result_wrapper.cpp.

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

Definition at line 63 of file result_wrapper.cpp.

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

Definition at line 204 of file accumulator.hpp.

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

Definition at line 127 of file accumulator.hpp.

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

Definition at line 131 of file accumulator.hpp.

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

Definition at line 115 of file accumulator.hpp.

result_wrapper alps::accumulators::result_wrapper::inverse ( ) const

Definition at line 220 of file result_wrapper.cpp.

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

Definition at line 90 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::log ( ) const

Definition at line 252 of file result_wrapper.cpp.

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

Definition at line 203 of file accumulator.hpp.

result_wrapper alps::accumulators::result_wrapper::operator* ( result_wrapper const &  arg) const

Definition at line 209 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator* ( long double  arg) const

Visitor to do OP with RHS constant value.

Definition at line 209 of file result_wrapper.cpp.

result_wrapper & alps::accumulators::result_wrapper::operator*= ( result_wrapper const &  rhs)

Do *= with another result.

Definition at line 209 of file result_wrapper.cpp.

result_wrapper & alps::accumulators::result_wrapper::operator*= ( long double  arg)

Do *= with a constant value.

Definition at line 209 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator+ ( ) const

Definition at line 112 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator+ ( result_wrapper const &  arg) const

Definition at line 207 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator+ ( long double  arg) const

Visitor to do OP with RHS constant value.

Definition at line 207 of file result_wrapper.cpp.

result_wrapper & alps::accumulators::result_wrapper::operator+= ( result_wrapper const &  rhs)

Do += with another result.

Definition at line 207 of file result_wrapper.cpp.

result_wrapper & alps::accumulators::result_wrapper::operator+= ( long double  arg)

Do += with a constant value.

Definition at line 207 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator- ( ) const

Definition at line 125 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator- ( result_wrapper const &  arg) const

Definition at line 208 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator- ( long double  arg) const

Visitor to do OP with RHS constant value.

Definition at line 208 of file result_wrapper.cpp.

result_wrapper & alps::accumulators::result_wrapper::operator-= ( long double  arg)

Do -= with a constant value.

Definition at line 208 of file result_wrapper.cpp.

result_wrapper & alps::accumulators::result_wrapper::operator-= ( result_wrapper const &  rhs)

Do -= with another result.

Definition at line 208 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator/ ( long double  arg) const

Visitor to do OP with RHS constant value.

Definition at line 210 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::operator/ ( result_wrapper const &  arg) const

Definition at line 210 of file result_wrapper.cpp.

result_wrapper & alps::accumulators::result_wrapper::operator/= ( long double  arg)

Do /= with a constant value.

Definition at line 210 of file result_wrapper.cpp.

result_wrapper & alps::accumulators::result_wrapper::operator/= ( result_wrapper const &  rhs)

Do /= with another result.

Definition at line 210 of file result_wrapper.cpp.

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

Definition at line 49 of file result_wrapper.cpp.

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

Definition at line 104 of file result_wrapper.cpp.

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

Definition at line 77 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::sin ( ) const

Definition at line 241 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::sinh ( ) const

Definition at line 244 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::sq ( ) const

Definition at line 253 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::sqrt ( ) const

Definition at line 251 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::tan ( ) const

Definition at line 243 of file result_wrapper.cpp.

result_wrapper alps::accumulators::result_wrapper::tanh ( ) const

Definition at line 246 of file result_wrapper.cpp.

template<typename T >
result_wrapper alps::accumulators::result_wrapper::transform ( boost::function< T(T)>  op) const
inline

Definition at line 237 of file accumulator.hpp.

template<typename T >
result_wrapper alps::accumulators::result_wrapper::transform ( T(*)(T)  op) const
inline

Definition at line 242 of file accumulator.hpp.


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