Click
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FlowBufferIter Class Reference

This iterator allows to iterate over the packets in a FlowBuffer. More...

#include <flowbuffer.hh>

Public Member Functions

 FlowBufferIter (FlowBuffer *_flowBuffer, Packet *_entry)
 Construct a FlowBufferIter.
 
bool operator== (const FlowBufferIter &other) const
 Compare two FlowBufferIter.
 
bool operator!= (const FlowBufferIter &other) const
 Compare two FlowBufferIter.
 
WritablePacket *& operator* ()
 Return the packet to which this iterator points.
 
FlowBufferIter & operator++ ()
 Move the iterator to the next packet in the buffer.
 

Detailed Description

This iterator allows to iterate over the packets in a FlowBuffer.

Constructor & Destructor Documentation

◆ FlowBufferIter()

FlowBufferIter::FlowBufferIter ( FlowBuffer *  _flowBuffer,
Packet *  _entry 
)
inline

Construct a FlowBufferIter.

Parameters
_flowBufferThe FlowBuffer to which this iterator is linked
_entryThe entry in the buffer to which this iterator points

Member Function Documentation

◆ operator==()

bool FlowBufferIter::operator== ( const FlowBufferIter &  other) const
inline

Compare two FlowBufferIter.

Parameters
otherThe FlowBufferIter to be compared to
Returns
True if the two iterators point to the same packet

◆ operator!=()

bool FlowBufferIter::operator!= ( const FlowBufferIter &  other) const
inline

Compare two FlowBufferIter.

Parameters
otherThe FlowBufferIter to be compared to
Returns
False if the two iterators point to the same packet

◆ operator*()

WritablePacket *& FlowBufferIter::operator* ( )
inline

Return the packet to which this iterator points.

Returns
The packet to which this iterator points

◆ operator++()

FlowBufferIter & FlowBufferIter::operator++ ( )
inline

Move the iterator to the next packet in the buffer.

Returns
The iterator moved

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