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 ( )
virtual

Definition at line 182 of file packets.cpp.

References _lock, and _packets.

Member Function Documentation

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

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
inlinevirtual

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
virtual
PacketInterface * Pol::Network::PacketQueueSingle::GetNext ( u8  id,
u16  sub = 0 
)
virtual

Member Data Documentation

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

Definition at line 52 of file packets.h.

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

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

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