#include <wscout_pcap_trace.hh>
Public Types | |
Iterator types. | |
typedef ssize_t | difference_type |
typedef Packet | value_type |
typedef value_type * | pointer_type |
typedef value_type & | reference_type |
typedef std::input_iterator_tag | iterator_category |
Public Member Functions | |
PacketIterator (Trace &t, bool end_of_trace=true) | |
Equality comparison. | |
bool | operator== (const PacketIterator &rhs) const |
bool | operator!= (const PacketIterator &rhs) const |
Value access. | |
const Packet & | operator * () const |
const Packet * | operator-> () const |
Increment. | |
PacketIterator & | operator++ () |
PacketIterator | operator++ (int) |
Classes | |
struct | Packet |
PCAP packet. More... |
wscout::pcap::Trace::PacketIterator::PacketIterator | ( | Trace & | t, | |
bool | end_of_trace = true | |||
) |
Build an iterator over PCAP packets from a PCAP trace.
If end_of_trace
, then build an iterator that represents the trace's end position.