#include <trace-tools/pcap/frame_iterator.hh>
Public Types | |
typedef HIDDEN | exact_type |
typedef HIDDEN | value_type |
typedef HIDDEN | iterable_type |
typedef size_t | difference_type |
Public Member Functions | |
frame_iterator (descriptor< Desc > &desc, bool end) | |
void | increment () |
bool | equal (const iterator_base &) const |
const value_type & | get () const |
const value_type * | get_ptr () const |
Equality checks | |
bool | operator== (const exact_type &) const |
bool | operator!= (const exact_type &) const |
Increment operators | |
const exact_type & | operator++ () |
exact_type | operator++ (int) |
Indirections | |
const value_type & | operator * () const |
const value_type * | operator-> () const |
Downcast methods | |
const exact_type & | exact () const |
exact_type & | exact () |
const exact_type * | exact_ptr () const |
exact_type * | exact_ptr () |
Protected Types | |
typedef boost::optional < value_type > | optional_value |
Protected Attributes | |
iterable_type * | i_ |
optional_value | v_ |
Friends | |
template<class D, class B> | |
void | fill (void *, const pkthdr *, const void *) |
typedef HIDDEN pcapxx::internals::frame_iterator< Desc, Bottom >::exact_type |
typedef HIDDEN tool::iterator_base< Bottom >::value_type [inherited] |
typedef HIDDEN tool::iterator_base< Bottom >::iterable_type [inherited] |
Type of the iterable structure the iterator is obtained from.
Reimplemented in wifi::frame::filter::internals::ui_iterator< U, I, H, B, Bottom >.
typedef boost::optional<value_type> tool::iterator_base< Bottom >::optional_value [protected, inherited] |
Type for v_.
typedef size_t tool::iterator< Bottom >::difference_type [inherited] |
This iterator's difference type.
pcapxx::internals::frame_iterator< D, B >::frame_iterator | ( | descriptor< D > & | desc, | |
bool | end | |||
) | [inline] |
tool::iterable -compatible constructor.
void pcapxx::internals::frame_iterator< D, B >::increment | ( | ) | [inline] |
Retrieve the next frame.
bool tool::iterator_base< B >::equal | ( | const iterator_base< Bottom > & | rhs | ) | const [inline, inherited] |
const iterator_base< B >::value_type & tool::iterator_base< B >::get | ( | ) | const [inline, inherited] |
const iterator_base< B >::value_type * tool::iterator_base< B >::get_ptr | ( | ) | const [inline, inherited] |
const static_base< Bottom >::exact_type & tool::static_base< Bottom >::exact | ( | ) | const [inline, inherited] |
Safely downcast to the exact type as a const reference.
static_base< Bottom >::exact_type & tool::static_base< Bottom >::exact | ( | ) | [inline, inherited] |
Safely downcast to the exact type as a non-const reference.
const static_base< Bottom >::exact_type * tool::static_base< Bottom >::exact_ptr | ( | ) | const [inline, inherited] |
Safely downcast to the exact type as a const pointer.
static_base< Bottom >::exact_type * tool::static_base< Bottom >::exact_ptr | ( | ) | [inline, inherited] |
Safely downcast to the exact type as a non-const pointer.
void fill | ( | void * | it, | |
const pkthdr * | h, | |||
const void * | b | |||
) | [friend] |
Set a frame iterator's value according to a PCAP header and data.
Actually, this function should be a static method of frame_iterator. GCC does not allow that however since version 4.2.1. (Apparently it refuses to use a static method as template parameter for descriptor::loop.)
iterable_type* tool::iterator_base< Bottom >::i_ [protected, inherited] |
Pointer to the iterable object.
optional_value tool::iterator_base< Bottom >::v_ [protected, inherited] |
Current value, or boost::none_t
.