Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CPacketPool Class Reference

#include <Packet.h>

Inheritance diagram for CPacketPool:

CBTPacket::CBTPacketPool CEDPacket::CEDPacketPool CG1Packet::CG1PacketPool CG2Packet::CG2PacketPool List of all members.

Public Member Functions

 CPacketPool ()
virtual ~CPacketPool ()
CPacketNew ()
void Delete (CPacket *pPacket)

Protected Member Functions

void Clear ()
void NewPool ()
virtual void NewPoolImpl (int nSize, CPacket *&pPool, int &nPitch)=0
virtual void FreePoolImpl (CPacket *pPool)=0

Protected Attributes

CPacketm_pFree
DWORD m_nFree
CCriticalSection m_pSection
CPtrArray m_pPools

Constructor & Destructor Documentation

CPacketPool::CPacketPool  ) 
 

Definition at line 586 of file Packet.cpp.

References m_nFree, m_pFree, and NULL.

CPacketPool::~CPacketPool  )  [virtual]
 

Definition at line 594 of file Packet.cpp.

References Clear().


Member Function Documentation

void CPacketPool::Clear  )  [protected]
 

Definition at line 604 of file Packet.cpp.

References FreePoolImpl(), m_nFree, m_pFree, m_pPools, and NULL.

Referenced by CBTPacket::CBTPacketPool::~CBTPacketPool(), CEDPacket::CEDPacketPool::~CEDPacketPool(), CG1Packet::CG1PacketPool::~CG1PacketPool(), CG2Packet::CG2PacketPool::~CG2PacketPool(), and ~CPacketPool().

void CPacketPool::Delete CPacket pPacket  )  [inline]
 

Definition at line 487 of file Packet.h.

References m_nFree, CPacket::m_nReference, m_pFree, CPacket::m_pNext, m_pSection, and NULL.

Referenced by CG2Packet::Delete(), CG1Packet::Delete(), CEDPacket::Delete(), and CBTPacket::Delete().

virtual void CPacketPool::FreePoolImpl CPacket pPool  )  [protected, pure virtual]
 

Implemented in CBTPacket::CBTPacketPool, CEDPacket::CEDPacketPool, CG1Packet::CG1PacketPool, and CG2Packet::CG2PacketPool.

Referenced by Clear().

CPacket* CPacketPool::New  )  [inline]
 

Definition at line 460 of file Packet.h.

References CPacket::AddRef(), m_nFree, m_pFree, CPacket::m_pNext, m_pSection, NewPool(), and CPacket::Reset().

Referenced by CG2Packet::New(), CG1Packet::New(), CEDPacket::New(), and CBTPacket::New().

void CPacketPool::NewPool  )  [protected]
 

Definition at line 629 of file Packet.cpp.

References m_nFree, m_pFree, CPacket::m_pNext, m_pPools, NewPoolImpl(), and NULL.

Referenced by New().

virtual void CPacketPool::NewPoolImpl int  nSize,
CPacket *&  pPool,
int &  nPitch
[protected, pure virtual]
 

Implemented in CBTPacket::CBTPacketPool, CEDPacket::CEDPacketPool, CG1Packet::CG1PacketPool, and CG2Packet::CG2PacketPool.

Referenced by NewPool().


Member Data Documentation

DWORD CPacketPool::m_nFree [protected]
 

Definition at line 434 of file Packet.h.

Referenced by Clear(), CPacketPool(), Delete(), New(), and NewPool().

CPacket* CPacketPool::m_pFree [protected]
 

Definition at line 433 of file Packet.h.

Referenced by Clear(), CPacketPool(), Delete(), New(), and NewPool().

CPtrArray CPacketPool::m_pPools [protected]
 

Definition at line 442 of file Packet.h.

Referenced by Clear(), and NewPool().

CCriticalSection CPacketPool::m_pSection [protected]
 

Definition at line 439 of file Packet.h.

Referenced by Delete(), and New().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:10 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2