#include <trws_subproblemsolver.hxx>
Public Types | |
enum | MoveDirection { Direct, Reverse } |
typedef GM::ValueType | ValueType |
typedef GM::IndexType | IndexType |
typedef GM::LabelType | LabelType |
typedef std::vector< IndexType > | IndexList |
typedef std::vector< ValueType > | UnaryFactor |
typedef VariableToFactorMapping< GM > | VariableToFactorMap |
Public Member Functions | |
SequenceStorage (const GM &masterModel, const VariableToFactorMap &var2FactorMap, const IndexList &variableList, const IndexList &pwFactorList, const IndexList &numberOfTreesPerFactor) | |
~SequenceStorage () | |
IndexType | size () const |
void | AllocateUnaryFactors (std::vector< UnaryFactor > *pfactors) |
MoveDirection | pwDirection (IndexType pwInd) const |
IndexType | pwForwardFactor (IndexType var) const |
const GM & | masterModel () const |
const UnaryFactor & | unaryFactors (IndexType indx) const |
UnaryFactor::iterator | ufBegin (IndexType indx) |
>const access | |
UnaryFactor::iterator | ufEnd (IndexType indx) |
>non-const access TODO: make a pair of iterators from a single function call | |
IndexType | varIndex (IndexType var) const |
>non-const access | |
template<class ITERATOR > | |
ValueType | evaluate (ITERATOR labeling) |
Static Public Member Functions | |
static MoveDirection | ReverseDirection (MoveDirection dir) |
Definition at line 25 of file trws_subproblemsolver.hxx.
typedef std::vector<IndexType> trws_base::SequenceStorage< GM >::IndexList |
Definition at line 32 of file trws_subproblemsolver.hxx.
typedef GM::IndexType trws_base::SequenceStorage< GM >::IndexType |
Definition at line 30 of file trws_subproblemsolver.hxx.
typedef GM::LabelType trws_base::SequenceStorage< GM >::LabelType |
Definition at line 31 of file trws_subproblemsolver.hxx.
typedef std::vector<ValueType> trws_base::SequenceStorage< GM >::UnaryFactor |
Definition at line 33 of file trws_subproblemsolver.hxx.
typedef GM::ValueType trws_base::SequenceStorage< GM >::ValueType |
Definition at line 29 of file trws_subproblemsolver.hxx.
typedef VariableToFactorMapping<GM> trws_base::SequenceStorage< GM >::VariableToFactorMap |
Definition at line 35 of file trws_subproblemsolver.hxx.
enum trws_base::SequenceStorage::MoveDirection |
Definition at line 34 of file trws_subproblemsolver.hxx.
trws_base::SequenceStorage< GM >::SequenceStorage | ( | const GM & | masterModel, | |
const VariableToFactorMap & | var2FactorMap, | |||
const IndexList & | variableList, | |||
const IndexList & | pwFactorList, | |||
const IndexList & | numberOfTreesPerFactor | |||
) | [inline] |
trws_base::SequenceStorage< GM >::~SequenceStorage | ( | ) | [inline] |
Definition at line 39 of file trws_subproblemsolver.hxx.
void trws_base::SequenceStorage< GM >::AllocateUnaryFactors | ( | std::vector< UnaryFactor > * | pfactors | ) | [inline] |
Definition at line 568 of file trws_subproblemsolver.hxx.
SequenceStorage< GM >::ValueType trws_base::SequenceStorage< GM >::evaluate | ( | ITERATOR | labeling | ) | [inline] |
Definition at line 587 of file trws_subproblemsolver.hxx.
const GM& trws_base::SequenceStorage< GM >::masterModel | ( | ) | const [inline] |
Definition at line 57 of file trws_subproblemsolver.hxx.
MoveDirection trws_base::SequenceStorage< GM >::pwDirection | ( | IndexType | pwInd | ) | const [inline] |
Definition at line 55 of file trws_subproblemsolver.hxx.
IndexType trws_base::SequenceStorage< GM >::pwForwardFactor | ( | IndexType | var | ) | const [inline] |
Definition at line 56 of file trws_subproblemsolver.hxx.
SequenceStorage< GM >::MoveDirection trws_base::SequenceStorage< GM >::ReverseDirection | ( | MoveDirection | dir | ) | [inline, static] |
Definition at line 576 of file trws_subproblemsolver.hxx.
IndexType trws_base::SequenceStorage< GM >::size | ( | ) | const [inline] |
Definition at line 40 of file trws_subproblemsolver.hxx.
UnaryFactor::iterator trws_base::SequenceStorage< GM >::ufBegin | ( | IndexType | indx | ) | [inline] |
>const access
Definition at line 62 of file trws_subproblemsolver.hxx.
UnaryFactor::iterator trws_base::SequenceStorage< GM >::ufEnd | ( | IndexType | indx | ) | [inline] |
>non-const access TODO: make a pair of iterators from a single function call
Definition at line 63 of file trws_subproblemsolver.hxx.
const UnaryFactor& trws_base::SequenceStorage< GM >::unaryFactors | ( | IndexType | indx | ) | const [inline] |
Definition at line 61 of file trws_subproblemsolver.hxx.
IndexType trws_base::SequenceStorage< GM >::varIndex | ( | IndexType | var | ) | const [inline] |
>non-const access
Definition at line 64 of file trws_subproblemsolver.hxx.