Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
A range of values, used in RangeSet. More...
#include <qpid/RangeSet.h>
Public Member Functions | |
Range () | |
Range (const T &t) | |
Range (const T &b, const T &e) | |
T | begin () const |
T | end () const |
End of _open_ range, i.e. | |
T | first () const |
T | last () const |
Last in closed range, i.e. | |
void | begin (const T &t) |
void | end (const T &t) |
size_t | size () const |
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) |
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 39 of file RangeSet.h.
qpid::Range< T >::Range | ( | ) | [inline] |
Definition at line 43 of file RangeSet.h.
Referenced by qpid::Range< SequenceNumber >::makeClosed().
qpid::Range< T >::Range | ( | const T & | t | ) | [inline, explicit] |
Definition at line 44 of file RangeSet.h.
qpid::Range< T >::Range | ( | const T & | b, | |
const T & | e | |||
) | [inline] |
Definition at line 45 of file RangeSet.h.
void qpid::Range< T >::begin | ( | const T & | t | ) | [inline] |
Definition at line 55 of file RangeSet.h.
T qpid::Range< T >::begin | ( | ) | const [inline] |
Definition at line 47 of file RangeSet.h.
Referenced by qpid::operator<<(), and qpid::RangeSet< T >::removeRange().
bool qpid::Range< T >::contains | ( | const Range< T > & | r | ) | const [inline] |
Definition at line 61 of file RangeSet.h.
bool qpid::Range< T >::contains | ( | const T & | x | ) | const [inline] |
Definition at line 60 of file RangeSet.h.
Referenced by qpid::RangeSet< T >::removeRange().
bool qpid::Range< T >::empty | ( | ) | const [inline] |
Definition at line 58 of file RangeSet.h.
Referenced by qpid::RangeSet< T >::addRange(), qpid::Range< SequenceNumber >::first(), qpid::Range< SequenceNumber >::last(), qpid::Range< SequenceNumber >::operator bool(), and qpid::RangeSet< T >::removeRange().
void qpid::Range< T >::end | ( | const T & | t | ) | [inline] |
Definition at line 56 of file RangeSet.h.
T qpid::Range< T >::end | ( | ) | const [inline] |
End of _open_ range, i.e.
!contains(end())
Definition at line 49 of file RangeSet.h.
Referenced by qpid::RangeSet< T >::removeRange().
T qpid::Range< T >::first | ( | ) | const [inline] |
Definition at line 51 of file RangeSet.h.
T qpid::Range< T >::last | ( | ) | const [inline] |
static Range qpid::Range< T >::makeClosed | ( | const T & | first, | |
T | last | |||
) | [inline, static] |
Definition at line 41 of file RangeSet.h.
void qpid::Range< T >::merge | ( | const Range< T > & | r | ) | [inline] |
Definition at line 75 of file RangeSet.h.
qpid::Range< T >::operator bool | ( | ) | const [inline] |
Definition at line 81 of file RangeSet.h.
bool qpid::Range< T >::operator< | ( | const Range< T > & | r | ) | const [inline] |
Definition at line 67 of file RangeSet.h.
bool qpid::Range< T >::operator< | ( | const T & | t | ) | const [inline] |
Definition at line 66 of file RangeSet.h.
bool qpid::Range< T >::operator== | ( | const Range< T > & | x | ) | [inline] |
Definition at line 64 of file RangeSet.h.
Definition at line 83 of file RangeSet.h.
size_t qpid::Range< T >::size | ( | ) | const [inline] |
Definition at line 57 of file RangeSet.h.
bool qpid::Range< T >::strictContains | ( | const Range< T > & | r | ) | const [inline] |
Definition at line 62 of file RangeSet.h.
bool qpid::Range< T >::touching | ( | const Range< T > & | r | ) | const [inline] |
touching ranges can be merged into a single range.
Definition at line 70 of file RangeSet.h.
Referenced by qpid::Range< SequenceNumber >::merge().