#include <KademliaNodeHandle.h>
Public Member Functions | |
MarkedNodeHandle () | |
Constructs an unspecified MarkedNodeHandle. | |
MarkedNodeHandle (const NodeHandle &handle, bool isAlive=false) | |
bool | getIsAlive () |
void | setIsAlive (bool isAlive) |
Protected Attributes | |
bool | isAlive |
Friends | |
std::ostream & | operator<< (std::ostream &os, const MarkedNodeHandle &n) |
Definition at line 108 of file KademliaNodeHandle.h.
MarkedNodeHandle::MarkedNodeHandle | ( | ) | [inline] |
Constructs an unspecified MarkedNodeHandle.
Definition at line 114 of file KademliaNodeHandle.h.
: NodeHandle() { isAlive = false; }
MarkedNodeHandle::MarkedNodeHandle | ( | const NodeHandle & | handle, | |
bool | isAlive = false | |||
) | [inline] |
Definition at line 120 of file KademliaNodeHandle.h.
: NodeHandle(handle) { this->isAlive = isAlive; }
bool MarkedNodeHandle::getIsAlive | ( | ) | [inline] |
Definition at line 126 of file KademliaNodeHandle.h.
Referenced by Kademlia::recursiveRoutingHook().
{ return isAlive; };
void MarkedNodeHandle::setIsAlive | ( | bool | isAlive | ) | [inline] |
Definition at line 127 of file KademliaNodeHandle.h.
Referenced by Kademlia::recursiveRoutingHook().
std::ostream& operator<< | ( | std::ostream & | os, | |
const MarkedNodeHandle & | n | |||
) | [friend] |
Definition at line 27 of file KademliaNodeHandle.cc.
bool MarkedNodeHandle::isAlive [protected] |
Definition at line 132 of file KademliaNodeHandle.h.
Referenced by getIsAlive(), MarkedNodeHandle(), and operator<<().