CAPD RedHom Library
capd::homAux::Measure Struct Reference

#include <capd/homAux/Measure.h>

Public Types

typedef std::function< void(const Stat &stat, std::istream &)> Callback
 
typedef std::function< size_t()> Operations
 

Public Member Functions

 Measure (std::string msg, Callback callback, Operations operations=Operations())
 
template<typename T >
 Measure (std::string msg, Callback callback, T value, typename boost::enable_if< boost::is_arithmetic< T >>::type *p=0)
 
 ~Measure ()
 

Member Typedef Documentation

typedef std::function<void(const Stat& stat, std::istream&)> capd::homAux::Measure::Callback
typedef std::function<size_t()> capd::homAux::Measure::Operations

Constructor & Destructor Documentation

capd::homAux::Measure::Measure ( std::string  msg,
Callback  callback,
Operations  operations = Operations() 
)
inline
template<typename T >
capd::homAux::Measure::Measure ( std::string  msg,
Callback  callback,
value,
typename boost::enable_if< boost::is_arithmetic< T >>::type *  p = 0 
)
inline
capd::homAux::Measure::~Measure ( )