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

Abstraction of AdditionalDescription. More...

#include <additional-description.hpp>


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
bool empty () 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

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

Member Typedef Documentation

◆ iterator

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

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

◆ const_iterator

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

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

Constructor & Destructor Documentation

◆ AdditionalDescription() [1/2]

ndn::security::v2::AdditionalDescription::AdditionalDescription ( )

Create an empty AdditionalDescription.

◆ AdditionalDescription() [2/2]

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

Create AdditionalDescription from block.

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

References wireDecode().

Member Function Documentation

◆ get()

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

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

◆ set()

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

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

◆ has()

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

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

◆ size()

size_t ndn::security::v2::AdditionalDescription::size ( ) const

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

◆ empty()

bool ndn::security::v2::AdditionalDescription::empty ( ) const

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

◆ begin() [1/2]

AdditionalDescription::iterator ndn::security::v2::AdditionalDescription::begin ( )

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

◆ end() [1/2]

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

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

◆ begin() [2/2]

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

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

◆ end() [2/2]

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

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

◆ wireEncode() [1/2]

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

◆ wireEncode() [2/2]

const Block & ndn::security::v2::AdditionalDescription::wireEncode ( ) const

Encode ValidityPeriod into TLV block.

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

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

◆ wireDecode()

◆ operator==()

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

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

◆ operator!=()

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

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

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