RestrictedInt.hh File Reference

RestrictedInt public header. More...

#include <iostream>
#include <boost/operators.hpp>
#include <senf/Utils/safe_bool.hh>

Include dependency graph for RestrictedInt.hh:

Go to the source code of this file.


Detailed Description

RestrictedInt public header.

Definition in file RestrictedInt.hh.


Classes

class   senf::RestrictedInt< Base, Tag >

Namespaces

namespace   senf

Defines

#define  HH_SENF_senf_Utils_RestrictedInt_   1
#define  BinaryOp(op)
#define  IncDecOp(op)
#define  PrefixOp(op)
#define  CompareOp(op)

Functions

template<class Base , class Tag >
std::ostream &  senf::operator<< (std::ostream &os, RestrictedInt< Base, Tag > value)
template<class Base , class Tag >
std::istream &  senf::operator>> (std::istream &is, RestrictedInt< Base, Tag > &value)

Define Documentation

#define
BinaryOp ( op  )

Value:

RestrictedInt & operator op ## = (RestrictedInt other)      \
                { value_ op ## = other.value_; return *this; }

Definition at line 58 of file RestrictedInt.hh.

#define
CompareOp ( op  )

Value:

bool operator op (RestrictedInt other) const                \
                { return value_ op other.value_; }

Definition at line 67 of file RestrictedInt.hh.

#define
HH_SENF_senf_Utils_RestrictedInt_   1

Definition at line 27 of file RestrictedInt.hh.

#define
IncDecOp ( op  )

Value:

RestrictedInt & operator op ()                              \
                { op value_; return *this; }

Definition at line 61 of file RestrictedInt.hh.

#define
PrefixOp ( op  )

Value:

RestrictedInt const operator op () const                    \
                { return RestrictedInt(op value_); }

Definition at line 64 of file RestrictedInt.hh.