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

A representation of igmp configuration on an interface. More...

+ Inheritance diagram for VOM::igmp_listen:
+ Collaboration diagram for VOM::igmp_listen:

Public Types

typedef std::set< boost::asio::ip::address_v4 > src_addrs_t
 
typedef std::pair< interface::key_t, boost::asio::ip::addresskey_t
 The key type for igmp_listens. More...
 

Public Member Functions

 igmp_listen (const igmp_binding &igmp_bind, const boost::asio::ip::address_v4 &gaddr, const src_addrs_t &saddrs)
 Construct a new object matching the desried state. More...
 
 igmp_listen (const igmp_binding &igmp_bind, const boost::asio::ip::address_v4 &gaddr)
 
 igmp_listen (const igmp_listen &o)
 Copy Constructor. More...
 
 ~igmp_listen ()
 Destructor. More...
 
bool operator== (const igmp_listen &l) const
 Comparison operator. More...
 
const key_t key () const
 Get the object's key. More...
 
std::shared_ptr< igmp_listensingular () const
 Return the 'singular instance' of the IGMP that matches this object. More...
 
std::string to_string () const
 convert to string format for debug purposes More...
 

Static Public Member Functions

static void dump (std::ostream &os)
 Dump all igmp_listens into the stream provided. More...
 
static std::shared_ptr< igmp_listenfind (const key_t &k)
 Find a listen from its key. More...
 

Friends

class OM
 
class singular_db< key_t, igmp_listen >
 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 representation of igmp configuration on an interface.

Definition at line 31 of file igmp_listen.hpp.

Member Typedef Documentation

◆ key_t

The key type for igmp_listens.

Definition at line 39 of file igmp_listen.hpp.

◆ src_addrs_t

typedef std::set<boost::asio::ip::address_v4> VOM::igmp_listen::src_addrs_t

Definition at line 34 of file igmp_listen.hpp.

Constructor & Destructor Documentation

◆ igmp_listen() [1/3]

VOM::igmp_listen::igmp_listen ( const igmp_binding igmp_bind,
const boost::asio::ip::address_v4 &  gaddr,
const src_addrs_t saddrs 
)

Construct a new object matching the desried state.

Definition at line 28 of file igmp_listen.cpp.

◆ igmp_listen() [2/3]

VOM::igmp_listen::igmp_listen ( const igmp_binding igmp_bind,
const boost::asio::ip::address_v4 &  gaddr 
)

Definition at line 38 of file igmp_listen.cpp.

◆ igmp_listen() [3/3]

VOM::igmp_listen::igmp_listen ( const igmp_listen o)

Copy Constructor.

Definition at line 47 of file igmp_listen.cpp.

◆ ~igmp_listen()

VOM::igmp_listen::~igmp_listen ( )

Destructor.

Definition at line 55 of file igmp_listen.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ dump()

void VOM::igmp_listen::dump ( std::ostream &  os)
static

Dump all igmp_listens into the stream provided.

Definition at line 144 of file igmp_listen.cpp.

+ Here is the call graph for this function:

◆ find()

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

Find a listen from its key.

Definition at line 132 of file igmp_listen.cpp.

◆ key()

const igmp_listen::key_t VOM::igmp_listen::key ( ) const

Get the object's key.

Definition at line 71 of file igmp_listen.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool VOM::igmp_listen::operator== ( const igmp_listen l) const

Comparison operator.

Definition at line 64 of file igmp_listen.cpp.

◆ singular()

std::shared_ptr< igmp_listen > VOM::igmp_listen::singular ( ) const

Return the 'singular instance' of the IGMP that matches this object.

Definition at line 138 of file igmp_listen.cpp.

◆ to_string()

std::string VOM::igmp_listen::to_string ( void  ) const
virtual

convert to string format for debug purposes

Implements VOM::object_base.

Definition at line 96 of file igmp_listen.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ OM

friend class OM
friend

Definition at line 140 of file igmp_listen.hpp.

◆ singular_db< key_t, igmp_listen >

friend class singular_db< key_t, igmp_listen >
friend

It's the singular_db class that calls replay()

Definition at line 145 of file igmp_listen.hpp.


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