Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ChordFingerTable Class Reference

#include <application-chord.h>

Inheritance diagram for ChordFingerTable:

Object List of all members.

Public Member Functions

 ChordFingerTable ()
 ChordFingerTable (unsigned int size)
 ~ChordFingerTable ()
ChordFinger GetFinger (unsigned int index)
 Method to read entries.
void SetFinger (unsigned int index, ChordFinger finger)
 Method to write entries.
ChordFinger GetSuccessor ()
void SetSuccessor (ChordFinger finger)
void SetSize (unsigned int)
 Sets the size of the finger table.
void Print ()
 Prints the finder table to cout.
void SetId (ChordId i)
 Sets the Id.

Protected Member Functions

void AllocTable ()
 Allocate space for table. If old table exists, delete it.

Protected Attributes

ChordFingertable
 Pointer to an array of fingers.
unsigned int table_size
ChordId cid
 The Id of the node associated with this table (for informational purposes and logging only).
ChordStatsstats

Constructor & Destructor Documentation

ChordFingerTable::ChordFingerTable  ) 
 

ChordFingerTable::ChordFingerTable unsigned int  size  ) 
 

ChordFingerTable::~ChordFingerTable  ) 
 


Member Function Documentation

void ChordFingerTable::AllocTable  )  [protected]
 

Allocate space for table. If old table exists, delete it.

ChordFinger ChordFingerTable::GetFinger unsigned int  index  )  [inline]
 

Method to read entries.

Note that the Chord paper defines the successor as finger[1], hence index is >= 1.

ChordFinger ChordFingerTable::GetSuccessor  )  [inline]
 

void ChordFingerTable::Print  ) 
 

Prints the finder table to cout.

void ChordFingerTable::SetFinger unsigned int  index,
ChordFinger  finger
[inline]
 

Method to write entries.

void ChordFingerTable::SetId ChordId  i  )  [inline]
 

Sets the Id.

void ChordFingerTable::SetSize unsigned  int  ) 
 

Sets the size of the finger table.

void ChordFingerTable::SetSuccessor ChordFinger  finger  )  [inline]
 


Member Data Documentation

ChordId ChordFingerTable::cid [protected]
 

The Id of the node associated with this table (for informational purposes and logging only).

ChordStats* ChordFingerTable::stats [protected]
 

ChordFinger* ChordFingerTable::table [protected]
 

Pointer to an array of fingers.

unsigned int ChordFingerTable::table_size [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 27 16:17:23 2008 for Georgia Tech Network Simulator (GTNetS) by  doxygen 1.3.9.1