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

Discrete space in which all variables have the same number of labels. More...

#include <simplediscretespace.hxx>

+ Inheritance diagram for opengm::SimpleDiscreteSpace< I, L >:
+ Collaboration diagram for opengm::SimpleDiscreteSpace< I, L >:

Public Types

typedef I IndexType
 
typedef L LabelType
 
- Public Types inherited from opengm::SpaceBase< SimpleDiscreteSpace< I, L >, I, L >
typedef I IndexType
 
typedef L LabelType
 

Public Member Functions

 SimpleDiscreteSpace ()
 
 SimpleDiscreteSpace (const IndexType, const LabelType)
 
void assign (const IndexType, const LabelType)
 
template<class Iterator >
void assignDense (Iterator, Iterator)
 
IndexType addVariable (const LabelType)
 
IndexType numberOfVariables () const
 
LabelType numberOfLabels (const IndexType) const
 
bool isSimpleSpace () const
 
- Public Member Functions inherited from opengm::SpaceBase< SimpleDiscreteSpace< I, L >, I, L >
IndexType numberOfVariables () const
 
LabelType numberOfLabels (const IndexType) const
 
void assignDense (Iterator, Iterator)
 
IndexType addVariable (const LabelType)
 
bool isSimpleSpace () const
 

Detailed Description

template<class I = std::size_t, class L = std::size_t>
class opengm::SimpleDiscreteSpace< I, L >

Discrete space in which all variables have the same number of labels.

Examples:
gibbs.cxx, grid_potts.cxx, interpixel_boundary_segmentation.cxx, markov-chain.cxx, one_to_one_matching.cxx, space_types.cxx, and swendsenwang.cxx.

Definition at line 14 of file simplediscretespace.hxx.

Member Typedef Documentation

template<class I = std::size_t, class L = std::size_t>
typedef I opengm::SimpleDiscreteSpace< I, L >::IndexType

Definition at line 17 of file simplediscretespace.hxx.

template<class I = std::size_t, class L = std::size_t>
typedef L opengm::SimpleDiscreteSpace< I, L >::LabelType

Definition at line 18 of file simplediscretespace.hxx.

Constructor & Destructor Documentation

template<class I , class L >
opengm::SimpleDiscreteSpace< I, L >::SimpleDiscreteSpace ( )
inline

Definition at line 36 of file simplediscretespace.hxx.

template<class I , class L >
opengm::SimpleDiscreteSpace< I, L >::SimpleDiscreteSpace ( const IndexType  numberOfVariables,
const LabelType  numberOfLabels 
)
inline

Definition at line 44 of file simplediscretespace.hxx.

Member Function Documentation

template<class I , class L >
SimpleDiscreteSpace< I, L >::IndexType opengm::SimpleDiscreteSpace< I, L >::addVariable ( const LabelType  numberOfLabels)
inline

Definition at line 84 of file simplediscretespace.hxx.

template<class I , class L >
void opengm::SimpleDiscreteSpace< I, L >::assign ( const IndexType  numberOfVariables,
const LabelType  numberOfLabels 
)
inline

Definition at line 73 of file simplediscretespace.hxx.

template<class I , class L >
template<class Iterator >
void opengm::SimpleDiscreteSpace< I, L >::assignDense ( Iterator  begin,
Iterator  end 
)
inline

Definition at line 56 of file simplediscretespace.hxx.

template<class I , class L >
bool opengm::SimpleDiscreteSpace< I, L >::isSimpleSpace ( ) const
inline

Definition at line 111 of file simplediscretespace.hxx.

template<class I , class L >
SimpleDiscreteSpace< I, L >::LabelType opengm::SimpleDiscreteSpace< I, L >::numberOfLabels ( const IndexType  dimension) const
inline

Definition at line 103 of file simplediscretespace.hxx.

template<class I , class L >
SimpleDiscreteSpace< I, L >::IndexType opengm::SimpleDiscreteSpace< I, L >::numberOfVariables ( ) const
inline

Definition at line 96 of file simplediscretespace.hxx.