ndn-embeds 0.1.0
Lightweight NDN protocol stack for embedded systems
Loading...
Searching...
No Matches
name.hpp File Reference

NDN Name class. More...

#include "ndn/common.hpp"

Go to the source code of this file.

Classes

struct  ndn::NameComponent
 Name component. More...
 
class  ndn::Name
 NDN Name class. More...
 

Functions

Comparison operators
bool ndn::operator== (const Name &lhs, const Name &rhs)
 Equality operator.
 
bool ndn::operator!= (const Name &lhs, const Name &rhs)
 Inequality operator.
 
bool ndn::operator< (const Name &lhs, const Name &rhs)
 Less-than operator.
 

Detailed Description

NDN Name class.

Provides a class representing NDN Names. A Name consists of multiple NameComponents and enables hierarchical data naming.

See also
https://docs.named-data.net/NDN-packet-spec/current/name.html

Definition in file name.hpp.

Function Documentation

◆ operator!=()

bool ndn::operator!= ( const Name lhs,
const Name rhs 
)
inline

Inequality operator.

Parameters
lhsLeft-hand side Name
rhsRight-hand side Name
Returns
true if not equal

Definition at line 278 of file name.hpp.

References ndn::Name::equals(), and ndn::operator!=().

Referenced by ndn::operator!=().

◆ operator<()

bool ndn::operator< ( const Name lhs,
const Name rhs 
)
inline

Less-than operator.

Parameters
lhsLeft-hand side Name
rhsRight-hand side Name
Returns
true if lhs < rhs

Definition at line 288 of file name.hpp.

References ndn::Name::compare(), and ndn::operator<().

Referenced by ndn::operator<().

◆ operator==()

bool ndn::operator== ( const Name lhs,
const Name rhs 
)
inline

Equality operator.

Parameters
lhsLeft-hand side Name
rhsRight-hand side Name
Returns
true if equal

Definition at line 268 of file name.hpp.

References ndn::Name::equals(), and ndn::operator==().

Referenced by ndn::operator==().