For backwards compatibility. More...
#include <ndn-name.h>
Public Member Functions | |
Name (const std::list< boost::reference_wrapper< const std::string > > &components) | |
Name (const std::string &prefix) | |
Name (const char *prefix) | |
Public Member Functions inherited from ns3::ndn::Name | |
Name () | |
Constructor Creates a prefix with zero components (can be looked as root "/") | |
Name (const std::list< boost::reference_wrapper< const std::string > > &components) | |
Constructor Creates a prefix from a list of strings where every string represents a prefix component. | |
Name (const std::string &prefix) | |
Constructor Creates a prefix from the string (string is parsed using operator>>) | |
Name (const char *prefix) | |
Constructor Creates a prefix from the string (string is parsed using operator>>) | |
template<class T > | |
void | Add (const T &value) |
Generic Add method Appends object of type T to the list of components. | |
template<class T > | |
Name & | operator() (const T &value) |
Generic constructor operator The object of type T will be appended to the list of components. | |
const std::list< std::string > & | GetComponents () const |
Get a name Returns a list of components (strings) | |
std::string | GetLastComponent () const |
Helper call to get the last component of the name. | |
std::list < boost::reference_wrapper < const std::string > > | GetSubComponents (size_t num) const |
Get subcomponents of the name, starting with first component. | |
Name | cut (size_t minusComponents) const |
Get prefix of the name, containing less minusComponents right components. | |
void | Print (std::ostream &os) const |
Print name. | |
size_t | GetSerializedSize () const |
Get serialized size for ndnSIM packet encoding. | |
uint32_t | Serialize (Buffer::Iterator start) const |
Serialize Name in ndnSIM packet encoding. | |
uint32_t | Deserialize (Buffer::Iterator start) |
Deserialize Name in ndnSIM packet encoding. | |
size_t | size () const |
Returns the size of Name. | |
iterator | begin () |
Get read-write begin() iterator. | |
const_iterator | begin () const |
Get read-only begin() iterator. | |
iterator | end () |
Get read-write end() iterator. | |
const_iterator | end () const |
Get read-only end() iterator. | |
bool | operator== (const Name &prefix) const |
Equality operator for Name. | |
bool | operator< (const Name &prefix) const |
Less than operator for Name. | |
Additional Inherited Members | |
Public Types inherited from ns3::ndn::Name | |
typedef std::list< std::string > ::iterator | iterator |
typedef std::list< std::string > ::const_iterator | const_iterator |
typedef std::string | partial_type |
For backwards compatibility.
Definition at line 309 of file ndn-name.h.