#include <TreeNode.h>
Public Types | |
| enum | TreeNodeState |
| Contains the state that each TreeNode object can have. | |
Public Member Functions | |
| TreeNode (const NodeID &nodeID, FountainWireProtPtr conn=FountainWireProtPtr(NULL)) | |
| Default constructor. | |
| ~TreeNode () | |
| Destructor. | |
| TreeNode (const TreeNode &rhs) | |
| Copy constructor. | |
| TreeNode & | operator= (const TreeNode &rhs) |
| Assignment operator. | |
| bool | operator== (const TreeNode &rhs) const |
| bool | operator!= (const TreeNode &rhs) const |
| Inequality operator to compare the IDs of two TreeNode objects. | |
| bool | operator< (const TreeNode &rhs) const |
| Less than operator to lexically compare the IDs of two TreeNode objects. | |
| const std::string & | getHostname () const |
| operator NodeID () const | |
| Conversion operator to NodeID. | |
| unsigned int | getListenPort () const |
| Get the listen port. | |
| TreeNodeState | getState () const |
| Get the TreeNodeState. | |
| FountainWireProtPtr | getConnection () const |
| Get the connection. | |
| void | setState (TreeNodeState s) |
| Set the state of this node. | |
| void | setConnection (FountainWireProtPtr con) |
| Set this node's connection. | |
Static Public Member Functions | |
| static const char * | fountain_convert (TreeNodeState t) |
| Convert a TreeNodeState into a c-string. | |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const TreeNode &rhs) |
| ostream operator | |
TreeNode objexts are used to maintain information about all Fountain nodes present in the tree topology maintained by the master Fountain node.
|
||||||||||||
|
Default constructor.
|
|
|
Convert a TreeNodeState into a c-string.
|
|
|
Get the connection.
|
|
|
|
|
|
Get the listen port.
|
|
|
Get the TreeNodeState.
|
|
|
Inequality operator to compare the IDs of two TreeNode objects.
|
|
|
|
|
|
Set this node's connection.
|
|
|
Set the state of this node.
|
1.4.6