Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Types | Public Member Functions | Friends
qpid::framing::SequenceSet Class Reference

#include <qpid/framing/SequenceSet.h>

List of all members.

Public Types

typedef iterator const_iterator
typedef Ranges::const_iterator RangeIterator

Public Member Functions

 SequenceSet ()
 SequenceSet (const RangeSet< SequenceNumber > &r)
 SequenceSet (const SequenceNumber &s)
 SequenceSet (const SequenceNumber &start, const SequenceNumber finish)
void encode (Buffer &buffer) const
void decode (Buffer &buffer)
uint32_t encodedSize () const
bool contains (const SequenceNumber &s) const
void add (const SequenceNumber &s)
void add (const SequenceNumber &start, const SequenceNumber &finish)
void add (const SequenceSet &set)
void remove (const SequenceNumber &s)
void remove (const SequenceNumber &start, const SequenceNumber &finish)
void remove (const SequenceSet &set)
template<class T >
void for_each (T &t) const
template<class T >
void for_each (const T &t) const
bool contiguous () const
bool contains (const SequenceNumber &t) const
bool contains (const Range< SequenceNumber > &) const
Range< SequenceNumbertoRange () const
bool operator== (const RangeSet< SequenceNumber > &) const
void addRange (const Range< SequenceNumber > &)
void addSet (const RangeSet< SequenceNumber > &)
RangeSet< SequenceNumber > & operator+= (const SequenceNumber &t)
RangeSet< SequenceNumber > & operator+= (const Range< SequenceNumber > &r)
RangeSet< SequenceNumber > & operator+= (const RangeSet< SequenceNumber > &s)
void removeRange (const Range< SequenceNumber > &)
void removeSet (const RangeSet< SequenceNumber > &)
RangeSet< SequenceNumber > & operator-= (const SequenceNumber &t)
RangeSet< SequenceNumber > & operator-= (const Range< SequenceNumber > &r)
RangeSet< SequenceNumber > & operator-= (const RangeSet< SequenceNumber > &s)
SequenceNumber front () const
SequenceNumber back () const
iterator begin () const
iterator end () const
RangeIterator rangesBegin () const
RangeIterator rangesEnd () const
size_t rangesSize () const
uint32_t span () const
size_t size () const
bool empty () const
void clear ()
Range< SequenceNumberrangeContaining (const SequenceNumber &) const
 Return the largest contiguous range containing x.
void serialize (S &s)
void encode (S &s) const
void decode (S &s)

Friends

std::ostream & operator<< (std::ostream &, const SequenceSet &)

Detailed Description

Definition at line 32 of file SequenceSet.h.


Member Typedef Documentation

typedef iterator qpid::RangeSet< SequenceNumber >::const_iterator [inherited]

Definition at line 130 of file RangeSet.h.

typedef Ranges::const_iterator qpid::RangeSet< SequenceNumber >::RangeIterator [inherited]

Definition at line 168 of file RangeSet.h.


Constructor & Destructor Documentation

qpid::framing::SequenceSet::SequenceSet ( ) [inline]

Definition at line 34 of file SequenceSet.h.

qpid::framing::SequenceSet::SequenceSet ( const RangeSet< SequenceNumber > &  r) [inline]

Definition at line 35 of file SequenceSet.h.

qpid::framing::SequenceSet::SequenceSet ( const SequenceNumber s) [inline]

Definition at line 37 of file SequenceSet.h.

qpid::framing::SequenceSet::SequenceSet ( const SequenceNumber start,
const SequenceNumber  finish 
) [inline]

Definition at line 38 of file SequenceSet.h.


Member Function Documentation

void qpid::framing::SequenceSet::add ( const SequenceNumber s)
void qpid::framing::SequenceSet::add ( const SequenceNumber start,
const SequenceNumber finish 
)
void qpid::framing::SequenceSet::add ( const SequenceSet set)
void qpid::RangeSet< SequenceNumber >::addRange ( const Range< SequenceNumber > &  ) [inherited]
void qpid::RangeSet< SequenceNumber >::addSet ( const RangeSet< SequenceNumber > &  ) [inherited]
SequenceNumber qpid::RangeSet< SequenceNumber >::back ( ) const [inline, inherited]

Definition at line 161 of file RangeSet.h.

iterator qpid::RangeSet< SequenceNumber >::begin ( ) const [inherited]
void qpid::RangeSet< SequenceNumber >::clear ( ) [inline, inherited]

Definition at line 178 of file RangeSet.h.

bool qpid::framing::SequenceSet::contains ( const SequenceNumber s) const
bool qpid::RangeSet< SequenceNumber >::contains ( const SequenceNumber &  t) const [inherited]
bool qpid::RangeSet< SequenceNumber >::contains ( const Range< SequenceNumber > &  ) const [inherited]
bool qpid::RangeSet< SequenceNumber >::contiguous ( ) const [inline, inherited]

Definition at line 136 of file RangeSet.h.

void qpid::framing::SequenceSet::decode ( Buffer buffer)
void qpid::RangeSet< SequenceNumber >::decode ( S &  s) [inline, inherited]

Definition at line 187 of file RangeSet.h.

bool qpid::RangeSet< SequenceNumber >::empty ( ) const [inline, inherited]

Definition at line 177 of file RangeSet.h.

void qpid::framing::SequenceSet::encode ( Buffer buffer) const
void qpid::RangeSet< SequenceNumber >::encode ( S &  s) const [inline, inherited]

Definition at line 186 of file RangeSet.h.

uint32_t qpid::framing::SequenceSet::encodedSize ( ) const
iterator qpid::RangeSet< SequenceNumber >::end ( ) const [inherited]
template<class T >
void qpid::framing::SequenceSet::for_each ( T &  t) const [inline]

Definition at line 53 of file SequenceSet.h.

template<class T >
void qpid::framing::SequenceSet::for_each ( const T &  t) const [inline]

Definition at line 58 of file SequenceSet.h.

SequenceNumber qpid::RangeSet< SequenceNumber >::front ( ) const [inline, inherited]

Definition at line 160 of file RangeSet.h.

RangeSet<SequenceNumber >& qpid::RangeSet< SequenceNumber >::operator+= ( const Range< SequenceNumber > &  r) [inline, inherited]

Definition at line 150 of file RangeSet.h.

References qpid::RangeSet< T >::addRange().

RangeSet<SequenceNumber >& qpid::RangeSet< SequenceNumber >::operator+= ( const SequenceNumber &  t) [inline, inherited]

Definition at line 149 of file RangeSet.h.

RangeSet<SequenceNumber >& qpid::RangeSet< SequenceNumber >::operator+= ( const RangeSet< SequenceNumber > &  s) [inline, inherited]

Definition at line 151 of file RangeSet.h.

References qpid::RangeSet< T >::addSet().

RangeSet<SequenceNumber >& qpid::RangeSet< SequenceNumber >::operator-= ( const RangeSet< SequenceNumber > &  s) [inline, inherited]

Definition at line 158 of file RangeSet.h.

References qpid::RangeSet< T >::removeSet().

RangeSet<SequenceNumber >& qpid::RangeSet< SequenceNumber >::operator-= ( const SequenceNumber &  t) [inline, inherited]

Definition at line 156 of file RangeSet.h.

RangeSet<SequenceNumber >& qpid::RangeSet< SequenceNumber >::operator-= ( const Range< SequenceNumber > &  r) [inline, inherited]

Definition at line 157 of file RangeSet.h.

References qpid::RangeSet< T >::removeRange().

bool qpid::RangeSet< SequenceNumber >::operator== ( const RangeSet< SequenceNumber > &  ) const [inherited]
Range<SequenceNumber > qpid::RangeSet< SequenceNumber >::rangeContaining ( const SequenceNumber &  ) const [inherited]

Return the largest contiguous range containing x.

Returns the empty range [x,x) if x is not in the set.

RangeIterator qpid::RangeSet< SequenceNumber >::rangesBegin ( ) const [inline, inherited]

Definition at line 169 of file RangeSet.h.

RangeIterator qpid::RangeSet< SequenceNumber >::rangesEnd ( ) const [inline, inherited]

Definition at line 170 of file RangeSet.h.

size_t qpid::RangeSet< SequenceNumber >::rangesSize ( ) const [inline, inherited]

Definition at line 171 of file RangeSet.h.

void qpid::framing::SequenceSet::remove ( const SequenceSet set)
void qpid::framing::SequenceSet::remove ( const SequenceNumber start,
const SequenceNumber finish 
)
void qpid::framing::SequenceSet::remove ( const SequenceNumber s)
void qpid::RangeSet< SequenceNumber >::removeRange ( const Range< SequenceNumber > &  ) [inherited]
void qpid::RangeSet< SequenceNumber >::removeSet ( const RangeSet< SequenceNumber > &  ) [inherited]
void qpid::RangeSet< SequenceNumber >::serialize ( S &  s) [inline, inherited]

Definition at line 185 of file RangeSet.h.

size_t qpid::RangeSet< SequenceNumber >::size ( ) const [inherited]
uint32_t qpid::RangeSet< SequenceNumber >::span ( ) const [inherited]
Range<SequenceNumber > qpid::RangeSet< SequenceNumber >::toRange ( ) const [inherited]
Precondition:
contiguous()

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const SequenceSet  
) [friend]

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

Qpid C++ API Reference
Generated on Mon Aug 22 2011 for Qpid C++ Client API by doxygen 1.7.4