|
| Name () |
| Default constructor to create an empty name (zero components, or "/")
|
|
| Name (const Name &other) |
| Copy constructor. More...
|
|
| Name (const std::string &url) |
| Create a name from URL string. More...
|
|
template<class Iterator > |
| Name (Iterator begin, Iterator end) |
| Create a name from a container of elements [begin, end) More...
|
|
Name & | operator= (const Name &other) |
| Assignment operator.
|
|
Name & | append (const name::Component &comp) |
| Append a binary blob as a name component. More...
|
|
Name & | appendBySwap (name::Component &comp) |
| Append a binary blob as a name component. More...
|
|
template<class Iterator > |
Name & | append (Iterator begin, Iterator end) |
| Append components a container of elements [begin, end) More...
|
|
Name & | append (const Name &comp) |
| Append components from another ndn::Name object. More...
|
|
Name & | append (const std::string &compStr) |
| Append a string as a name component. More...
|
|
Name & | append (const void *buf, size_t size) |
| Append a binary blob as a name component. More...
|
|
Name & | appendNumber (uint64_t number) |
| Append network-ordered numeric component to the name. More...
|
|
Name & | appendNumberWithMarker (uint64_t number, unsigned char marker) |
| Append network-ordered numeric component to the name with marker. More...
|
|
Name & | appendSeqNum (uint64_t seqno) |
| Helper method to add sequence number to the name (marker = 0x00) More...
|
|
Name & | appendControlNum (uint64_t control) |
| Helper method to add control number to the name (marker = 0xC1) More...
|
|
Name & | appendBlkId (uint64_t blkid) |
| Helper method to add block ID to the name (marker = 0xFB) More...
|
|
Name & | appendVersion (uint64_t version=Name::nversion) |
| Helper method to add version to the name (marker = 0xFD) More...
|
|
size_t | size () const |
| Get number of the name components. More...
|
|
const name::Component & | get (int index) const |
| Get binary blob of name component. More...
|
|
name::Component & | get (int index) |
| Get binary blob of name component. More...
|
|
Name::const_iterator | begin () const |
| Begin iterator (const)
|
|
Name::iterator | begin () |
| Begin iterator.
|
|
Name::const_iterator | end () const |
| End iterator (const)
|
|
Name::iterator | end () |
| End iterator.
|
|
Name::const_reverse_iterator | rbegin () const |
| Reverse begin iterator (const)
|
|
Name::reverse_iterator | rbegin () |
| Reverse begin iterator.
|
|
Name::const_reverse_iterator | rend () const |
| Reverse end iterator (const)
|
|
Name::reverse_iterator | rend () |
| Reverse end iterator.
|
|
Name | getSubName (size_t pos=0, size_t len=npos) const |
| Get a new name, constructed as a subset of components. More...
|
|
Name | getPrefix (size_t len, size_t skip=0) const |
| Get prefix of the name. More...
|
|
Name | getPostfix (size_t len, size_t skip=0) const |
| Get postfix of the name. More...
|
|
std::string | toUri () const |
| Get text representation of the name (URI)
|
|
void | toUri (std::ostream &os) const |
| Write name as URI to the specified output stream. More...
|
|
int | compare (const Name &name) const |
| Compare two names, using canonical ordering for each component. More...
|
|
bool | operator== (const Name &name) const |
| Check if to Name objects are equal (have the same number of components with the same binary data)
|
|
bool | operator!= (const Name &name) const |
| Check if two Name objects are not equal.
|
|
bool | operator<= (const Name &name) const |
| Less or equal comparison of two name objects.
|
|
bool | operator< (const Name &name) const |
| Less comparison of two name objects.
|
|
bool | operator>= (const Name &name) const |
| Great or equal comparison of two name objects.
|
|
bool | operator> (const Name &name) const |
| Great comparison of two name objects.
|
|
name::Component & | operator[] (int index) |
| Operator [] to simplify access to name components. More...
|
|
const name::Component & | operator[] (int index) const |
| Operator [] to simplify access to name components. More...
|
|
Name | operator+ (const Name &name) const |
| Create a new Name object, by copying components from first and second name.
|
|
template<class T > |
void | push_back (const T &comp) |
| A wrapper for append method.
|
|
Class for NDN Name.
Definition at line 29 of file name.h.