NodeRecord Class Reference

#include <SimpleNodeEntry.h>

List of all members.

Public Member Functions

 NodeRecord ()
 ~NodeRecord ()
 NodeRecord (const NodeRecord &nodeRecord)
NodeRecordoperator= (const NodeRecord &nodeRecord)
void debugOutput (int dim)
uint8_t getDim () const

Static Public Member Functions

static void setDim (uint8_t dimension)

Public Attributes

double * coords

Static Public Attributes

static uint8_t dim

Detailed Description

Definition at line 36 of file SimpleNodeEntry.h.


Constructor & Destructor Documentation

NodeRecord::NodeRecord (  ) 

Definition at line 37 of file SimpleNodeEntry.cc.

00038 {
00039     coords = new double[dim];
00040 }

NodeRecord::~NodeRecord (  ) 

Definition at line 42 of file SimpleNodeEntry.cc.

00043 {
00044     delete[] coords;
00045     coords = NULL;
00046 }

NodeRecord::NodeRecord ( const NodeRecord nodeRecord  ) 

Definition at line 48 of file SimpleNodeEntry.cc.

00049 {
00050     coords = new double[dim];
00051     for (uint32_t i = 0; i < dim; ++i)
00052         coords[i] = nodeRecord.coords[i];
00053 }


Member Function Documentation

void NodeRecord::debugOutput ( int  dim  ) 
uint8_t NodeRecord::getDim (  )  const [inline]

Definition at line 50 of file SimpleNodeEntry.h.

Referenced by SimpleNodeEntry::getDim().

00050 { return dim; };

NodeRecord & NodeRecord::operator= ( const NodeRecord nodeRecord  ) 

Definition at line 55 of file SimpleNodeEntry.cc.

00056 {
00057     delete[] coords;
00058     coords = new double[dim];
00059     for (uint32_t i = 0; i < dim; ++i)
00060         coords[i] = nodeRecord.coords[i];
00061 
00062     return *this;
00063 }

static void NodeRecord::setDim ( uint8_t  dimension  )  [inline, static]

Definition at line 49 of file SimpleNodeEntry.h.

Referenced by SimpleUnderlayConfigurator::initializeUnderlay(), and SimpleUnderlayConfigurator::parseCoordFile().

00049 { dim = dimension; };


Member Data Documentation

uint8_t NodeRecord::dim [static]

The documentation for this class was generated from the following files:
Generated on Wed May 26 16:21:18 2010 for OverSim by  doxygen 1.6.3