NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::AdditionalDescription Class Reference

Abstraction of AdditionalDescription. More...

#include <additional-description.hpp>

Classes

class  Error
 

Public Types

typedef std::map< std::string, std::string >::iterator iterator
 
typedef std::map< std::string, std::string >::const_iterator const_iterator
 

Public Member Functions

 AdditionalDescription ()=default
 Create an empty AdditionalDescription. More...
 
 AdditionalDescription (const Block &block)
 Create AdditionalDescription from block. More...
 
const std::string & get (const std::string &key) const
 
void set (const std::string &key, const std::string &value)
 
bool has (const std::string &key) const
 
size_t size () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 Fast encoding or block size estimation. More...
 
const BlockwireEncode () const
 Encode ValidityPeriod into TLV block. More...
 
void wireDecode (const Block &wire)
 Decode ValidityPeriod from TLV block. More...
 
bool operator== (const AdditionalDescription &other) const
 
bool operator!= (const AdditionalDescription &other) const
 

Detailed Description

Abstraction of AdditionalDescription.

See also
docs/tutorials/certificate-format.rst

Definition at line 37 of file additional-description.hpp.

Member Typedef Documentation

typedef std::map<std::string, std::string>::iterator ndn::security::AdditionalDescription::iterator

Definition at line 50 of file additional-description.hpp.

typedef std::map<std::string, std::string>::const_iterator ndn::security::AdditionalDescription::const_iterator

Definition at line 51 of file additional-description.hpp.

Constructor & Destructor Documentation

ndn::security::AdditionalDescription::AdditionalDescription ( )
default

Create an empty AdditionalDescription.

ndn::security::AdditionalDescription::AdditionalDescription ( const Block block)
explicit

Create AdditionalDescription from block.

Definition at line 39 of file additional-description.cpp.

References wireDecode().

Member Function Documentation

const std::string & ndn::security::AdditionalDescription::get ( const std::string &  key) const

Definition at line 45 of file additional-description.cpp.

void ndn::security::AdditionalDescription::set ( const std::string &  key,
const std::string &  value 
)

Definition at line 55 of file additional-description.cpp.

bool ndn::security::AdditionalDescription::has ( const std::string &  key) const

Definition at line 61 of file additional-description.cpp.

size_t ndn::security::AdditionalDescription::size ( ) const
inline
AdditionalDescription::iterator ndn::security::AdditionalDescription::begin ( )

Definition at line 67 of file additional-description.cpp.

Referenced by size().

AdditionalDescription::iterator ndn::security::AdditionalDescription::end ( )

Definition at line 73 of file additional-description.cpp.

Referenced by size().

AdditionalDescription::const_iterator ndn::security::AdditionalDescription::begin ( ) const

Definition at line 79 of file additional-description.cpp.

AdditionalDescription::const_iterator ndn::security::AdditionalDescription::end ( ) const

Definition at line 85 of file additional-description.cpp.

template<encoding::Tag TAG>
size_t ndn::security::AdditionalDescription::wireEncode ( EncodingImpl< TAG > &  encoder) const
const Block & ndn::security::AdditionalDescription::wireEncode ( ) const

Encode ValidityPeriod into TLV block.

Definition at line 118 of file additional-description.cpp.

References ndn::Block::hasWire(), and ndn::Block::parse().

Referenced by size().

bool ndn::security::AdditionalDescription::operator== ( const AdditionalDescription other) const

Definition at line 169 of file additional-description.cpp.

Referenced by size().

bool ndn::security::AdditionalDescription::operator!= ( const AdditionalDescription other) const

Definition at line 175 of file additional-description.cpp.

Referenced by size().


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