Loading...
Searching...
No Matches
nlsr::PrefixInfo Class Reference

#include <name-prefix-list.hpp>

+ Inheritance diagram for nlsr::PrefixInfo:
+ Collaboration diagram for nlsr::PrefixInfo:

Classes

class  Error
 

Public Member Functions

 PrefixInfo ()=default
 
 PrefixInfo (const ndn::Block &block)
 
 PrefixInfo (const ndn::Name &name, double cost)
 
double getCost () const
 
const ndn::Name & getName () const
 
void wireDecode (const ndn::Block &wire)
 
const ndn::Block & wireEncode () const
 
template<ndn::encoding::Tag TAG>
size_t wireEncode (ndn::EncodingImpl< TAG > &block) const
 

Friends

std::ostream & operator<< (std::ostream &os, const PrefixInfo &info)
 
bool operator== (const PrefixInfo &lhs, const PrefixInfo &rhs)
 

Detailed Description

Definition at line 39 of file name-prefix-list.hpp.

Constructor & Destructor Documentation

◆ PrefixInfo() [1/3]

nlsr::PrefixInfo::PrefixInfo ( )
default

◆ PrefixInfo() [2/3]

nlsr::PrefixInfo::PrefixInfo ( const ndn::Block &  block)
inline

Definition at line 50 of file name-prefix-list.hpp.

◆ PrefixInfo() [3/3]

nlsr::PrefixInfo::PrefixInfo ( const ndn::Name &  name,
double  cost 
)
inline

Definition at line 55 of file name-prefix-list.hpp.

Member Function Documentation

◆ getCost()

double nlsr::PrefixInfo::getCost ( ) const
inline

Definition at line 66 of file name-prefix-list.hpp.

◆ getName()

const ndn::Name & nlsr::PrefixInfo::getName ( ) const
inline

Definition at line 61 of file name-prefix-list.hpp.

◆ wireDecode()

void nlsr::PrefixInfo::wireDecode ( const ndn::Block &  wire)

Definition at line 160 of file name-prefix-list.cpp.

◆ wireEncode() [1/2]

const ndn::Block & nlsr::PrefixInfo::wireEncode ( ) const

Definition at line 142 of file name-prefix-list.cpp.

◆ wireEncode() [2/2]

template<ndn::encoding::Tag TAG>
size_t nlsr::PrefixInfo::wireEncode ( ndn::EncodingImpl< TAG > &  block) const

Definition at line 125 of file name-prefix-list.cpp.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const PrefixInfo info 
)
friend

Definition at line 88 of file name-prefix-list.hpp.

◆ operator==

bool operator== ( const PrefixInfo lhs,
const PrefixInfo rhs 
)
friend

Definition at line 83 of file name-prefix-list.hpp.