FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
VOM::gbp_rule Class Reference

Data Structures

struct  action_t
 ACL rule action enum. More...
 
struct  hash_mode_t
 hash mode enum More...
 
struct  next_hop_set_t
 Representation of set of next hops and associated hash mode profile. More...
 
struct  next_hop_t
 Representation of next hop. More...
 

Public Types

typedef std::set< next_hop_tnext_hops_t
 unordered set of next hops More...
 

Public Member Functions

 gbp_rule (uint32_t priority, const next_hop_set_t &nhs, const action_t &a)
 Construct a new object matching the desried state. More...
 
 gbp_rule (uint32_t priority, const action_t &a)
 
 gbp_rule (const gbp_rule &o)=default
 Copy Constructor. More...
 
 ~gbp_rule ()=default
 Destructor. More...
 
std::string to_string () const
 convert to string format for debug purposes More...
 
bool operator< (const gbp_rule &rule) const
 less-than operator More...
 
bool operator== (const gbp_rule &rule) const
 comparison operator (for testing) More...
 
const next_hop_set_tnhs () const
 Getters. More...
 
const action_taction () const
 

Detailed Description

Definition at line 24 of file gbp_rule.hpp.

Member Typedef Documentation

◆ next_hops_t

unordered set of next hops

Definition at line 138 of file gbp_rule.hpp.

Constructor & Destructor Documentation

◆ gbp_rule() [1/3]

VOM::gbp_rule::gbp_rule ( uint32_t  priority,
const next_hop_set_t nhs,
const action_t a 
)

Construct a new object matching the desried state.

Definition at line 168 of file gbp_rule.cpp.

◆ gbp_rule() [2/3]

VOM::gbp_rule::gbp_rule ( uint32_t  priority,
const action_t a 
)

Definition at line 177 of file gbp_rule.cpp.

◆ gbp_rule() [3/3]

VOM::gbp_rule::gbp_rule ( const gbp_rule o)
default

Copy Constructor.

◆ ~gbp_rule()

VOM::gbp_rule::~gbp_rule ( )
default

Destructor.

Member Function Documentation

◆ action()

const gbp_rule::action_t & VOM::gbp_rule::action ( ) const

Definition at line 210 of file gbp_rule.cpp.

◆ nhs()

const gbp_rule::next_hop_set_t & VOM::gbp_rule::nhs ( ) const

Getters.

Definition at line 216 of file gbp_rule.cpp.

◆ operator<()

bool VOM::gbp_rule::operator< ( const gbp_rule rule) const

less-than operator

Definition at line 185 of file gbp_rule.cpp.

◆ operator==()

bool VOM::gbp_rule::operator== ( const gbp_rule rule) const

comparison operator (for testing)

Definition at line 191 of file gbp_rule.cpp.

◆ to_string()

std::string VOM::gbp_rule::to_string ( void  ) const

convert to string format for debug purposes

Definition at line 198 of file gbp_rule.cpp.

+ Here is the call graph for this function:

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