|
CatapultServer
v0.5.0.1 (Elephant)
|
A node in the catapult network. More...

Public Member Functions | |
| Node () | |
| Creates a default node. More... | |
| Node (const Key &identityKey, const NodeEndpoint &endpoint, const NodeMetadata &metadata) | |
| Creates a node around a unique identifier (identityKey) with endpoint and metadata. More... | |
| const Key & | identityKey () const |
| Gets the unique identifier (a public key). More... | |
| const NodeEndpoint & | endpoint () const |
| Gets the endpoint. More... | |
| const NodeMetadata & | metadata () const |
| Gets tne metadata. More... | |
| bool | operator== (const Node &rhs) const |
Returns true if this node is equal to rhs. More... | |
| bool | operator!= (const Node &rhs) const |
Returns true if this node is not equal to rhs. More... | |
Private Attributes | |
| Key | m_identityKey |
| NodeEndpoint | m_endpoint |
| NodeMetadata | m_metadata |
| std::string | m_printableName |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Node &node) |
| Insertion operator for outputting node to out. More... | |
A node in the catapult network.
| catapult::ionet::Node::Node | ( | ) |
Creates a default node.
| catapult::ionet::Node::Node | ( | const Key & | identityKey, |
| const NodeEndpoint & | endpoint, | ||
| const NodeMetadata & | metadata | ||
| ) |
Creates a node around a unique identifier (identityKey) with endpoint and metadata.
| const NodeEndpoint & catapult::ionet::Node::endpoint | ( | ) | const |
Gets the endpoint.

| const Key & catapult::ionet::Node::identityKey | ( | ) | const |
Gets the unique identifier (a public key).

| const NodeMetadata & catapult::ionet::Node::metadata | ( | ) | const |
Gets tne metadata.

| bool catapult::ionet::Node::operator!= | ( | const Node & | rhs | ) | const |
Returns true if this node is not equal to rhs.
| bool catapult::ionet::Node::operator== | ( | const Node & | rhs | ) | const |
Returns true if this node is equal to rhs.
|
friend |
Insertion operator for outputting node to out.
|
private |
|
private |
|
private |
|
private |