|
class | Tlv0_1_1WireFormatLite |
|
ndn::DelegationSetLite::Delegation::Delegation |
( |
ndn_NameComponent * |
nameComponents, |
|
|
size_t |
maxNameComponents |
|
) |
| |
Create a DelegationSetLite::Delegation with the pre-allocated nameComponents, and defaults for all the values.
- Parameters
-
nameComponents | The pre-allocated array of ndn_NameComponent. Instead of an array of NameLite::Component, this is an array of the underlying ndn_NameComponent struct so that it doesn't run the default constructor unnecessarily. |
maxNameComponents | The number of elements in the allocated nameComponents array. |
NameLite& ndn::DelegationSetLite::Delegation::getName |
( |
| ) |
|
|
inline |
Get the delegation name.
- Returns
- The delegation name.
int ndn::DelegationSetLite::Delegation::getPreference |
( |
| ) |
const |
|
inline |
Get the preference number.
- Returns
- The preference number.
ndn_Error ndn::DelegationSetLite::Delegation::set |
( |
const Delegation & |
other | ) |
|
Set this delegation to have the values from the other delegation.
- Parameters
-
- Returns
- 0 for success, or an error code if there is not enough room in this object's keyName components array.
The documentation for this class was generated from the following files: