trws_base::SequenceStorage< GM > Class Template Reference

#include <trws_subproblemsolver.hxx>

Collaboration diagram for trws_base::SequenceStorage< GM >:
Collaboration graph
[legend]

List of all members.

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
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)

Detailed Description

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

Definition at line 25 of file trws_subproblemsolver.hxx.


Member Typedef Documentation

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

Definition at line 32 of file trws_subproblemsolver.hxx.

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

Definition at line 30 of file trws_subproblemsolver.hxx.

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

Definition at line 31 of file trws_subproblemsolver.hxx.

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

Definition at line 33 of file trws_subproblemsolver.hxx.

template<class GM>
typedef GM::ValueType 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>
trws_base::SequenceStorage< GM >::SequenceStorage ( const GM &  masterModel,
const VariableToFactorMap var2FactorMap,
const IndexList variableList,
const IndexList pwFactorList,
const IndexList numberOfTreesPerFactor 
) [inline]

Definition at line 509 of file trws_subproblemsolver.hxx.

Here is the call graph for this function:

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

Definition at line 39 of file trws_subproblemsolver.hxx.


Member Function Documentation

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

Definition at line 568 of file trws_subproblemsolver.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class GM >
template<class ITERATOR >
SequenceStorage< GM >::ValueType trws_base::SequenceStorage< GM >::evaluate ( ITERATOR  labeling  )  [inline]

Definition at line 587 of file trws_subproblemsolver.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 57 of file trws_subproblemsolver.hxx.

Here is the caller graph for this function:

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

Definition at line 55 of file trws_subproblemsolver.hxx.

Here is the caller graph for this function:

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

Definition at line 56 of file trws_subproblemsolver.hxx.

Here is the caller graph for this function:

template<class GM >
SequenceStorage< GM >::MoveDirection trws_base::SequenceStorage< GM >::ReverseDirection ( MoveDirection  dir  )  [inline, static]

Definition at line 576 of file trws_subproblemsolver.hxx.

Here is the caller graph for this function:

template<class GM>
IndexType 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 trws_base::SequenceStorage< GM >::ufBegin ( IndexType  indx  )  [inline]

>const access

Definition at line 62 of file trws_subproblemsolver.hxx.

Here is the caller graph for this function:

template<class GM>
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.

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

Definition at line 61 of file trws_subproblemsolver.hxx.

Here is the caller graph for this function:

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

>non-const access

Definition at line 64 of file trws_subproblemsolver.hxx.

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:14 2013 for OpenGM by  doxygen 1.6.3