qpid::Range< T > Class Template Reference

A range of values, used in RangeSet. More...

#include <RangeSet.h>

List of all members.

Public Member Functions

 Range (const T &t)
 Range (const T &b, const T &e)
begin () const
end () const
 End of _open_ range, i.e.
first () const
last () const
 Last in closed range, i.e.
void begin (const T &t)
void end (const T &t)
bool empty () const
bool contains (const T &x) const
bool contains (const Range &r) const
bool strictContains (const Range &r) const
bool operator== (const Range &x)
bool operator< (const T &t) const
bool touching (const Range &r) const
 touching ranges can be merged into a single range.
void merge (const Range &r)
 operator bool () const
template<class S>
void serialize (S &s)

Static Public Member Functions

static Range makeClosed (const T &first, T last)


Detailed Description

template<class T>
class qpid::Range< T >

A range of values, used in RangeSet.

Range(begin, end) includes begin but excludes end. Range::makeClosed(first,last) includes both first and last.


Member Function Documentation

template<class T>
T qpid::Range< T >::end (  )  const [inline]

End of _open_ range, i.e.

!contains(end())

template<class T>
T qpid::Range< T >::last (  )  const [inline]

Last in closed range, i.e.

contains(end())

template<class T>
bool qpid::Range< T >::touching ( const Range< T > &  r  )  const [inline]

touching ranges can be merged into a single range.

References qpid::Range< T >::begin_, and qpid::Range< T >::end_.

Referenced by qpid::Range< T >::merge().

template<class T>
void qpid::Range< T >::merge ( const Range< T > &  r  )  [inline]


The documentation for this class was generated from the following file:

Generated on Thu May 15 22:22:22 2008 for Qpid by  doxygen 1.5.5