Public Member Functions | Static Public Member Functions | List of all members
ndn::IncomingFaceIdLite Class Reference

IncomingFaceIdLite represents the incoming face ID header field in an NDNLPv2 packet. More...

#include <incoming-face-id-lite.hpp>

Inheritance diagram for ndn::IncomingFaceIdLite:
ndn_IncomingFaceId

Public Member Functions

 IncomingFaceIdLite ()
 Create a IncomingFaceIdLite where all the values are unspecified.
 
uint64_t getFaceId () const
 Get the incoming face ID value. More...
 
void setFaceId (uint64_t faceId)
 Set the face ID value. More...
 

Static Public Member Functions

static const IncomingFaceIdLitegetFirstHeader (const LpPacketLite &lpPacket)
 Get the first header field in lpPacket which is an IncomingFaceIdLite. More...
 
static IncomingFaceIdLitedownCast (ndn_IncomingFaceId &incomingFaceId)
 Downcast the reference to the ndn_IncomingFaceId struct to an IncomingFaceIdLite. More...
 
static const IncomingFaceIdLitedownCast (const ndn_IncomingFaceId &incomingFaceId)
 

Detailed Description

IncomingFaceIdLite represents the incoming face ID header field in an NDNLPv2 packet.

http://redmine.named-data.net/projects/nfd/wiki/NDNLPv2

Member Function Documentation

static IncomingFaceIdLite& ndn::IncomingFaceIdLite::downCast ( ndn_IncomingFaceId incomingFaceId)
inlinestatic

Downcast the reference to the ndn_IncomingFaceId struct to an IncomingFaceIdLite.

Parameters
incomingFaceIdA reference to the ndn_IncomingFaceId struct.
Returns
The same reference as IncomingFaceIdLite.
uint64_t ndn::IncomingFaceIdLite::getFaceId ( ) const
inline

Get the incoming face ID value.

Returns
The face ID value.
const IncomingFaceIdLite * ndn::IncomingFaceIdLite::getFirstHeader ( const LpPacketLite lpPacket)
static

Get the first header field in lpPacket which is an IncomingFaceIdLite.

Parameters
lpPacketThe ndn_LpPacket struct with the header fields to search.
Returns
A pointer to the first IncomingFaceIdLite header field, or 0 if not found.
void ndn::IncomingFaceIdLite::setFaceId ( uint64_t  faceId)
inline

Set the face ID value.

Parameters
faceIdThe incoming face ID value.

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