sparseArrayNode Class Reference

#include <sparse-array-node.hpp>

Inheritance diagram for sparseArrayNode:

Inheritance graph
[legend]
Collaboration diagram for sparseArrayNode:

Collaboration graph
[legend]
List of all members.

Detailed Description

This is a node within a sparseArray.

See also:
sparseArray

Definition at line 58 of file sparse-array-node.hpp.

Public Member Functions

 sparseArrayNode ()
 sparseArrayNode (int row, int column)
sparseArrayNodegetRight ()
void setRight (sparseArrayNode *)
sparseArrayNodegetDown ()
void setDown (sparseArrayNode *)
int getColumn ()
void setColumn (int)
int getRow ()
void setRow (int)


Constructor & Destructor Documentation

sparseArrayNode::sparseArrayNode (  ) 

A non parametized constructor

Definition at line 44 of file sparse-array-node.cpp.

00044                                 {
00045         right=0;
00046         down=0;
00047         row=-1;
00048         column=-1;
00049         
00050 };


Member Function Documentation

int sparseArrayNode::getColumn (  ) 

Return the column value for this node.

Returns:
integer value for the column of this node.

Definition at line 63 of file sparse-array-node.cpp.

Referenced by sparseArray::add(), sparseArray::addAt(), and subsector::addParsec().

00063                               {
00064         return column;
00065 }

Here is the caller graph for this function:

sparseArrayNode * sparseArrayNode::getDown (  ) 

No, we aren't asking the computer to get funky. This is to get the pointer to the node "below" this node in the sparse array.

Returns:
pointer to the sparseArrayNode "below" this one.

Definition at line 79 of file sparse-array-node.cpp.

Referenced by sparseArray::addAt(), and sparseArray::findAt().

00079                                          {
00080         return down;
00081 }

Here is the caller graph for this function:

sparseArrayNode * sparseArrayNode::getRight (  ) 

Returns a pointer to the node to the "right" of the current node. Null if there isn't one.

Returns:
pointer to a sparseArrayNode or NULL

Definition at line 87 of file sparse-array-node.cpp.

00087                                           {
00088         return right;
00089 }

int sparseArrayNode::getRow (  ) 

Get the value for the row of this node.

Returns:
integer value for the row of this node.

Definition at line 71 of file sparse-array-node.cpp.

Referenced by sparseArray::add(), sparseArray::addAt(), subsector::addParsec(), parsec::asText(), and sparseArray::findAt().

00071                            {
00072         return row;
00073 }

Here is the caller graph for this function:

void sparseArrayNode::setColumn ( int   ) 

set the value for the column for this node.

Parameters:
integer value to set the column to.

Definition at line 59 of file sparse-array-node.cpp.

Referenced by sparseArray::addAt().

00059                                     {
00060         column=c;
00061 }

Here is the caller graph for this function:

void sparseArrayNode::setDown ( sparseArrayNode  ) 

Set the array "down" from this node to the value passed.

Parameters:
pointer to a sparseArrayNode that will be put "below" this one.

Definition at line 75 of file sparse-array-node.cpp.

Referenced by sparseArray::addAt().

00075                                                {
00076         down=d;
00077 }

Here is the caller graph for this function:

void sparseArrayNode::setRight ( sparseArrayNode  ) 

Sets the value of the sparseArrayNode node to the "right" of the current node within the sparse array.

Parameters:
pointer to a sparseArrayNode

Definition at line 83 of file sparse-array-node.cpp.

00083                                                 {
00084         right=r;
00085 }

void sparseArrayNode::setRow ( int   ) 

Set the value of the row fro this node.

Parameters:
integer value of the row for this node.

Definition at line 67 of file sparse-array-node.cpp.

Referenced by sparseArray::addAt().

00067                                  {
00068         row=r;
00069 }

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:08 2008 for frpuniverse by  doxygen 1.4.7