Public Member Functions | Static Public Member Functions | List of all members
ndn::LpPacketHeaderFieldLite Class Reference
Inheritance diagram for ndn::LpPacketHeaderFieldLite:
ndn_LpPacketHeaderField

Public Member Functions

ndn_LpPacketHeaderFieldType getType () const
 Get the type of this header field. More...
 
const IncomingFaceIdLite & getIncomingFaceId () const
 Get this field as an IncomingFaceId. More...
 
IncomingFaceIdLite & getIncomingFaceId ()
 
const NetworkNackLite & getNetworkNack () const
 Get this field as an NetworkNack. More...
 
NetworkNackLite & getNetworkNack ()
 

Static Public Member Functions

static LpPacketHeaderFieldLite & downCast (ndn_LpPacketHeaderField &lpPacketHeaderField)
 Downcast the reference to the ndn_LpPacketHeaderField struct to an LpPacketHeaderFieldLite. More...
 
static const LpPacketHeaderFieldLite & downCast (const ndn_LpPacketHeaderField &lpPacketHeaderField)
 

Member Function Documentation

static LpPacketHeaderFieldLite& ndn::LpPacketHeaderFieldLite::downCast ( ndn_LpPacketHeaderField &  lpPacketHeaderField)
inlinestatic

Downcast the reference to the ndn_LpPacketHeaderField struct to an LpPacketHeaderFieldLite.

Parameters
lpPacketHeaderFieldA reference to the ndn_LpPacketHeaderField struct.
Returns
The same reference as LpPacketHeaderFieldLite.
const IncomingFaceIdLite& ndn::LpPacketHeaderFieldLite::getIncomingFaceId ( ) const
inline

Get this field as an IncomingFaceId.

This assumes you checked that getType() is ndn_LpPacketHeaderFieldType_INCOMING_FACE_ID.

Returns
This field as an IncomingFaceId.
const NetworkNackLite& ndn::LpPacketHeaderFieldLite::getNetworkNack ( ) const
inline

Get this field as an NetworkNack.

This assumes you checked that getType() is ndn_LpPacketHeaderFieldType_INCOMING_FACE_ID.

Returns
This field as an NetworkNack.
ndn_LpPacketHeaderFieldType ndn::LpPacketHeaderFieldLite::getType ( ) const
inline

Get the type of this header field.

Returns
The header field type.

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