Classes | Public Member Functions | List of all members
ndn::DigestTree::Node Class Reference

Classes

class  Compare
 Compare shared_ptrs to Node based on dataPrefix_ and seqno_session_. More...
 

Public Member Functions

 Node (const std::string &dataPrefix, int sessionNo, int sequenceNo)
 Create a new DigestTree::Node with the given fields and compute the digest. More...
 
const std::string & getDataPrefix () const
 
int getSessionNo () const
 
int getSequenceNo () const
 
const std::string & getDigest () const
 Get the digest. More...
 
void setSequenceNo (int sequenceNo)
 Set the sequence number and recompute the digest. More...
 

Constructor & Destructor Documentation

ndn::DigestTree::Node::Node ( const std::string &  dataPrefix,
int  sessionNo,
int  sequenceNo 
)
inline

Create a new DigestTree::Node with the given fields and compute the digest.

Parameters
dataPrefixThe data prefix.
sessionNoThe sequence number.
sequenceNoThe session number.

Member Function Documentation

const std::string& ndn::DigestTree::Node::getDigest ( ) const
inline

Get the digest.

Returns
The digest as a hex string.
void ndn::DigestTree::Node::setSequenceNo ( int  sequenceNo)
inline

Set the sequence number and recompute the digest.

Parameters
sequenceNoThe new sequence number.

The documentation for this class was generated from the following files: