Public Member Functions | Static Public Member Functions | List of all members
ndn::ExcludeLite::Entry Class Reference
Inheritance diagram for ndn::ExcludeLite::Entry:
ndn_ExcludeEntry

Public Member Functions

 Entry ()
 Create an ExcludeLite::Entry of type ndn_Exclude_ANY.
 
 Entry (const uint8_t *component, size_t componentLength)
 Create an ExcludeLite::Entry of type ndn_Exclude_COMPONENT with the given component value. More...
 
 Entry (const BlobLite &component)
 Create an ExcludeLite::Entry of type ndn_Exclude_COMPONENT, taking the component pointer and size from the BlobLite value. More...
 
ndn_ExcludeType getType () const
 
const NameLite::ComponentgetComponent () const
 

Static Public Member Functions

static EntrydownCast (ndn_ExcludeEntry &entry)
 Downcast the reference to the ndn_ExcludeEntry struct to an ExcludeLite::Entry. More...
 
static const EntrydownCast (const ndn_ExcludeEntry &entry)
 

Constructor & Destructor Documentation

ndn::ExcludeLite::Entry::Entry ( const uint8_t *  component,
size_t  componentLength 
)

Create an ExcludeLite::Entry of type ndn_Exclude_COMPONENT with the given component value.

Parameters
componentThe pre-allocated buffer for the component value.
componentLengththe number of bytes in value.
ndn::ExcludeLite::Entry::Entry ( const BlobLite component)

Create an ExcludeLite::Entry of type ndn_Exclude_COMPONENT, taking the component pointer and size from the BlobLite value.

Parameters
componentThe BlobLite with the pointer to use for the component.

Member Function Documentation

static Entry& ndn::ExcludeLite::Entry::downCast ( ndn_ExcludeEntry entry)
inlinestatic

Downcast the reference to the ndn_ExcludeEntry struct to an ExcludeLite::Entry.

Parameters
entryA reference to the ndn_ExcludeEntry struct.
Returns
The same reference as ExcludeLite::Entry.

The documentation for this class was generated from the following files: