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

#include <modelTrees.hxx>

+ Collaboration diagram for opengm::modelTrees< GM >:

Public Types

typedef GM GmType
 
typedef GM::ValueType ValueType
 
typedef GM::IndexType IndexType
 
typedef GM::LabelType LabelType
 
typedef GM::OperatorType OperatorType
 

Public Member Functions

 modelTrees (const GmType &)
 
IndexType numberOfTrees () const
 
IndexType treeOfVariable (IndexType i)
 
IndexType parentOfVariable (IndexType i)
 
IndexType treeOfRoot (IndexType i)
 
void roots (std::vector< IndexType > &)
 
void nodes (std::vector< std::vector< IndexType > > &)
 

Detailed Description

template<class GM>
class opengm::modelTrees< GM >

Definition at line 24 of file modelTrees.hxx.

Member Typedef Documentation

template<class GM >
typedef GM opengm::modelTrees< GM >::GmType

Definition at line 28 of file modelTrees.hxx.

template<class GM >
typedef GM::IndexType opengm::modelTrees< GM >::IndexType

Definition at line 30 of file modelTrees.hxx.

template<class GM >
typedef GM::LabelType opengm::modelTrees< GM >::LabelType

Definition at line 31 of file modelTrees.hxx.

template<class GM >
typedef GM::OperatorType opengm::modelTrees< GM >::OperatorType

Definition at line 32 of file modelTrees.hxx.

template<class GM >
typedef GM::ValueType opengm::modelTrees< GM >::ValueType

Definition at line 29 of file modelTrees.hxx.

Constructor & Destructor Documentation

template<class GM >
opengm::modelTrees< GM >::modelTrees ( const GmType gm)

Definition at line 57 of file modelTrees.hxx.

Member Function Documentation

template<class GM >
void opengm::modelTrees< GM >::nodes ( std::vector< std::vector< IndexType > > &  nodes)
inline

Definition at line 154 of file modelTrees.hxx.

template<class GM >
GM::IndexType opengm::modelTrees< GM >::numberOfTrees ( ) const
inline

Definition at line 108 of file modelTrees.hxx.

template<class GM >
GM::IndexType opengm::modelTrees< GM >::parentOfVariable ( IndexType  i)
inline

Definition at line 143 of file modelTrees.hxx.

template<class GM >
void opengm::modelTrees< GM >::roots ( std::vector< IndexType > &  roots)
inline

Definition at line 129 of file modelTrees.hxx.

template<class GM >
GM::IndexType opengm::modelTrees< GM >::treeOfRoot ( IndexType  i)
inline

Definition at line 166 of file modelTrees.hxx.

template<class GM >
GM::IndexType opengm::modelTrees< GM >::treeOfVariable ( IndexType  i)
inline

Definition at line 114 of file modelTrees.hxx.