ProphetNode stores state for a remote node as identified by remote_eid. More...
#include <ProphetNode.h>
Public Member Functions | |
ProphetNode (const prophet::NodeParams *params=NULL) | |
Default constructor. | |
ProphetNode (const oasys::Builder &) | |
Deserialization and testing constructor. | |
virtual | ~ProphetNode () |
Destructor. | |
const EndpointID & | remote_eid () |
Accessors. | |
ProphetNode & | operator= (const ProphetNode &p) |
Assignment operator. | |
const EndpointID & | durable_key () |
Hook for the generic durable table implementation to know what the key is for the database. | |
void | serialize (oasys::SerializeAction *a) |
Virtual from SerializableObject. | |
ProphetNode (const ProphetNode &node) | |
Copy constructor. | |
ProphetNode (const prophet::Node &node) | |
Copy constructor. | |
Protected Member Functions | |
void | set_eid (const EndpointID &eid) |
Mutator. | |
Protected Attributes | |
EndpointID | remote_eid_ |
EID of remote peer represented by this route. | |
Friends | |
class | ProphetNodeList |
for access to prophet::Node mutators |
ProphetNode stores state for a remote node as identified by remote_eid.
Definition at line 31 of file ProphetNode.h.
dtn::ProphetNode::ProphetNode | ( | const prophet::NodeParams * | params = NULL |
) |
Default constructor.
Definition at line 25 of file ProphetNode.cc.
dtn::ProphetNode::ProphetNode | ( | const ProphetNode & | node | ) |
Copy constructor.
Definition at line 30 of file ProphetNode.cc.
dtn::ProphetNode::ProphetNode | ( | const prophet::Node & | node | ) |
Copy constructor.
Definition at line 37 of file ProphetNode.cc.
dtn::ProphetNode::ProphetNode | ( | const oasys::Builder & | ) |
Deserialization and testing constructor.
Definition at line 44 of file ProphetNode.cc.
virtual dtn::ProphetNode::~ProphetNode | ( | ) | [inline, virtual] |
Destructor.
Definition at line 54 of file ProphetNode.h.
const EndpointID& dtn::ProphetNode::durable_key | ( | ) | [inline] |
Hook for the generic durable table implementation to know what the key is for the database.
Definition at line 78 of file ProphetNode.h.
References remote_eid().
ProphetNode& dtn::ProphetNode::operator= | ( | const ProphetNode & | p | ) | [inline] |
const EndpointID& dtn::ProphetNode::remote_eid | ( | ) | [inline] |
Accessors.
Definition at line 59 of file ProphetNode.h.
References dtn::EndpointID::assign(), prophet::Node::dest_id_, and remote_eid_.
Referenced by durable_key().
void dtn::ProphetNode::serialize | ( | oasys::SerializeAction * | a | ) |
Virtual from SerializableObject.
Definition at line 51 of file ProphetNode.cc.
References prophet::Node::age_, dtn::EndpointID::assign(), dtn::EndpointID::c_str(), prophet::Node::custody_, prophet::Node::dest_id_, prophet::Node::internet_gateway_, prophet::Node::p_value_, prophet::Node::relay_, remote_eid_, and prophet::Node::set_dest_id().
void dtn::ProphetNode::set_eid | ( | const EndpointID & | eid | ) | [inline, protected] |
Mutator.
Definition at line 91 of file ProphetNode.h.
References dtn::EndpointID::assign(), remote_eid_, prophet::Node::set_dest_id(), and dtn::EndpointID::str().
friend class ProphetNodeList [friend] |
for access to prophet::Node mutators
Definition at line 86 of file ProphetNode.h.
EndpointID dtn::ProphetNode::remote_eid_ [protected] |
EID of remote peer represented by this route.
Definition at line 97 of file ProphetNode.h.
Referenced by operator=(), remote_eid(), serialize(), and set_eid().