1 #ifndef OPENGM_CGC_VISITORS
2 #define OPENGM_CGC_VISITORS
15 const GraphicalModelType & gm,
16 std::list< std::vector<typename GraphicalModelType::LabelType> >& l,
17 const size_t visitNth=10,
const size_t skipN=10
29 void begin(InfType & inf ,
const ValueType val,
const ValueType bound){
32 void end(InfType & inf ,
const ValueType val,
const ValueType bound){
36 void operator()(InfType & inf ,
const ValueType val,
const ValueType bound){
37 const bool inRecursive2Coloring = inf.inRecursive2Coloring();
38 const bool inGreedy2Coloring = inf.inRecursive2Coloring();
39 if(visitNr_>=skipN_ && ( (visitNr_-skipN_)==0 || (visitNr_-skipN_) % visitNth_==0) ){
42 l_.push_back(argBuffer_);
45 throw std::runtime_error(
"no!");
52 GraphicalModelType gm_;
57 std::vector<LabelType> argBuffer_;
58 std::list< std::vector<LabelType> >& l_;
62 #endif // OPENGM_CGC_VISITORS
InfType::AccumulationType AccumulationType
void operator()(InfType &inf, const ValueType val, const ValueType bound)
CgcStateVisitor(const GraphicalModelType &gm, std::list< std::vector< typename GraphicalModelType::LabelType > > &l, const size_t visitNth=10, const size_t skipN=10)
void end(InfType &inf, const ValueType val, const ValueType bound)
void begin(InfType &inf, const ValueType val, const ValueType bound)
#define OPENGM_CHECK_OP(A, OP, B, TXT)
InfType::GraphicalModelType GraphicalModelType