ALPSCore reference
Namespaces | Macros | Functions
result_wrapper.cpp File Reference
#include <alps/accumulators/accumulator.hpp>
#include <sstream>
Include dependency graph for result_wrapper.cpp:

Go to the source code of this file.

Namespaces

 alps
 
 alps::accumulators
 

Macros

#define ALPS_ACCUMULATOR_OPERATOR_PROXY(OPNAME, AUGOPNAME, AUGOP, FUN)
 
#define ALPS_ACCUMULATOR_FUNCTION_PROXY(FUN)
 
#define EXTERNAL_FUNCTION(FUN)
 

Functions

result_wrapper alps::accumulators::sin (result_wrapper const &arg)
 
result_wrapper alps::accumulators::cos (result_wrapper const &arg)
 
result_wrapper alps::accumulators::tan (result_wrapper const &arg)
 
result_wrapper alps::accumulators::sinh (result_wrapper const &arg)
 
result_wrapper alps::accumulators::cosh (result_wrapper const &arg)
 
result_wrapper alps::accumulators::tanh (result_wrapper const &arg)
 
result_wrapper alps::accumulators::asin (result_wrapper const &arg)
 
result_wrapper alps::accumulators::acos (result_wrapper const &arg)
 
result_wrapper alps::accumulators::atan (result_wrapper const &arg)
 
result_wrapper alps::accumulators::abs (result_wrapper const &arg)
 
result_wrapper alps::accumulators::sqrt (result_wrapper const &arg)
 
result_wrapper alps::accumulators::log (result_wrapper const &arg)
 
result_wrapper alps::accumulators::sq (result_wrapper const &arg)
 
result_wrapper alps::accumulators::cb (result_wrapper const &arg)
 
result_wrapper alps::accumulators::cbrt (result_wrapper const &arg)
 
detail::printable_type alps::accumulators::short_print (const result_wrapper &arg)
 Return an "ostream-able" object to print result in a terse format. More...
 
detail::printable_type alps::accumulators::full_print (const result_wrapper &arg)
 Return an "ostream-able" object to print result in a verbose format. More...
 
std::ostream & alps::accumulators::operator<< (std::ostream &os, const result_wrapper &arg)
 

Macro Definition Documentation

#define ALPS_ACCUMULATOR_FUNCTION_PROXY (   FUN)
Value:
struct FUN ## _visitor: public boost::static_visitor<> { \
template<typename T> void operator()(T & arg) const { \
arg-> FUN (); \
} \
}; \
result_wrapper result_wrapper:: FUN () const { \
result_wrapper clone(*this); \
boost::apply_visitor( FUN ## _visitor(), clone.m_variant); \
return clone; \
}
F::result_type apply_visitor(F &visitor, dictionary::const_iterator it)
Const-access visitor to a value by an iterator.
Definition: dictionary.hpp:110

Definition at line 230 of file result_wrapper.cpp.

#define ALPS_ACCUMULATOR_OPERATOR_PROXY (   OPNAME,
  AUGOPNAME,
  AUGOP,
  FUN 
)

Definition at line 144 of file result_wrapper.cpp.

#define EXTERNAL_FUNCTION (   FUN)
Value:
result_wrapper FUN (result_wrapper const & arg) { \
return arg. FUN (); \
}

Definition at line 262 of file result_wrapper.cpp.