opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE > Class Template Reference
[Graphical Models]

GraphicalModel. More...

#include <graphicalmodel.hxx>

Inheritance diagram for opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >:
Inheritance graph
[legend]
Collaboration diagram for opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  FunctionInformation { NrOfFunctionTypes = meta::LengthOfTypeList<FunctionTypeList>::value }
typedef GraphicalModel< T,
OPERATOR, FUNCTION_TYPE_LIST,
SPACE, EDITABLE > 
GraphicalModelType
typedef SPACE SpaceType
typedef SpaceType::IndexType IndexType
typedef SpaceType::LabelType LabelType
typedef T ValueType
typedef
meta::GenerateFunctionTypeList
< FUNCTION_TYPE_LIST,
ExplicitFunction< T, IndexType,
LabelType >, EDITABLE >::type 
FunctionTypeList
typedef FunctionIdentification
< IndexType, UInt8Type
FunctionIdentifier
typedef IndependentFactor
< ValueType, IndexType,
LabelType
IndependentFactorType
typedef Factor< GraphicalModel
< T, OPERATOR,
FUNCTION_TYPE_LIST, SPACE,
EDITABLE > > 
FactorType
typedef OPERATOR OperatorType

Public Member Functions

 GraphicalModel ()
 GraphicalModel (const GraphicalModel &)
template<class FUNCTION_TYPE_LIST_OTHER , bool IS_EDITABLE>
 GraphicalModel (const GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST_OTHER, SPACE, IS_EDITABLE > &)
 GraphicalModel (const SpaceType &, const size_t reserveFactorsPerVariable=0)
 construct a graphical model based on a label space
GraphicalModeloperator= (const GraphicalModel &)
template<class FUNCTION_TYPE_LIST_OTHER , bool IS_EDITABLE>
GraphicalModeloperator= (const GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST_OTHER, SPACE, IS_EDITABLE > &)
const SpaceTypespace () const
 return the label space underlying the graphical model
IndexType numberOfVariables () const
IndexType numberOfVariables (const IndexType) const
 return the order (number of variables) of a specific factor
IndexType numberOfLabels (const IndexType) const
 return the number of labels of an indicated variable
IndexType numberOfFunctions (const size_t) const
 return the number of functions of a specific type
IndexType numberOfFactors () const
IndexType numberOfFactors (const IndexType) const
 return the order (number of factors) connected to a specific variable
IndexType variableOfFactor (const IndexType, const IndexType) const
 return the k-th variable of the j-th factor
IndexType factorOfVariable (const IndexType, const IndexType) const
 return the k-th factor connected to the j-th variable
const FactorTypeoperator[] (const IndexType) const
 access a factor of the graphical model
template<class ITERATOR >
ValueType evaluate (ITERATOR) const
 evaluate the modeled function for a given labeling
size_t factorOrder () const
 return the maximum of the orders of all factors
void assign (const SpaceType &)
 clear the graphical model and construct a new one based on a label space
IndexType addVariable (const IndexType)
 add a new variable to the graphical model and underlying label space
template<class FUNCTION_TYPE >
FunctionIdentifier addFunction (const FUNCTION_TYPE &)
 add a function to the graphical model
template<class FUNCTION_TYPE >
std::pair< FunctionIdentifier,
FUNCTION_TYPE & > 
addFunctionWithRefReturn (const FUNCTION_TYPE &)
template<class FUNCTION_TYPE >
FunctionIdentifier addSharedFunction (const FUNCTION_TYPE &)
 add a function to the graphical model avoiding duplicates (requires search)
template<class FUNCTION_TYPE >
FUNCTION_TYPE & getFunction (const FunctionIdentifier &)
 access functions
template<class ITERATOR >
IndexType addFactor (const FunctionIdentifier &, ITERATOR, ITERATOR)
 add a factor to the graphical model
template<class FUNCTION_TYPE >
void reserveFunctions (const size_t numF)
void reserveFactors (const size_t numF)

Protected Member Functions

template<size_t FUNCTION_INDEX>
const std::vector< typename
meta::TypeAtTypeList
< FunctionTypeList,
FUNCTION_INDEX >::type > & 
functions () const
template<size_t FUNCTION_INDEX>
std::vector< typename
meta::TypeAtTypeList
< FunctionTypeList,
FUNCTION_INDEX >::type > & 
functions ()

Friends

template<typename GM >
void opengm::hdf5::save (const GM &, const std::string &, const std::string &)
template<typename GM >
void opengm::hdf5::load (GM &, const std::string &, const std::string &)

Detailed Description

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
class opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >

GraphicalModel.

Examples:

grid_potts.cxx, inference_types.cxx, interpixel_boundary_segmentation.cxx, io_graphical_model.cxx, markov-chain.cxx, one_to_one_matching.cxx, opengmBuildGrid.cxx, quick_start.cxx, and space_types.cxx.

Definition at line 66 of file graphicalmodel.hxx.


Member Typedef Documentation

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef Factor<GraphicalModel<T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE> > opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FactorType

Definition at line 92 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef FunctionIdentification<IndexType, UInt8Type> opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FunctionIdentifier

Definition at line 90 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef meta::GenerateFunctionTypeList< FUNCTION_TYPE_LIST, ExplicitFunction<T,IndexType,LabelType>, EDITABLE >::type opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FunctionTypeList

Definition at line 84 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef GraphicalModel<T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE> opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::GraphicalModelType

Definition at line 74 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef IndependentFactor<ValueType, IndexType, LabelType> opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndependentFactorType

Definition at line 91 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef SpaceType::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType
template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef SpaceType::LabelType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::LabelType

Definition at line 77 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef OPERATOR opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::OperatorType

Definition at line 93 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef SPACE opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::SpaceType

Definition at line 75 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
typedef T opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::ValueType

Definition at line 78 of file graphicalmodel.hxx.


Member Enumeration Documentation

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
enum opengm::GraphicalModel::FunctionInformation
Enumerator:
NrOfFunctionTypes 

Definition at line 86 of file graphicalmodel.hxx.


Constructor & Destructor Documentation

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::GraphicalModel (  ) 
template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::GraphicalModel ( const GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE > &  gm  )  [inline]

Definition at line 373 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST , class SPACE, bool EDITABLE>
template<class FUNCTION_TYPE_LIST_OTHER , bool IS_EDITABLE>
opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::GraphicalModel ( const GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST_OTHER, SPACE, IS_EDITABLE > &  gm  )  [inline]

Definition at line 395 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::GraphicalModel ( const SpaceType space,
const size_t  reserveFactorsPerVariable = 0 
) [inline]

construct a graphical model based on a label space

Definition at line 457 of file graphicalmodel.hxx.

Here is the call graph for this function:


Member Function Documentation

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
template<class ITERATOR >
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::addFactor ( const FunctionIdentifier functionIdentifier,
ITERATOR  begin,
ITERATOR  end 
) [inline]

add a factor to the graphical model

Parameters:
functionIdentifier identifier of the underlying function, cf. addFunction
begin iterator to the beginning of a sequence of variable indices
end iterator to the end of a sequence of variable indices
See also:
addFunction

Definition at line 757 of file graphicalmodel.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
template<class FUNCTION_TYPE >
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FunctionIdentifier opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::addFunction ( const FUNCTION_TYPE &  function  )  [inline]

add a function to the graphical model

Parameters:
function a copy of function is stored in the model
Returns:
the identifier of the new function that can be used e.g. with the function addFactor
See also:
addFactor
getFunction

Definition at line 624 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
template<class FUNCTION_TYPE >
std::pair< typename GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FunctionIdentifier, FUNCTION_TYPE & > opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::addFunctionWithRefReturn ( const FUNCTION_TYPE &  function  )  [inline]

Definition at line 652 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
template<class FUNCTION_TYPE >
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FunctionIdentifier opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::addSharedFunction ( const FUNCTION_TYPE &  function  )  [inline]

add a function to the graphical model avoiding duplicates (requires search)

Returns:
the identifier of the function that can be used e.g. with the function addFactor
See also:
addFactor

Definition at line 683 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::addVariable ( const IndexType  nLabels  )  [inline]

add a new variable to the graphical model and underlying label space

Returns:
index of the newly added variable

Definition at line 482 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
void opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::assign ( const SpaceType space  )  [inline]

clear the graphical model and construct a new one based on a label space

Definition at line 495 of file graphicalmodel.hxx.

Here is the caller graph for this function:

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
template<class ITERATOR >
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::ValueType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::evaluate ( ITERATOR  labelIndices  )  const [inline]

evaluate the modeled function for a given labeling

Parameters:
labelIndices iterator to the beginning of a sequence of label indices

Definition at line 555 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::factorOfVariable ( const IndexType  variableIndex,
const IndexType  factorNumber 
) const [inline]

return the k-th factor connected to the j-th variable

See also:
FactorGraph

Definition at line 350 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
size_t opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::factorOrder (  )  const [inline]

return the maximum of the orders of all factors

Definition at line 605 of file graphicalmodel.hxx.

Here is the call graph for this function:

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
template<size_t FUNCTION_INDEX>
std::vector< typename meta::TypeAtTypeList< typename GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FunctionTypeList, FUNCTION_INDEX >::type > & opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::functions (  )  [inline, protected]

Definition at line 889 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
template<size_t FUNCTION_INDEX>
const std::vector< typename meta::TypeAtTypeList< typename GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FunctionTypeList, FUNCTION_INDEX >::type > & opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::functions (  )  const [inline, protected]

Definition at line 875 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
template<class FUNCTION_TYPE >
FUNCTION_TYPE & opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::getFunction ( const FunctionIdentifier fid  )  [inline]

access functions

For example:

If your function and graphical model type both depend on one or more common template parameters, you may have to add the .template keyword for some compilers:

 opengm::ExplicitFunction<double> f = gm.template getFunction< FunctionType >(fid);
Parameters:
functionIdentifier identifier of the underlying function, cf. addFunction
See also:
addFunction

Definition at line 733 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::numberOfFactors ( const IndexType  variableIndex  )  const [inline]

return the order (number of factors) connected to a specific variable

See also:
FactorGraph

Definition at line 298 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::numberOfFactors (  )  const [inline]

Reimplemented from opengm::FactorGraph< GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >, SPACE::IndexType >.

Definition at line 536 of file graphicalmodel.hxx.

Here is the caller graph for this function:

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::numberOfFunctions ( const size_t  functionTypeIndex  )  const [inline]

return the number of functions of a specific type

Definition at line 322 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::numberOfLabels ( const IndexType  index  )  const [inline]

return the number of labels of an indicated variable

Definition at line 514 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::numberOfVariables ( const IndexType  factorIndex  )  const [inline]

return the order (number of variables) of a specific factor

See also:
FactorGraph

Definition at line 310 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::numberOfVariables (  )  const [inline]

Reimplemented from opengm::FactorGraph< GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >, SPACE::IndexType >.

Definition at line 505 of file graphicalmodel.hxx.

Here is the caller graph for this function:

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST , class SPACE, bool EDITABLE>
template<class FUNCTION_TYPE_LIST_OTHER , bool IS_EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE > & opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::operator= ( const GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST_OTHER, SPACE, IS_EDITABLE > &  gm  )  [inline]

Definition at line 810 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE > & opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::operator= ( const GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE > &  gm  )  [inline]

Definition at line 786 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
const GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::FactorType & opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::operator[] ( const IndexType  index  )  const [inline]

access a factor of the graphical model

Definition at line 526 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
void opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::reserveFactors ( const size_t  numF  )  [inline]

Definition at line 154 of file graphicalmodel.hxx.

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
template<class FUNCTION_TYPE >
void opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::reserveFunctions ( const size_t  numF  )  [inline]

Definition at line 144 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
const SPACE & opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::space (  )  const [inline]

return the label space underlying the graphical model

Definition at line 544 of file graphicalmodel.hxx.

template<class T , class OPERATOR , class FUNCTION_TYPE_LIST , class SPACE , bool EDITABLE>
GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::IndexType opengm::GraphicalModel< T, OPERATOR, FUNCTION_TYPE_LIST, SPACE, EDITABLE >::variableOfFactor ( const IndexType  factorIndex,
const IndexType  variableNumber 
) const [inline]

return the k-th variable of the j-th factor

See also:
FactorGraph

Definition at line 335 of file graphicalmodel.hxx.


Friends And Related Function Documentation

template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
template<typename GM >
void opengm::hdf5::load ( GM &  ,
const std::string &  ,
const std::string &   
) [friend]
template<class T, class OPERATOR, class FUNCTION_TYPE_LIST = meta::TypeList<ExplicitFunction<T>, meta::ListEnd>, class SPACE = opengm::DiscreteSpace<size_t, size_t>, bool EDITABLE = false>
template<typename GM >
void opengm::hdf5::save ( const GM &  ,
const std::string &  ,
const std::string &   
) [friend]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:11 2013 for OpenGM by  doxygen 1.6.3