FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
VOM::handle_t Struct Reference

A type declaration of an interface handle in VPP. More...

+ Collaboration diagram for VOM::handle_t:

Public Member Functions

 handle_t (int value)
 Constructor. More...
 
 handle_t ()
 Constructor. More...
 
std::string to_string () const
 convert to string format for debug purposes More...
 
bool operator== (const handle_t &other) const
 Comparison operator. More...
 
bool operator!= (const handle_t &other) const
 Comparison operator. More...
 
bool operator< (const handle_t &other) const
 less than operator More...
 
uint32_t value () const
 get the value of the handle More...
 
void reset ()
 reset the value of the handle to ~0 More...
 

Static Public Attributes

const static handle_t INVALID
 A value of an interface handle_t that means the itf does not exist. More...
 

Detailed Description

A type declaration of an interface handle in VPP.

Definition at line 233 of file types.hpp.

Constructor & Destructor Documentation

◆ handle_t() [1/2]

VOM::handle_t::handle_t ( int  value)

Constructor.

Definition at line 58 of file types.cpp.

◆ handle_t() [2/2]

VOM::handle_t::handle_t ( )

Constructor.

Definition at line 63 of file types.cpp.

Member Function Documentation

◆ operator!=()

bool VOM::handle_t::operator!= ( const handle_t other) const

Comparison operator.

Definition at line 81 of file types.cpp.

◆ operator<()

bool VOM::handle_t::operator< ( const handle_t other) const

less than operator

Definition at line 87 of file types.cpp.

◆ operator==()

bool VOM::handle_t::operator== ( const handle_t other) const

Comparison operator.

Definition at line 75 of file types.cpp.

◆ reset()

void VOM::handle_t::reset ( )

reset the value of the handle to ~0

Definition at line 99 of file types.cpp.

◆ to_string()

std::string VOM::handle_t::to_string ( ) const

convert to string format for debug purposes

Definition at line 69 of file types.cpp.

+ Here is the caller graph for this function:

◆ value()

uint32_t VOM::handle_t::value ( ) const

get the value of the handle

Definition at line 93 of file types.cpp.

Field Documentation

◆ INVALID

const handle_t VOM::handle_t::INVALID
static

A value of an interface handle_t that means the itf does not exist.

Definition at line 268 of file types.hpp.


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