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

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

#include <static_simplediscretespace.hxx>

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

Public Types

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

Public Member Functions

 StaticSimpleDiscreteSpace ()
 
 StaticSimpleDiscreteSpace (const IndexType)
 
void assign (const IndexType)
 
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< StaticSimpleDiscreteSpace< LABELS, 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<size_t LABELS, class I = std::size_t, class L = std::size_t>
class opengm::StaticSimpleDiscreteSpace< LABELS, I, L >

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

Definition at line 14 of file static_simplediscretespace.hxx.

Member Typedef Documentation

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

Definition at line 18 of file static_simplediscretespace.hxx.

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

Definition at line 19 of file static_simplediscretespace.hxx.

Constructor & Destructor Documentation

template<size_t LABELS, class I , class L >
opengm::StaticSimpleDiscreteSpace< LABELS, I, L >::StaticSimpleDiscreteSpace ( )
inline

Definition at line 36 of file static_simplediscretespace.hxx.

template<size_t LABELS, class I , class L >
opengm::StaticSimpleDiscreteSpace< LABELS, I, L >::StaticSimpleDiscreteSpace ( const IndexType  numberOfVariables)
inline

Definition at line 42 of file static_simplediscretespace.hxx.

Member Function Documentation

template<size_t LABELS, class I , class L >
I opengm::StaticSimpleDiscreteSpace< LABELS, I, L >::addVariable ( const LabelType  numberOfLabels)
inline

Definition at line 76 of file static_simplediscretespace.hxx.

template<size_t LABELS, class I , class L >
void opengm::StaticSimpleDiscreteSpace< LABELS, I, L >::assign ( const IndexType  numberOfVariables)
inline

Definition at line 68 of file static_simplediscretespace.hxx.

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

Definition at line 51 of file static_simplediscretespace.hxx.

template<size_t LABELS, class I , class L >
bool opengm::StaticSimpleDiscreteSpace< LABELS, I, L >::isSimpleSpace ( ) const
inline

Definition at line 101 of file static_simplediscretespace.hxx.

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

Definition at line 93 of file static_simplediscretespace.hxx.

template<size_t LABELS, class I , class L >
StaticSimpleDiscreteSpace< LABELS, I, L >::IndexType opengm::StaticSimpleDiscreteSpace< LABELS, I, L >::numberOfVariables ( ) const
inline

Definition at line 87 of file static_simplediscretespace.hxx.