libtins  3.4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
Tins::SnifferIterator Class Reference

Iterates over packets sniffed by a BaseSniffer. More...

#include <sniffer.h>

Inheritance diagram for Tins::SnifferIterator:

Public Member Functions

 SnifferIterator (BaseSniffer *sniffer=0)
 
SnifferIteratoroperator++ ()
 
SnifferIterator operator++ (int)
 
Packetoperator* ()
 
Packetoperator-> ()
 
bool operator== (const SnifferIterator &rhs) const
 
bool operator!= (const SnifferIterator &rhs) const
 

Detailed Description

Iterates over packets sniffed by a BaseSniffer.

Constructor & Destructor Documentation

Tins::SnifferIterator::SnifferIterator ( BaseSniffer sniffer = 0)
inline

Constructs a SnifferIterator.

Parameters
snifferThe sniffer to iterate.

Member Function Documentation

bool Tins::SnifferIterator::operator!= ( const SnifferIterator rhs) const
inline

Compares this iterator for in-equality.

Parameters
rhsThe iterator to be compared to.
Packet& Tins::SnifferIterator::operator* ( )
inline

Dereferences the iterator.

Returns
reference to the current packet.
SnifferIterator& Tins::SnifferIterator::operator++ ( )
inline

Advances the iterator.

SnifferIterator Tins::SnifferIterator::operator++ ( int  )
inline

Advances the iterator.

Packet* Tins::SnifferIterator::operator-> ( )
inline

Dereferences the iterator.

Returns
pointer to the current packet.
bool Tins::SnifferIterator::operator== ( const SnifferIterator rhs) const
inline

Compares this iterator for equality.

Parameters
rhsThe iterator to be compared to.

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