FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
VOM::route::ip_mroute Class Reference

A IP multicast route. More...

+ Inheritance diagram for VOM::route::ip_mroute:
+ Collaboration diagram for VOM::route::ip_mroute:

Public Types

typedef std::pair< route::table_id_t, mprefix_tkey_t
 The key for a route. More...
 

Public Member Functions

 ip_mroute (const mprefix_t &mprefix)
 Construct a route in the default table. More...
 
 ip_mroute (const ip_mroute &r)
 Copy Construct. More...
 
 ip_mroute (const route_domain &rd, const mprefix_t &mprefix)
 Construct a route in the given route domain. More...
 
 ~ip_mroute ()
 Destructor. More...
 
const key_t key () const
 Get the route's key. More...
 
bool operator== (const ip_mroute &i) const
 Comparison operator. More...
 
std::shared_ptr< ip_mroutesingular () const
 Return the matching 'singular instance'. More...
 
void replay (void)
 replay the object to create it in hardware More...
 
std::string to_string () const
 Convert to string for debugging. More...
 
void add (const path &path, const itf_flags_t &flag)
 

Static Public Member Functions

static std::shared_ptr< ip_mroutefind (const ip_mroute &temp)
 Find the instnace of the route domain in the OM. More...
 
static void dump (std::ostream &os)
 Dump all route-doamin into the stream provided. More...
 
static std::shared_ptr< ip_mroutefind (const key_t &k)
 Return the matching 'singular instance'. More...
 

Friends

class VOM::OM
 
class singular_db< key_t, ip_mroute >
 It's the singular_db class that calls replay() More...
 

Additional Inherited Members

- Protected Member Functions inherited from VOM::object_base
 object_base ()=default
 Constructable by derived classes only. More...
 
virtual ~object_base ()=default
 Destructor. More...
 

Detailed Description

A IP multicast route.

Definition at line 427 of file route.hpp.

Member Typedef Documentation

The key for a route.

Definition at line 433 of file route.hpp.

Constructor & Destructor Documentation

VOM::route::ip_mroute::ip_mroute ( const mprefix_t mprefix)

Construct a route in the default table.

Definition at line 519 of file route.cpp.

VOM::route::ip_mroute::ip_mroute ( const ip_mroute r)

Copy Construct.

Definition at line 527 of file route.cpp.

VOM::route::ip_mroute::ip_mroute ( const route_domain rd,
const mprefix_t mprefix 
)

Construct a route in the given route domain.

Definition at line 535 of file route.cpp.

VOM::route::ip_mroute::~ip_mroute ( )

Destructor.

Definition at line 549 of file route.cpp.

+ Here is the call graph for this function:

Member Function Documentation

void VOM::route::ip_mroute::add ( const path path,
const itf_flags_t flag 
)

Definition at line 544 of file route.cpp.

+ Here is the caller graph for this function:

void VOM::route::ip_mroute::dump ( std::ostream &  os)
static

Dump all route-doamin into the stream provided.

Definition at line 627 of file route.cpp.

+ Here is the call graph for this function:

static std::shared_ptr<ip_mroute> VOM::route::ip_mroute::find ( const ip_mroute temp)
static

Find the instnace of the route domain in the OM.

std::shared_ptr< ip_mroute > VOM::route::ip_mroute::find ( const key_t k)
static

Return the matching 'singular instance'.

Definition at line 615 of file route.cpp.

const ip_mroute::key_t VOM::route::ip_mroute::key ( ) const

Get the route's key.

Definition at line 556 of file route.cpp.

+ Here is the caller graph for this function:

bool VOM::route::ip_mroute::operator== ( const ip_mroute i) const

Comparison operator.

Definition at line 562 of file route.cpp.

+ Here is the call graph for this function:

void VOM::route::ip_mroute::replay ( void  )
virtual

replay the object to create it in hardware

Implements VOM::object_base.

Definition at line 579 of file route.cpp.

+ Here is the call graph for this function:

std::shared_ptr< ip_mroute > VOM::route::ip_mroute::singular ( ) const

Return the matching 'singular instance'.

Definition at line 621 of file route.cpp.

std::string VOM::route::ip_mroute::to_string ( void  ) const
virtual

Convert to string for debugging.

Implements VOM::object_base.

Definition at line 588 of file route.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class singular_db< key_t, ip_mroute >
friend

It's the singular_db class that calls replay()

Definition at line 546 of file route.hpp.

friend class VOM::OM
friend

Definition at line 541 of file route.hpp.


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