The C++ framework for developing highly scalable, high performance servers on Windows platforms.

TNodeList Class Template Reference
[Templates]

Inheritance diagram for TNodeList:
Collaboration diagram for TNodeList:

List of all members.


Detailed Description

template<class T>
class JetByteTools::Core::TNodeList< T >

A template wrapper that makes an instance of CNodeList typesafe with respect of the classes stored within it. Simply wraps the CNodeList::Node access methods to work in terms of the template T rather than any class that happens to derive from CNodeList::Node.

Public Member Functions

T * PopNode ()
 Pop the head of the list and return it. Returns 0 if the list is empty.
T * Head () const
 Return the head of the list. Returns 0 if the list is empty.
void PushNode (Node *pNode)
 Push the given node onto the list.
void InsertAfter (Node *pNode, Node *pNewNode)
 Insert pNewNode after pNode in the list. If pNode is 0 then this degenerates to a PushNode().
unsigned long Count () const
 Returns the number of nodes in the list.
bool IsEmpty () const
 Returns true if the list contains no nodes.

Static Public Member Functions

static T * Next (const T *pNode)

Member Function Documentation

T * PopNode (  )  [inline]

Pop the head of the list and return it. Returns 0 if the list is empty.

Reimplemented from CNodeList.

T * Head (  )  const [inline]

Return the head of the list. Returns 0 if the list is empty.

Reimplemented from CNodeList.

T * Next ( const T *  pNode  )  [inline, static]

void PushNode ( Node pNode  )  [inherited]

Push the given node onto the list.

void InsertAfter ( Node pNode,
Node pNewNode 
) [inherited]

Insert pNewNode after pNode in the list. If pNode is 0 then this degenerates to a PushNode().

unsigned long Count (  )  const [inherited]

Returns the number of nodes in the list.

bool IsEmpty (  )  const [inherited]

Returns true if the list contains no nodes.


Generated on Sun Sep 12 19:08:44 2021 for The Server Framework - v7.4 by doxygen 1.5.3