An Exclude holds a vector of Exclude::Entry.
More...
#include <exclude.hpp>
An Exclude holds a vector of Exclude::Entry.
| Exclude& DEPRECATED_IN_NDN_CPP ndn::Exclude::addAny |
( |
| ) |
|
|
inline |
| Exclude& DEPRECATED_IN_NDN_CPP ndn::Exclude::addComponent |
( |
uint8_t * |
component, |
|
|
size_t |
componentLength |
|
) |
| |
|
inline |
| Exclude& ndn::Exclude::appendAny |
( |
| ) |
|
|
inline |
Append a new entry of type ndn_Exclude_ANY.
- Returns
- This Exclude so that you can chain calls to append.
| Exclude& ndn::Exclude::appendComponent |
( |
const uint8_t * |
component, |
|
|
size_t |
componentLength |
|
) |
| |
|
inline |
Append a new entry of type ndn_Exclude_COMPONENT, copying from component of length componentLength.
- Parameters
-
| component | A pointer to the component byte array. |
| componentLength | The length of component. |
- Returns
- This Exclude so that you can chain calls to append.
Append a new entry of type ndn_Exclude_COMPONENT, taking another pointer to the Blob value.
- Parameters
-
- Returns
- This Exclude so that you can chain calls to append.
Get the entry at the given index.
- Parameters
-
| i | The index of the entry, starting from 0. |
- Returns
- The entry at the index.
| void ndn::Exclude::get |
( |
ExcludeLite & |
excludeLite | ) |
const |
Set excludeLite to have the values and point to the entries in this Exclude, without copying any memory.
WARNING: The resulting pointers in excludeLite are invalid after a further use of this object which could reallocate memory.
- Parameters
-
| excludeLite | A ExcludeLite object where the entries array is already allocated |
| uint64_t ndn::Exclude::getChangeCount |
( |
| ) |
const |
|
inline |
Get the change count, which is incremented each time this object is changed.
- Returns
- The change count.
| const Exclude::Entry& DEPRECATED_IN_NDN_CPP ndn::Exclude::getEntry |
( |
size_t |
i | ) |
const |
|
inline |
| size_t DEPRECATED_IN_NDN_CPP ndn::Exclude::getEntryCount |
( |
| ) |
const |
|
inline |
Check if the component matches any of the exclude criteria.
- Parameters
-
| component | The name component to check. |
- Returns
- True if the component matches any of the exclude criteria, otherwise false.
The same as get(i), get the entry at the given index.
- Parameters
-
| i | The index of the entry, starting from 0. |
- Returns
- The entry at the index.
| void ndn::Exclude::set |
( |
const ExcludeLite & |
excludeLite | ) |
|
Clear this Exclude, and set the entries by copying from excludeLite.
- Parameters
-
| size_t ndn::Exclude::size |
( |
| ) |
const |
|
inline |
Get the number of entries.
- Returns
- The number of entries.
| string ndn::Exclude::toUri |
( |
| ) |
const |
Encode this Exclude with elements separated by "," and ndn_Exclude_ANY shown as "*".
- Returns
- the URI string
The documentation for this class was generated from the following files: