qpid::Range< T > Class Template Reference

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

#include <RangeSet.h>

Inheritance diagram for qpid::Range< T >:

Inheritance graph
[legend]

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 operator< (const Range< T > &r) 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.

Definition at line 38 of file RangeSet.h.


Member Function Documentation

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

End of _open_ range, i.e.

!contains(end())

Definition at line 48 of file RangeSet.h.

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

Last in closed range, i.e.

contains(end())

Definition at line 52 of file RangeSet.h.

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

touching ranges can be merged into a single range.

Definition at line 69 of file RangeSet.h.

Referenced by qpid::Range< qpid::framing::SequenceNumber >::merge().

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

Precondition:
touching

Definition at line 74 of file RangeSet.h.


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

Generated on Thu Oct 16 13:37:56 2008 for Qpid by  doxygen 1.5.6