#include <slink-list.hpp>
Inheritance diagram for slinkList:
Definition at line 33 of file slink-list.hpp.
Public Member Functions | |
slinkList () | |
void | append (slinkNode *p) |
void | prepend (slinkNode *p) |
slinkNode * | getRoot () |
slinkList::slinkList | ( | ) |
General constructor.
Definition at line 27 of file slink-list.cpp.
00027 { 00028 root=new slinkNode(0); 00029 }
void slinkList::append | ( | slinkNode * | p | ) |
Add a node to the end of the list
p | pointer to the node to add. |
Definition at line 32 of file slink-list.cpp.
References slinkNode::getNext(), and slinkNode::setNext().
Referenced by materialBenefitList::addBenefit().
00032 { 00033 slinkNode* n = root; 00034 00035 while(n->getNext()!=0){ 00036 n = n->getNext(); 00037 } 00038 n->setNext(p); 00039 p->setNext(0); 00040 00041 }
Here is the call graph for this function:
Here is the caller graph for this function:
slinkNode * slinkList::getRoot | ( | ) |
Return the root pointer.
Definition at line 48 of file slink-list.cpp.
Referenced by materialBenefitList::addBenefit(), and materialBenefitList::XMLout().
Here is the caller graph for this function:
void slinkList::prepend | ( | slinkNode * | p | ) |
Add a node to the head of the list.
p | pointer to the node to add. |
Definition at line 43 of file slink-list.cpp.
References slinkNode::getNext(), and slinkNode::setNext().
Here is the call graph for this function: