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

PointeredStackItem Class Reference

#include <Stack.h>

Inheritance diagram for PointeredStackItem:

ContainingStackItem< PointeredStackItem > List of all members.

Detailed Description

A PointeredStackItem is one item stored in the PointeredStack.

It may be added twice to the same stack and be added to two different stacks, since the pointering technique is designed for this. This results in a little less performance, and if you require a very good one, use the ContainingStack and the ContainingStackItem instead.

See also:
ContainingStack

ContainingStackItem

Author:
Thomas Jacob

Definition at line 253 of file Stack.h.

Public Member Functions

void * GetData () const
 Returns the stored data of the item.

 PointeredStackItem ()
 Creates a new PointeredStackItem.

void SetData (void *Data)
 Sets the data to be stored in the item.

virtual ~PointeredStackItem ()
 Destroys the PointeredStackItem.


Private Attributes

void * Data
 The application's data to be stored in the item,.


Constructor & Destructor Documentation

PointeredStackItem  ) 
 

Creates a new PointeredStackItem.

virtual ~PointeredStackItem  )  [virtual]
 

Destroys the PointeredStackItem.


Member Function Documentation

void* GetData  )  const [inline]
 

Returns the stored data of the item.

Returns:
The stored data of the item.

void SetData void *  Data  )  [inline]
 

Sets the data to be stored in the item.

Parameters:
Data The new data to be stored.


Member Data Documentation

void* Data [private]
 

The application's data to be stored in the item,.

Definition at line 260 of file Stack.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 3 00:23:40 2006 for ToolBox by doxygen 1.3.6