#include <sparse-vector-node.hpp>
Inheritance diagram for sparseVectorNode:
Definition at line 36 of file sparse-vector-node.hpp.
Public Member Functions | |
sparseVectorNode () | |
sparseVectorNode (int ix, sparseVectorNode *p) | |
sparseVectorNode * | getNext () |
void | setNext (sparseVectorNode *p) |
int | getIndex () |
void | setIndex (int ix) |
char * | dumpAsXML () |
char * | nodeSignature () |
sparseVectorNode::sparseVectorNode | ( | ) | [inline] |
Standard constructor with no parameters passed.
Definition at line 43 of file sparse-vector-node.hpp.
00043 { 00044 next=(sparseVectorNode *)0; 00045 index=-1; 00046 };
sparseVectorNode::sparseVectorNode | ( | int | ix, | |
sparseVectorNode * | p | |||
) | [inline] |
Parametized constructor.
ix | -- integer value to assign to the index value | |
p | -- pointer to a sparseVectorNode to assign as "next." |
Definition at line 55 of file sparse-vector-node.hpp.
char * sparseVectorNode::dumpAsXML | ( | ) |
Dump the current node as XML. This will be overloaded by child classes
Reimplemented in orbitPlace.
Definition at line 31 of file sparse-vector-node.cpp.
References getIndex().
00031 { 00032 char * s; 00033 00034 s=(char *) malloc(129); // 128 charactters plus trailing null. 00035 //~ s[0]='\0'; 00036 00037 int index = this->getIndex(); 00038 sprintf(s,"<sparseVectorNode>\n\t<index>%d</index>\n<sparseVectorNode>\n", 00039 index); 00040 return s; 00041 }
Here is the call graph for this function:
int sparseVectorNode::getIndex | ( | ) | [inline] |
Get the value of the index for this node.
Definition at line 81 of file sparse-vector-node.hpp.
Referenced by sparseVector::addAt(), dumpAsXML(), sparseVector::findAt(), orbitPlace::getOrbit(), and star::getOrbit().
Here is the caller graph for this function:
sparseVectorNode* sparseVectorNode::getNext | ( | ) | [inline] |
Retrieves the pointer to the next node in the list.
Definition at line 66 of file sparse-vector-node.hpp.
Referenced by sparseVector::addAt(), sparseVector::dumpAsXML(), and sparseVector::findAt().
Here is the caller graph for this function:
char * sparseVectorNode::nodeSignature | ( | ) |
Each node type has a signature no matter what underlying child class has overloaded this class. This method is meant to be overloaded and will be a string representation of what the class acutally is. This reminiscent of Java's Object.Class construction.
Reimplemented in orbitPlace, and star.
Definition at line 43 of file sparse-vector-node.cpp.
void sparseVectorNode::setIndex | ( | int | ix | ) | [inline] |
Set the index value for this node.
ix | -- integer value for the new index value. |
Definition at line 88 of file sparse-vector-node.hpp.
Referenced by orbitPlace::setOrbit(), and star::setOrbit().
Here is the caller graph for this function:
void sparseVectorNode::setNext | ( | sparseVectorNode * | p | ) | [inline] |
Set the current node's pointer to the next node.
p | -- pointer to a sparseVectorNode which is the next in the list. |
Definition at line 74 of file sparse-vector-node.hpp.
Referenced by sparseVector::addAt().
Here is the caller graph for this function: