#include <application-chord.h>
Inheritance diagram for ChordFingerTable:

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 | |
| ChordFinger * | table |
| 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). | |
| ChordStats * | stats |
|
|
|
|
|
|
|
|
|
|
|
Allocate space for table. If old table exists, delete it.
|
|
|
Method to read entries. Note that the Chord paper defines the successor as finger[1], hence index is >= 1. |
|
|
|
|
|
Prints the finder table to cout.
|
|
||||||||||||
|
Method to write entries.
|
|
|
Sets the Id.
|
|
|
Sets the size of the finger table.
|
|
|
|
|
|
The Id of the node associated with this table (for informational purposes and logging only).
|
|
|
|
|
|
Pointer to an array of fingers.
|
|
|
|
1.3.9.1