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

RmLinkedList< Type >::ItemNode Class Reference

Internal data structure to hold item and next/previous item's link. More...

#include <RmLinkedList.h>

List of all members.

Public Member Functions

 ItemNode (RmLinkedList< Type > *pParent)
 Constructor.

 ItemNode (RmLinkedList< Type > *pParent, Type data)
 Constructor.

 ~ItemNode ()
 Destructor.

RmLinkedList< Type > * GetParent ()
 Get parent list.

const RmLinkedList< Type > * GetParent () const
 Get parent list.

Type & GetData ()
 Data accessor.

const Type & GetData () const
 Data accessor.

void SetNext (ItemNode *pNext)
 Set next pointer.

void SetPrev (ItemNode *pPrev)
 Set previous pointer.

ItemNodeGetNext ()
 Get next node.

const ItemNodeGetNext () const
 Get next node.

ItemNodeGetPrev ()
 Get previous item.

const ItemNodeGetPrev () const
 Get previous item.

void * operator new (size_t nSize)
 new operator

void operator delete (void *pPtr)
 delete operator


Detailed Description

template<class Type>
class RmLinkedList< Type >::ItemNode

Internal data structure to hold item and next/previous item's link.

Internal Data to hold data and next, prev pointers


Constructor & Destructor Documentation

template<class Type>
RmLinkedList< Type >::ItemNode::ItemNode RmLinkedList< Type > *  pParent  )  [inline]
 

Constructor.

Construction

Parameters:
pParent Parent list that owns this data

template<class Type>
RmLinkedList< Type >::ItemNode::ItemNode RmLinkedList< Type > *  pParent,
Type  data
[inline]
 

Constructor.

Construction

Parameters:
pParent Parent list that owns this data
data Initial data

template<class Type>
RmLinkedList< Type >::ItemNode::~ItemNode  )  [inline]
 

Destructor.

Destructor


Member Function Documentation

template<class Type>
const Type& RmLinkedList< Type >::ItemNode::GetData  )  const [inline]
 

Data accessor.

Data Accessor

Reference to data that this node is holding

template<class Type>
Type& RmLinkedList< Type >::ItemNode::GetData  )  [inline]
 

Data accessor.

Data Accessor

Reference to data that this node is holding

template<class Type>
const ItemNode* RmLinkedList< Type >::ItemNode::GetNext  )  const [inline]
 

Get next node.

Gets the next item in a linked list

Returns:
Next node, NULL if this is the last item

template<class Type>
ItemNode* RmLinkedList< Type >::ItemNode::GetNext  )  [inline]
 

Get next node.

Gets the next item in a linked list

Returns:
Next node, NULL if this is the last item

template<class Type>
const RmLinkedList<Type>* RmLinkedList< Type >::ItemNode::GetParent  )  const [inline]
 

Get parent list.

Reyurn parent list class

Returns:
Parent list that owns this data

template<class Type>
RmLinkedList<Type>* RmLinkedList< Type >::ItemNode::GetParent  )  [inline]
 

Get parent list.

Reyurn parent list class

Returns:
Parent list that owns this data

template<class Type>
const ItemNode* RmLinkedList< Type >::ItemNode::GetPrev  )  const [inline]
 

Get previous item.

Gets the previous item in a linked list

Returns:
Privious node, NULL if this is the first item

template<class Type>
ItemNode* RmLinkedList< Type >::ItemNode::GetPrev  )  [inline]
 

Get previous item.

Gets the previous item in a linked list

Returns:
Privious node, NULL if this is the first item

template<class Type>
void RmLinkedList< Type >::ItemNode::operator delete void *  pPtr  )  [inline]
 

delete operator

Deleting this node

Parameters:
pPtr Pointer for node to delete

template<class Type>
void* RmLinkedList< Type >::ItemNode::operator new size_t  nSize  )  [inline]
 

new operator

Must override new and delete, so that memory alloc/dealloc occurs in consistent location

Parameters:
nSize Number of bytes to allocate
Returns:
Pointer to allocated memory

template<class Type>
void RmLinkedList< Type >::ItemNode::SetNext ItemNode pNext  )  [inline]
 

Set next pointer.

Sets the next item in a linked list

Parameters:
pNext Pointer to next node

template<class Type>
void RmLinkedList< Type >::ItemNode::SetPrev ItemNode pPrev  )  [inline]
 

Set previous pointer.

Sets the previous item in a linked list

Parameters:
pPrev Pointer to previous node


The documentation for this class was generated from the following file:
Generated on Fri Feb 25 16:09:07 2005 for RenderMonkey SDK by doxygen 1.3.6