All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
ndn::CongestionMarkLite Class Reference

CongestionMarkLite represents the congestion mark header field in an NDNLPv2 packet. More...

#include <congestion-mark-lite.hpp>

Inheritance diagram for ndn::CongestionMarkLite:
ndn_CongestionMark

Public Member Functions

 CongestionMarkLite ()
 Create a CongestionMarkLite where all the values are unspecified.
 
uint64_t getCongestionMark () const
 Get the congestion mark value. More...
 
void setCongestionMark (uint64_t congestionMark)
 Set the congestion mark value. More...
 

Static Public Member Functions

static const CongestionMarkLitegetFirstHeader (const LpPacketLite &lpPacket)
 Get the first header field in lpPacket which is a CongestionMarkLite. More...
 
static CongestionMarkLitedownCast (ndn_CongestionMark &congestionMark)
 Downcast the reference to the ndn_CongestionMark struct to an CongestionMarkLite. More...
 
static const CongestionMarkLitedownCast (const ndn_CongestionMark &congestionMark)
 

Detailed Description

CongestionMarkLite represents the congestion mark header field in an NDNLPv2 packet.

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

Member Function Documentation

static CongestionMarkLite& ndn::CongestionMarkLite::downCast ( ndn_CongestionMark congestionMark)
inlinestatic

Downcast the reference to the ndn_CongestionMark struct to an CongestionMarkLite.

Parameters
congestionMarkA reference to the ndn_CongestionMark struct.
Returns
The same reference as CongestionMarkLite.
uint64_t ndn::CongestionMarkLite::getCongestionMark ( ) const
inline

Get the congestion mark value.

Returns
The congestion mark value.
const CongestionMarkLite * ndn::CongestionMarkLite::getFirstHeader ( const LpPacketLite lpPacket)
static

Get the first header field in lpPacket which is a CongestionMarkLite.

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

Set the congestion mark value.

Parameters
congestionMarkThe congestion mark value.

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