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

#include <trws_base.hxx>

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

Public Types

enum  StructureType { GRIDSTRUCTURE, GENERALSTRUCTURE, EDGESTRUCTURE }
 
typedef GM GraphicalModelType
 
typedef SequenceStorage< GM > SubModel
 
typedef GM::ValueType ValueType
 
typedef GM::IndexType IndexType
 
typedef GM::LabelType LabelType
 
typedef MonotoneChainsDecomposition< GM >::SubVariable SubVariable
 
typedef MonotoneChainsDecomposition< GM >::SubVariableListType SubVariableListType
 
typedef SubModel::UnaryFactor UnaryFactor
 
typedef VariableToFactorMapping< GM > VariableToFactorMap
 
typedef std::vector< typename GM::ValueType > DDVectorType
 

Public Member Functions

 DecompositionStorage (const GM &gm, StructureType structureType=GENERALSTRUCTURE, const DDVectorType *pddvector=0)
 
 ~DecompositionStorage ()
 
const GM & masterModel () const
 
LabelType numberOfLabels (IndexType varId) const
 
IndexType numberOfModels () const
 
IndexType numberOfSharedVariables () const
 
SubModelsubModel (IndexType modelId)
 
const SubModelsubModel (IndexType modelId) const
 
IndexType size (IndexType subModelId) const
 
const SubVariableListTypegetSubVariableList (IndexType varId) const
 
StructureType getStructureType () const
 
void getDDVector (DDVectorType *ddvector) const
 
size_t getDDVectorSize () const
 
void addDDvector (const DDVectorType &ddvector)
 

Static Public Member Functions

static StructureType getStructureType (const std::string &structName)
 
static std::string getString (StructureType structure)
 

Detailed Description

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

Definition at line 16 of file trws_base.hxx.

Member Typedef Documentation

template<class GM>
typedef std::vector<typename GM::ValueType> opengm::trws_base::DecompositionStorage< GM >::DDVectorType

Definition at line 51 of file trws_base.hxx.

template<class GM>
typedef GM opengm::trws_base::DecompositionStorage< GM >::GraphicalModelType

Definition at line 19 of file trws_base.hxx.

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

Definition at line 22 of file trws_base.hxx.

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

Definition at line 23 of file trws_base.hxx.

template<class GM>
typedef SequenceStorage<GM> opengm::trws_base::DecompositionStorage< GM >::SubModel

Definition at line 20 of file trws_base.hxx.

Definition at line 24 of file trws_base.hxx.

Definition at line 25 of file trws_base.hxx.

Definition at line 26 of file trws_base.hxx.

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

Definition at line 21 of file trws_base.hxx.

Definition at line 49 of file trws_base.hxx.

Member Enumeration Documentation

Enumerator
GRIDSTRUCTURE 
GENERALSTRUCTURE 
EDGESTRUCTURE 

Definition at line 28 of file trws_base.hxx.

Constructor & Destructor Documentation

template<class GM >
opengm::trws_base::DecompositionStorage< GM >::DecompositionStorage ( const GM &  gm,
StructureType  structureType = GENERALSTRUCTURE,
const DDVectorType pddvector = 0 
)

Definition at line 928 of file trws_base.hxx.

Definition at line 939 of file trws_base.hxx.

Member Function Documentation

template<class GM >
void opengm::trws_base::DecompositionStorage< GM >::addDDvector ( const DDVectorType ddvector)

Definition at line 1002 of file trws_base.hxx.

template<class GM >
void opengm::trws_base::DecompositionStorage< GM >::getDDVector ( DDVectorType ddvector) const

Definition at line 1033 of file trws_base.hxx.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class GM >
size_t opengm::trws_base::DecompositionStorage< GM >::getDDVectorSize ( ) const

Definition at line 1058 of file trws_base.hxx.

template<class GM>
static std::string opengm::trws_base::DecompositionStorage< GM >::getString ( StructureType  structure)
inlinestatic

Definition at line 37 of file trws_base.hxx.

template<class GM>
static StructureType opengm::trws_base::DecompositionStorage< GM >::getStructureType ( const std::string &  structName)
inlinestatic

Definition at line 30 of file trws_base.hxx.

template<class GM>
StructureType opengm::trws_base::DecompositionStorage< GM >::getStructureType ( ) const
inline

Definition at line 65 of file trws_base.hxx.

template<class GM>
const SubVariableListType& opengm::trws_base::DecompositionStorage< GM >::getSubVariableList ( IndexType  varId) const
inline

Definition at line 64 of file trws_base.hxx.

+ Here is the caller graph for this function:

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

Definition at line 56 of file trws_base.hxx.

+ Here is the caller graph for this function:

template<class GM>
LabelType opengm::trws_base::DecompositionStorage< GM >::numberOfLabels ( IndexType  varId) const
inline

Definition at line 57 of file trws_base.hxx.

+ Here is the caller graph for this function:

template<class GM>
IndexType opengm::trws_base::DecompositionStorage< GM >::numberOfModels ( ) const
inline

Definition at line 58 of file trws_base.hxx.

template<class GM>
IndexType opengm::trws_base::DecompositionStorage< GM >::numberOfSharedVariables ( ) const
inline

Definition at line 59 of file trws_base.hxx.

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

Definition at line 62 of file trws_base.hxx.

template<class GM>
SubModel& opengm::trws_base::DecompositionStorage< GM >::subModel ( IndexType  modelId)
inline

Definition at line 60 of file trws_base.hxx.

+ Here is the caller graph for this function:

template<class GM>
const SubModel& opengm::trws_base::DecompositionStorage< GM >::subModel ( IndexType  modelId) const
inline

Definition at line 61 of file trws_base.hxx.