22 #ifndef NDN_DELEGATION_SET_LITE_HPP
23 #define NDN_DELEGATION_SET_LITE_HPP
25 #include "name-lite.hpp"
26 #include "../c/delegation-set-types.h"
64 setPreference(
int preference) { this->preference = preference; }
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
A NameLite holds an array of NameLite::Component.
Definition: name-lite.hpp:34
Copyright (C) 2015-2016 Regents of the University of California.
Definition: name-types.h:33
Delegation(ndn_NameComponent *nameComponents, size_t maxNameComponents)
Create a DelegationSetLite::Delegation with the pre-allocated nameComponents, and defaults for all th...
Definition: delegation-set-lite.cpp:28
static Delegation & downCast(ndn_DelegationSet_Delegation &delegation)
Downcast the reference to the ndn_DelegationSet_Delegation struct to a DelegationSetLite::Delegation...
Definition: delegation-set-lite.hpp:82
Definition: delegation-set-lite.hpp:30
int getPreference() const
Get the preference number.
Definition: delegation-set-lite.hpp:51
NameLite & getName()
Get the delegation name.
Definition: delegation-set-lite.hpp:58
Copyright (C) 2016 Regents of the University of California.
Definition: delegation-set-types.h:33
Definition: delegation-set-lite.hpp:32
static NameLite & downCast(ndn_Name &name)
Downcast the reference to the ndn_Name struct to a NameLite.
Definition: name-lite.hpp:429
ndn_Error set(const Delegation &other)
Set this delegation to have the values from the other delegation.
Definition: delegation-set-lite.cpp:35