OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | List of all members
opengm::visitors::TimingVisitor< INFERENCE > Class Template Reference

#include <visitors.hxx>

+ Collaboration diagram for opengm::visitors::TimingVisitor< INFERENCE >:

Public Types

typedef INFERENCE::ValueType ValueType
 

Public Member Functions

 TimingVisitor (const size_t visithNth=1, const size_t reserve=0, const bool verbose=true, const bool multiline=true, const double timeLimit=std::numeric_limits< double >::infinity(), const double gapLimit=0.0, const size_t memLogging=0)
 
void begin (INFERENCE &inf)
 
size_t operator() (INFERENCE &inf)
 
void end (INFERENCE &inf)
 
void addLog (const std::string &logName)
 
void log (const std::string &logName, const double logValue)
 
const std::map< std::string, std::vector< double > > & protocolMap () const
 
const std::vector< double > & getConstructionTime () const
 
const std::vector< double > & getTimes () const
 
const std::vector< double > & getValues () const
 
const std::vector< double > & getBounds () const
 
const std::vector< double > & getIterations () const
 

Detailed Description

template<class INFERENCE>
class opengm::visitors::TimingVisitor< INFERENCE >

Definition at line 118 of file visitors/visitors.hxx.

Member Typedef Documentation

template<class INFERENCE >
typedef INFERENCE::ValueType opengm::visitors::TimingVisitor< INFERENCE >::ValueType

Definition at line 120 of file visitors/visitors.hxx.

Constructor & Destructor Documentation

template<class INFERENCE >
opengm::visitors::TimingVisitor< INFERENCE >::TimingVisitor ( const size_t  visithNth = 1,
const size_t  reserve = 0,
const bool  verbose = true,
const bool  multiline = true,
const double  timeLimit = std::numeric_limits<double>::infinity(),
const double  gapLimit = 0.0,
const size_t  memLogging = 0 
)
inline

Definition at line 122 of file visitors/visitors.hxx.

+ Here is the call graph for this function:

Member Function Documentation

template<class INFERENCE >
void opengm::visitors::TimingVisitor< INFERENCE >::addLog ( const std::string &  logName)
inline

Definition at line 282 of file visitors/visitors.hxx.

template<class INFERENCE >
void opengm::visitors::TimingVisitor< INFERENCE >::begin ( INFERENCE &  inf)
inline

Definition at line 167 of file visitors/visitors.hxx.

+ Here is the call graph for this function:

template<class INFERENCE >
void opengm::visitors::TimingVisitor< INFERENCE >::end ( INFERENCE &  inf)
inline

Definition at line 258 of file visitors/visitors.hxx.

+ Here is the call graph for this function:

template<class INFERENCE >
const std::vector<double>& opengm::visitors::TimingVisitor< INFERENCE >::getBounds ( ) const
inline

Definition at line 313 of file visitors/visitors.hxx.

template<class INFERENCE >
const std::vector<double>& opengm::visitors::TimingVisitor< INFERENCE >::getConstructionTime ( ) const
inline

Definition at line 304 of file visitors/visitors.hxx.

template<class INFERENCE >
const std::vector<double>& opengm::visitors::TimingVisitor< INFERENCE >::getIterations ( ) const
inline

Definition at line 316 of file visitors/visitors.hxx.

template<class INFERENCE >
const std::vector<double>& opengm::visitors::TimingVisitor< INFERENCE >::getTimes ( ) const
inline

Definition at line 307 of file visitors/visitors.hxx.

template<class INFERENCE >
const std::vector<double>& opengm::visitors::TimingVisitor< INFERENCE >::getValues ( ) const
inline

Definition at line 310 of file visitors/visitors.hxx.

template<class INFERENCE >
void opengm::visitors::TimingVisitor< INFERENCE >::log ( const std::string &  logName,
const double  logValue 
)
inline

Definition at line 286 of file visitors/visitors.hxx.

+ Here is the call graph for this function:

template<class INFERENCE >
size_t opengm::visitors::TimingVisitor< INFERENCE >::operator() ( INFERENCE &  inf)
inline

Definition at line 197 of file visitors/visitors.hxx.

+ Here is the call graph for this function:

template<class INFERENCE >
const std::map< std::string, std::vector<double > >& opengm::visitors::TimingVisitor< INFERENCE >::protocolMap ( ) const
inline

Definition at line 300 of file visitors/visitors.hxx.