Public Member Functions | List of all members
ndn::Exclude::Entry Class Reference

An Exclude::Entry holds an ndn_ExcludeType, and if it is a COMPONENT, it holds the component value. More...

#include <exclude.hpp>

Public Member Functions

 Entry ()
 Create an Exclude::Entry of type ndn_Exclude_ANY.
 
 Entry (const uint8_t *component, size_t componentLen)
 Create an Exclude::Entry of type ndn_Exclude_COMPONENT.
 
 Entry (const Name::Component &component)
 Create an Exclude::Entry of type ndn_Exclude_COMPONENT.
 
void get (struct ndn_ExcludeEntry &excludeEntryStruct) const
 Set the type in the excludeEntryStruct and to point to this entry, without copying any memory. More...
 
ndn_ExcludeType getType () const
 
const Name::ComponentgetComponent () const
 

Detailed Description

An Exclude::Entry holds an ndn_ExcludeType, and if it is a COMPONENT, it holds the component value.

Member Function Documentation

void ndn::Exclude::Entry::get ( struct ndn_ExcludeEntry & excludeEntryStruct  ) const

Set the type in the excludeEntryStruct and to point to this entry, without copying any memory.

WARNING: The resulting pointer in excludeEntryStruct is invalid after a further use of this object which could reallocate memory.

Parameters
excludeEntryStructthe C ndn_ExcludeEntry struct to receive the pointer

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