FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
VOM::ACL::binding< LIST > Class Template Reference

A binding between an ACL and an interface. More...

+ Inheritance diagram for VOM::ACL::binding< LIST >:
+ Collaboration diagram for VOM::ACL::binding< LIST >:

Public Types

typedef std::pair< direction_t, interface::key_tkey_t
 The key for a binding is the direction and the interface. More...
 

Public Member Functions

 binding (const direction_t &direction, const interface &itf, const LIST &acl)
 Construct a new object matching the desried state. More...
 
 binding (const binding &o)
 Copy Constructor. More...
 
 ~binding ()
 Destructor. More...
 
std::shared_ptr< bindingsingular () const
 Return the 'singular instance' of the L2 config 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 bindings into the stream provided. More...
 
static dependency_t order ()
 

Friends

class VOM::OM
 
class singular_db< key_t, binding >
 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

template<typename LIST>
class VOM::ACL::binding< LIST >

A binding between an ACL and an interface.

A representation of the application of the ACL to the interface.

Definition at line 39 of file acl_binding.hpp.

Member Typedef Documentation

◆ key_t

template<typename LIST>
typedef std::pair<direction_t, interface::key_t> VOM::ACL::binding< LIST >::key_t

The key for a binding is the direction and the interface.

Definition at line 45 of file acl_binding.hpp.

Constructor & Destructor Documentation

◆ binding() [1/2]

template<typename LIST>
VOM::ACL::binding< LIST >::binding ( const direction_t direction,
const interface itf,
const LIST &  acl 
)
inline

Construct a new object matching the desried state.

Definition at line 50 of file acl_binding.hpp.

◆ binding() [2/2]

template<typename LIST>
VOM::ACL::binding< LIST >::binding ( const binding< LIST > &  o)
inline

Copy Constructor.

Definition at line 62 of file acl_binding.hpp.

◆ ~binding()

template<typename LIST>
VOM::ACL::binding< LIST >::~binding ( )
inline

Destructor.

Definition at line 73 of file acl_binding.hpp.

Member Function Documentation

◆ dump()

template<typename LIST>
static void VOM::ACL::binding< LIST >::dump ( std::ostream &  os)
inlinestatic

Dump all bindings into the stream provided.

Definition at line 100 of file acl_binding.hpp.

◆ order()

template<typename LIST>
static dependency_t VOM::ACL::binding< LIST >::order ( )
inlinestatic

Definition at line 102 of file acl_binding.hpp.

+ Here is the call graph for this function:

◆ singular()

template<typename LIST>
std::shared_ptr<binding> VOM::ACL::binding< LIST >::singular ( ) const
inline

Return the 'singular instance' of the L2 config that matches this object.

Definition at line 83 of file acl_binding.hpp.

◆ to_string()

template<typename LIST>
std::string VOM::ACL::binding< LIST >::to_string ( void  ) const
inlinevirtual

convert to string format for debug purposes

Implements VOM::object_base.

Definition at line 88 of file acl_binding.hpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ singular_db< key_t, binding >

template<typename LIST>
friend class singular_db< key_t, binding >
friend

It's the singular_db class that calls replay()

Definition at line 163 of file acl_binding.hpp.

◆ VOM::OM

template<typename LIST>
friend class VOM::OM
friend

Definition at line 158 of file acl_binding.hpp.


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