Class to represent Exclude component in NDN interests. More...
#include <exclude.hpp>
Data Structures | |
| class | Error |
Public Types | |
| typedef std::map < name::Component, bool, std::greater< name::Component > > | exclude_type |
| typedef exclude_type::iterator | iterator |
| typedef exclude_type::const_iterator | const_iterator |
| typedef exclude_type::reverse_iterator | reverse_iterator |
| typedef exclude_type::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
| Exclude () | |
| Default constructor an empty exclude. More... | |
| Exclude (const Block &wire) | |
| Create from wire encoding. More... | |
| template<bool T> | |
| size_t | wireEncode (EncodingImpl< T > &block) const |
| Fast encoding or block size estimation. More... | |
| const Block & | wireEncode () const |
| Encode to a wire format. More... | |
| void | wireDecode (const Block &wire) |
| Decode from the wire format. More... | |
| bool | isExcluded (const name::Component &comp) const |
| Check if name component is excluded. More... | |
| Exclude & | excludeOne (const name::Component &comp) |
| Exclude specific name component. More... | |
| Exclude & | excludeRange (const name::Component &from, const name::Component &to) |
| Exclude components from range [from, to]. More... | |
| Exclude & | excludeBefore (const name::Component &to) |
| Exclude all components from range [/, to]. More... | |
| Exclude & | excludeAfter (const name::Component &from) |
| Exclude all components from range [from, +Inf]. More... | |
| void | appendExclude (const name::Component &name, bool any) |
| Method to directly append exclude element. More... | |
| bool | empty () const |
| Check if exclude filter is empty. More... | |
| void | clear () |
| Clear the exclude filter. More... | |
| size_t | size () const |
| Get number of exclude terms. More... | |
| const_iterator | begin () const |
| Get begin iterator of the exclude terms. More... | |
| const_iterator | end () const |
| Get end iterator of the exclude terms. More... | |
| const_reverse_iterator | rbegin () const |
| Get begin iterator of the exclude terms. More... | |
| const_reverse_iterator | rend () const |
| Get end iterator of the exclude terms. More... | |
| std::string | toUri () const |
| Get escaped string representation (e.g., for use in URI) of the exclude filter. More... | |
Class to represent Exclude component in NDN interests.
Definition at line 21 of file exclude.hpp.
| typedef exclude_type::const_iterator ndn::Exclude::const_iterator |
Definition at line 37 of file exclude.hpp.
| typedef exclude_type::const_reverse_iterator ndn::Exclude::const_reverse_iterator |
Definition at line 39 of file exclude.hpp.
| typedef std::map< name::Component, bool , std::greater<name::Component> > ndn::Exclude::exclude_type |
Definition at line 34 of file exclude.hpp.
| typedef exclude_type::iterator ndn::Exclude::iterator |
Definition at line 36 of file exclude.hpp.
| typedef exclude_type::reverse_iterator ndn::Exclude::reverse_iterator |
Definition at line 38 of file exclude.hpp.
| ndn::Exclude::Exclude | ( | ) |
Default constructor an empty exclude.
Definition at line 16 of file exclude.cpp.
|
inlineexplicit |
Create from wire encoding.
Definition at line 50 of file exclude.hpp.
|
inline |
Method to directly append exclude element.
| name | excluded name component |
| any | flag indicating if there is a postfix ANY component after the name |
This method is used during conversion from wire format of exclude filter
If there is an error with ranges (e.g., order of components is wrong) an exception is thrown
Definition at line 197 of file exclude.hpp.
|
inline |
Get begin iterator of the exclude terms.
Definition at line 222 of file exclude.hpp.
|
inline |
Clear the exclude filter.
Definition at line 209 of file exclude.hpp.
|
inline |
Check if exclude filter is empty.
Definition at line 203 of file exclude.hpp.
|
inline |
Get end iterator of the exclude terms.
Definition at line 228 of file exclude.hpp.
| Exclude & ndn::Exclude::excludeAfter | ( | const name::Component & | from | ) |
Exclude all components from range [from, +Inf].
| to | last element of the range |
Definition at line 122 of file exclude.cpp.
|
inline |
Exclude all components from range [/, to].
| to | last element of the range |
Definition at line 191 of file exclude.hpp.
| Exclude & ndn::Exclude::excludeOne | ( | const name::Component & | comp | ) |
Exclude specific name component.
| comp | component to exclude |
Definition at line 48 of file exclude.cpp.
| Exclude & ndn::Exclude::excludeRange | ( | const name::Component & | from, |
| const name::Component & | to | ||
| ) |
Exclude components from range [from, to].
| from | first element of the range |
| to | last element of the range |
Definition at line 86 of file exclude.cpp.
| bool ndn::Exclude::isExcluded | ( | const name::Component & | comp | ) | const |
Check if name component is excluded.
| comp | Name component to check against exclude filter |
Definition at line 33 of file exclude.cpp.
|
inline |
Get begin iterator of the exclude terms.
Definition at line 234 of file exclude.hpp.
|
inline |
Get end iterator of the exclude terms.
Definition at line 240 of file exclude.hpp.
|
inline |
Get number of exclude terms.
Definition at line 216 of file exclude.hpp.
|
inline |
Get escaped string representation (e.g., for use in URI) of the exclude filter.
Definition at line 246 of file exclude.hpp.
|
inline |
Decode from the wire format.
Definition at line 296 of file exclude.hpp.
|
inline |
Fast encoding or block size estimation.
Definition at line 255 of file exclude.hpp.
|
inline |
Encode to a wire format.
Definition at line 280 of file exclude.hpp.