OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
opengm::trws_base::SequenceStorage< GM > Class Template Reference

#include <trws_subproblemsolver.hxx>

+ Collaboration diagram for opengm::trws_base::SequenceStorage< GM >:

Public Types

enum  MoveDirection { Direct, Reverse }
 
typedef GM::ValueType ValueType
 
typedef GM::IndexType IndexType
 
typedef GM::LabelType LabelType
 
typedef std::vector< IndexTypeIndexList
 
typedef std::vector< ValueTypeUnaryFactor
 
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 UnaryFactorunaryFactors (IndexType indx) const
 
UnaryFactor::iterator ufBegin (IndexType indx)
 >const access More...
 
UnaryFactor::iterator ufEnd (IndexType indx)
 >non-const access TODO: make a pair of iterators from a single function call More...
 
IndexType varIndex (IndexType var) const
 >non-const access More...
 
template<class ITERATOR >
ValueType evaluate (ITERATOR labeling)
 

Static Public Member Functions

static MoveDirection ReverseDirection (MoveDirection dir)
 

Detailed Description

template<class GM>
class opengm::trws_base::SequenceStorage< GM >

Definition at line 25 of file trws_subproblemsolver.hxx.

Member Typedef Documentation

template<class GM>
typedef std::vector<IndexType> opengm::trws_base::SequenceStorage< GM >::IndexList

Definition at line 32 of file trws_subproblemsolver.hxx.

template<class GM>
typedef GM::IndexType opengm::trws_base::SequenceStorage< GM >::IndexType

Definition at line 30 of file trws_subproblemsolver.hxx.

template<class GM>
typedef GM::LabelType opengm::trws_base::SequenceStorage< GM >::LabelType

Definition at line 31 of file trws_subproblemsolver.hxx.

template<class GM>
typedef std::vector<ValueType> opengm::trws_base::SequenceStorage< GM >::UnaryFactor

Definition at line 33 of file trws_subproblemsolver.hxx.

template<class GM>
typedef GM::ValueType opengm::trws_base::SequenceStorage< GM >::ValueType

Definition at line 29 of file trws_subproblemsolver.hxx.

Definition at line 35 of file trws_subproblemsolver.hxx.

Member Enumeration Documentation

Enumerator
Direct 
Reverse 

Definition at line 34 of file trws_subproblemsolver.hxx.

Constructor & Destructor Documentation

template<class GM>
opengm::trws_base::SequenceStorage< GM >::SequenceStorage ( const GM &  masterModel,
const VariableToFactorMap var2FactorMap,
const IndexList variableList,
const IndexList pwFactorList,
const IndexList numberOfTreesPerFactor 
)

Definition at line 526 of file trws_subproblemsolver.hxx.

+ Here is the call graph for this function:

template<class GM>
opengm::trws_base::SequenceStorage< GM >::~SequenceStorage ( )
inline

Definition at line 39 of file trws_subproblemsolver.hxx.

Member Function Documentation

template<class GM >
void opengm::trws_base::SequenceStorage< GM >::AllocateUnaryFactors ( std::vector< UnaryFactor > *  pfactors)

Definition at line 585 of file trws_subproblemsolver.hxx.

+ Here is the caller graph for this function:

template<class GM >
template<class ITERATOR >
SequenceStorage< GM >::ValueType opengm::trws_base::SequenceStorage< GM >::evaluate ( ITERATOR  labeling)

Definition at line 604 of file trws_subproblemsolver.hxx.

+ Here is the caller graph for this function:

template<class GM>
const GM& opengm::trws_base::SequenceStorage< GM >::masterModel ( ) const
inline

Definition at line 57 of file trws_subproblemsolver.hxx.

template<class GM>
MoveDirection opengm::trws_base::SequenceStorage< GM >::pwDirection ( IndexType  pwInd) const
inline

Definition at line 55 of file trws_subproblemsolver.hxx.

template<class GM>
IndexType opengm::trws_base::SequenceStorage< GM >::pwForwardFactor ( IndexType  var) const
inline

Definition at line 56 of file trws_subproblemsolver.hxx.

template<class GM >
SequenceStorage< GM >::MoveDirection opengm::trws_base::SequenceStorage< GM >::ReverseDirection ( MoveDirection  dir)
static

Definition at line 593 of file trws_subproblemsolver.hxx.

+ Here is the caller graph for this function:

template<class GM>
IndexType opengm::trws_base::SequenceStorage< GM >::size ( ) const
inline

Definition at line 40 of file trws_subproblemsolver.hxx.

+ Here is the caller graph for this function:

template<class GM>
UnaryFactor::iterator opengm::trws_base::SequenceStorage< GM >::ufBegin ( IndexType  indx)
inline

>const access

Definition at line 62 of file trws_subproblemsolver.hxx.

template<class GM>
UnaryFactor::iterator opengm::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.

template<class GM>
const UnaryFactor& opengm::trws_base::SequenceStorage< GM >::unaryFactors ( IndexType  indx) const
inline

Definition at line 61 of file trws_subproblemsolver.hxx.

template<class GM>
IndexType opengm::trws_base::SequenceStorage< GM >::varIndex ( IndexType  var) const
inline

>non-const access

Definition at line 64 of file trws_subproblemsolver.hxx.