FD.io VPP  v18.07.1-13-g909ba93
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 38 of file acl_binding.hpp.

Member Typedef Documentation

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 44 of file acl_binding.hpp.

Constructor & Destructor Documentation

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 49 of file acl_binding.hpp.

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

Copy Constructor.

Definition at line 61 of file acl_binding.hpp.

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

Destructor.

Definition at line 72 of file acl_binding.hpp.

Member Function Documentation

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

Dump all bindings into the stream provided.

Definition at line 99 of file acl_binding.hpp.

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

Definition at line 101 of file acl_binding.hpp.

+ Here is the call graph for this function:

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 82 of file acl_binding.hpp.

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 87 of file acl_binding.hpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

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

It's the singular_db class that calls replay()

Definition at line 162 of file acl_binding.hpp.

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

Definition at line 157 of file acl_binding.hpp.


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