2 #ifndef OPENGM_VIEW_SPACE_HXX
3 #define OPENGM_VIEW_SPACE_HXX
20 :
public SpaceBase<ViewSpace<GM>, typename GM::IndexType, typename GM::LabelType> {
22 typedef typename GM::IndexType IndexType;
24 typedef typename GM::SpaceType SrcSpaceType;
27 ViewSpace(
const GM &);
28 void assign(
const GM &);
29 IndexType addVariable(
const LabelType);
30 IndexType numberOfVariables()
const;
31 LabelType numberOfLabels(
const IndexType)
const;
34 SrcSpaceType
const* space_;
39 ViewSpace<GM>::ViewSpace()
45 ViewSpace<GM>::ViewSpace(
53 ViewSpace<GM>::assign(
61 inline typename ViewSpace<GM>::IndexType
62 ViewSpace<GM>::addVariable(
70 inline typename ViewSpace<GM>::IndexType
71 ViewSpace<GM>::numberOfVariables()
const
74 return space_->numberOfVariables();
78 inline typename ViewSpace<GM>::IndexType
79 ViewSpace<GM>::numberOfLabels
81 const IndexType dimension
85 return space_->numberOfLabels(dimension);
92 #endif // #ifndef OPENGM_VIEW_SPACE_HXX
#define OPENGM_ASSERT(expression)