Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Member Functions | Static Public Member Functions | List of all members
qpid::Range< T > Class Template Reference

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)
 
begin () const
 
end () const
 End of open range, i.e. More...
 
first () const
 
last () const
 Last in closed range, i.e. More...
 
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. More...
 
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 39 of file RangeSet.h.

Constructor & Destructor Documentation

template<class T>
qpid::Range< T >::Range ( )
inline

Definition at line 43 of file RangeSet.h.

Referenced by qpid::Range< SequenceNumber >::makeClosed().

template<class T>
qpid::Range< T >::Range ( const T &  t)
inlineexplicit

Definition at line 44 of file RangeSet.h.

template<class T>
qpid::Range< T >::Range ( const T &  b,
const T &  e 
)
inline

Definition at line 45 of file RangeSet.h.

Member Function Documentation

template<class T>
T qpid::Range< T >::begin ( ) const
inline

Definition at line 47 of file RangeSet.h.

Referenced by qpid::RangeSet< T >::removeRange().

template<class T>
void qpid::Range< T >::begin ( const T &  t)
inline

Definition at line 55 of file RangeSet.h.

template<class T>
bool qpid::Range< T >::contains ( const T &  x) const
inline

Definition at line 60 of file RangeSet.h.

Referenced by qpid::RangeSet< T >::removeRange().

template<class T>
bool qpid::Range< T >::contains ( const Range< T > &  r) const
inline

Definition at line 61 of file RangeSet.h.

template<class T>
bool qpid::Range< T >::empty ( ) const
inline
template<class T>
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().

template<class T>
void qpid::Range< T >::end ( const T &  t)
inline

Definition at line 56 of file RangeSet.h.

template<class T>
T qpid::Range< T >::first ( ) const
inline

Definition at line 51 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 53 of file RangeSet.h.

template<class T>
static Range qpid::Range< T >::makeClosed ( const T &  first,
last 
)
inlinestatic

Definition at line 41 of file RangeSet.h.

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

Definition at line 75 of file RangeSet.h.

template<class T>
qpid::Range< T >::operator bool ( ) const
inline

Definition at line 81 of file RangeSet.h.

template<class T>
bool qpid::Range< T >::operator< ( const T &  t) const
inline

Definition at line 66 of file RangeSet.h.

template<class T>
bool qpid::Range< T >::operator< ( const Range< T > &  r) const
inline

Definition at line 67 of file RangeSet.h.

template<class T>
bool qpid::Range< T >::operator== ( const Range< T > &  x)
inline

Definition at line 64 of file RangeSet.h.

template<class T>
template<class S >
void qpid::Range< T >::serialize ( S &  s)
inline

Definition at line 83 of file RangeSet.h.

template<class T>
size_t qpid::Range< T >::size ( ) const
inline

Definition at line 57 of file RangeSet.h.

template<class T>
bool qpid::Range< T >::strictContains ( const Range< T > &  r) const
inline

Definition at line 62 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 70 of file RangeSet.h.

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


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

Qpid C++ API Reference
Generated on Thu Jun 5 2014 for Qpid C++ Client API by doxygen 1.8.3.1