xorp

Range< T > Class Template Reference

A template class for implementing linear ranges X..Y. More...

#include <range.hh>

Inheritance diagram for Range< T >:
IPvXRange< T >

List of all members.

Public Member Functions

 Range ()
 Default constructor.
 Range (T value)
 Constructor from a single value.
 Range (T low, T high)
 Constructor from two values.
const T & low () const
const T & high () const

Protected Attributes

_low
_high

Detailed Description

template<class T>
class Range< T >

A template class for implementing linear ranges X..Y.

We define a linear range by its low and high inclusive boundaries. It's the user's responisibility to ensure that the condition (_low <= _high) always holds!


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations