slinkNode Class Reference

#include <slink-node.hpp>

Inheritance diagram for slinkNode:

Inheritance graph
[legend]
Collaboration diagram for slinkNode:

Collaboration graph
[legend]
List of all members.

Detailed Description

Generic node in a generic single linked list.

Definition at line 30 of file slink-node.hpp.

Public Member Functions

 slinkNode ()
 slinkNode (slinkNode *p)
slinkNodegetNext ()
void setNext (slinkNode *p)


Constructor & Destructor Documentation

slinkNode::slinkNode (  ) 

Generic constructor.

Definition at line 27 of file slink-node.cpp.

00027                     {
00028         next=0;
00029 }

slinkNode::slinkNode ( slinkNode p  ) 

Argumented constructor.

Parameters:
p pointer to the next node in the linked list.

Definition at line 31 of file slink-node.cpp.

00031                                 {
00032         next =p;
00033 }


Member Function Documentation

slinkNode * slinkNode::getNext (  ) 

Get the next node in the list

Returns:
pointer to the next node in the list.

Definition at line 39 of file slink-node.cpp.

Referenced by materialBenefitList::addBenefit(), slinkList::append(), slinkList::prepend(), and materialBenefitList::XMLout().

00039                              {
00040         return next;
00041 }

Here is the caller graph for this function:

void slinkNode::setNext ( slinkNode p  ) 

Set the next node in the list.

Parameters:
p pointer to the next node in the list.

Definition at line 35 of file slink-node.cpp.

Referenced by slinkList::append(), and slinkList::prepend().

00035                                    {
00036         next = p;
00037 }

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Mar 7 16:43:04 2008 for frpuniverse by  doxygen 1.4.7