A DelegationSet::Delegation holds a preference number and delegation name.
More...
#include <delegation-set.hpp>
A DelegationSet::Delegation holds a preference number and delegation name.
ndn::DelegationSet::Delegation::Delegation |
( |
int |
preference, |
|
|
const Name & |
name |
|
) |
| |
|
inline |
Create a new DelegationSet::Delegation with the given values.
- Parameters
-
preference | The preference number. |
name | The delegation name. This makes a copy of the name. |
int ndn::DelegationSet::Delegation::compare |
( |
const Delegation & |
other | ) |
|
Compare this Delegation with other according to the ordering, based first on the preference number, then on the delegation name.
- Parameters
-
- Returns
- 0 If they compare equal, -1 if this Delegation comes before other in the ordering, or 1 if this Delegation comes after.
Set delegationLite to point to the values in this delegation, without copying any memory.
WARNING: The resulting pointers in delegationLite are invalid after a further use of this object which could reallocate memory.
- Parameters
-
const Name& ndn::DelegationSet::Delegation::getName |
( |
| ) |
const |
|
inline |
Get the delegation name.
- Returns
- The delegation name.
int ndn::DelegationSet::Delegation::getPreference |
( |
| ) |
const |
|
inline |
Get the preference number.
- Returns
- The preference number.
The documentation for this class was generated from the following files: