Pol  Revision:cb584c9
Pol::Network::PacketWriterDefs::PacketQueueSingle Class Reference

#include <packets.h>

+ Inheritance diagram for Pol::Network::PacketWriterDefs::PacketQueueSingle:

Public Member Functions

 PacketQueueSingle ()
virtual ~PacketQueueSingle ()
virtual void Add (PacketInterface *pkt) POL_OVERRIDE
virtual size_t Count () const POL_OVERRIDE
virtual size_t estimateSize () const POL_OVERRIDE
virtual PacketInterfaceGetNext (u8 id, u16 sub=0) POL_OVERRIDE
- Public Member Functions inherited from Pol::Network::PacketQueue
 PacketQueue ()
virtual ~PacketQueue ()
virtual PacketInterfaceQueueMapGetSubs ()
virtual bool HasSubs () const

Private Attributes

Clib::SpinLock _lock
PacketInterfaceQueue _packets

Detailed Description

Definition at line 44 of file packets.h.

Constructor & Destructor Documentation

Pol::Network::PacketQueueSingle::PacketQueueSingle ( )

Definition at line 164 of file packets.cpp.

Referenced by estimateSize().

Pol::Network::PacketQueueSingle::~PacketQueueSingle ( )

Definition at line 182 of file packets.cpp.

References _lock, and _packets.

Member Function Documentation

void Pol::Network::PacketQueueSingle::Add ( PacketInterface pkt)

Reimplemented from Pol::Network::PacketQueue.

Definition at line 193 of file packets.cpp.

References _lock, _packets, and MAX_PACKETS_INSTANCES.

virtual size_t Pol::Network::PacketWriterDefs::PacketQueueSingle::Count ( ) const

Reimplemented from Pol::Network::PacketQueue.

Definition at line 57 of file packets.h.

References estimateSize(), and POL_OVERRIDE.

size_t Pol::Network::PacketQueueSingle::estimateSize ( ) const
PacketInterface * Pol::Network::PacketQueueSingle::GetNext ( u8  id,
u16  sub = 0 

Member Data Documentation

Clib::SpinLock Pol::Network::PacketWriterDefs::PacketQueueSingle::_lock

Definition at line 52 of file packets.h.

Referenced by Add(), estimateSize(), GetNext(), and ~PacketQueueSingle().

PacketInterfaceQueue Pol::Network::PacketWriterDefs::PacketQueueSingle::_packets

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