trws_base::GridDecomposition< GM > Class Template Reference

#include <trws_decomposition.hxx>

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

List of all members.

Public Types

typedef Decomposition< GM > parent
typedef parent::IndexType IndexType
typedef parent::LabelType LabelType
typedef parent::IndexList IndexList
typedef parent::SubVariable SubVariable
typedef parent::SubVariableListType SubVariableListType

Public Member Functions

 GridDecomposition (const GM &gm, IndexType numSubModels=0)
 numSubModels - ESTIMATED number of submodels to optimize memory allocation
IndexType xsize () const
IndexType ysize () const

Protected Member Functions

void _computeGridSizes ()
void _CheckGridModel ()
void _initDecompositionLists ()
IndexType _xysize () const
IndexType _pwrowsize () const
IndexType _pwIndexRow (IndexType x, IndexType y) const
 > returns an index of a row pairwise factor places to the right to var (x,y)
IndexType _pwIndexCol (IndexType x, IndexType y) const
 > returns an index of a row pairwise factor places to the right to var (x,y)
IndexType _varIndex (IndexType x, IndexType y) const
 > returns an index of a column pairwise factor places to the down to var (x,y)
void _getRow (IndexType y, IndexList *plist) const
 > returns indexes of variables in the row <y>
void _getCol (IndexType x, IndexList *plist) const
 > returns indexes of variables in the row <y>
void _getPWRow (IndexType y, IndexList *plist) const
 > returns indexes of variables in the column <y>
void _getPWCol (IndexType x, IndexList *plist) const
 > return indexes of pairwise factors in the row <y>

Detailed Description

template<class GM>
class trws_base::GridDecomposition< GM >

Definition at line 88 of file trws_decomposition.hxx.


Member Typedef Documentation

template<class GM>
typedef parent::IndexList trws_base::GridDecomposition< GM >::IndexList

Reimplemented from trws_base::Decomposition< GM >.

Definition at line 94 of file trws_decomposition.hxx.

template<class GM>
typedef parent::IndexType trws_base::GridDecomposition< GM >::IndexType

Reimplemented from trws_base::Decomposition< GM >.

Definition at line 92 of file trws_decomposition.hxx.

template<class GM>
typedef parent::LabelType trws_base::GridDecomposition< GM >::LabelType

Reimplemented from trws_base::Decomposition< GM >.

Definition at line 93 of file trws_decomposition.hxx.

template<class GM>
typedef Decomposition<GM> trws_base::GridDecomposition< GM >::parent

Definition at line 91 of file trws_decomposition.hxx.

Reimplemented from trws_base::Decomposition< GM >.

Definition at line 95 of file trws_decomposition.hxx.

Reimplemented from trws_base::Decomposition< GM >.

Definition at line 96 of file trws_decomposition.hxx.


Constructor & Destructor Documentation

template<class GM>
trws_base::GridDecomposition< GM >::GridDecomposition ( const GM &  gm,
IndexType  numSubModels = 0 
) [inline]

numSubModels - ESTIMATED number of submodels to optimize memory allocation

Definition at line 181 of file trws_decomposition.hxx.

Here is the call graph for this function:


Member Function Documentation

template<class GM >
void trws_base::GridDecomposition< GM >::_CheckGridModel (  )  [inline, protected]

Definition at line 231 of file trws_decomposition.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class GM >
void trws_base::GridDecomposition< GM >::_computeGridSizes (  )  [inline, protected]

Definition at line 198 of file trws_decomposition.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class GM >
void trws_base::GridDecomposition< GM >::_getCol ( IndexType  x,
IndexList plist 
) const [inline, protected]

> returns indexes of variables in the row <y>

> returns indexes of variables in the column <y>

Definition at line 427 of file trws_decomposition.hxx.

Here is the caller graph for this function:

template<class GM >
void trws_base::GridDecomposition< GM >::_getPWCol ( IndexType  x,
IndexList plist 
) const [inline, protected]

> return indexes of pairwise factors in the row <y>

> return indexes of pairwise factors in the column <x>

Definition at line 451 of file trws_decomposition.hxx.

Here is the caller graph for this function:

template<class GM >
void trws_base::GridDecomposition< GM >::_getPWRow ( IndexType  y,
IndexList plist 
) const [inline, protected]

> returns indexes of variables in the column <y>

> return indexes of pairwise factors in the row <y>

Definition at line 437 of file trws_decomposition.hxx.

Here is the caller graph for this function:

template<class GM >
void trws_base::GridDecomposition< GM >::_getRow ( IndexType  y,
IndexList plist 
) const [inline, protected]

> returns indexes of variables in the row <y>

Definition at line 417 of file trws_decomposition.hxx.

Here is the caller graph for this function:

template<class GM >
void trws_base::GridDecomposition< GM >::_initDecompositionLists (  )  [inline, protected]

Definition at line 259 of file trws_decomposition.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class GM >
GridDecomposition< GM >::IndexType trws_base::GridDecomposition< GM >::_pwIndexCol ( IndexType  x,
IndexType  y 
) const [inline, protected]

> returns an index of a row pairwise factor places to the right to var (x,y)

> returns an index of a column pairwise factor places to the down to var (x,y)

Definition at line 409 of file trws_decomposition.hxx.

Here is the caller graph for this function:

template<class GM >
GridDecomposition< GM >::IndexType trws_base::GridDecomposition< GM >::_pwIndexRow ( IndexType  x,
IndexType  y 
) const [inline, protected]

> returns an index of a row pairwise factor places to the right to var (x,y)

Definition at line 400 of file trws_decomposition.hxx.

Here is the caller graph for this function:

template<class GM>
IndexType trws_base::GridDecomposition< GM >::_pwrowsize (  )  const [inline, protected]

Definition at line 109 of file trws_decomposition.hxx.

template<class GM>
IndexType trws_base::GridDecomposition< GM >::_varIndex ( IndexType  x,
IndexType  y 
) const [inline, protected]

> returns an index of a column pairwise factor places to the down to var (x,y)

Definition at line 112 of file trws_decomposition.hxx.

Here is the caller graph for this function:

template<class GM>
IndexType trws_base::GridDecomposition< GM >::_xysize (  )  const [inline, protected]

Definition at line 108 of file trws_decomposition.hxx.

template<class GM>
IndexType trws_base::GridDecomposition< GM >::xsize (  )  const [inline]

Definition at line 99 of file trws_decomposition.hxx.

template<class GM>
IndexType trws_base::GridDecomposition< GM >::ysize (  )  const [inline]

Definition at line 100 of file trws_decomposition.hxx.

 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