FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
VOM::QoS::map Class Reference

A QoS map determines how value from one source are translated to values of another source. More...

+ Inheritance diagram for VOM::QoS::map:
+ Collaboration diagram for VOM::QoS::map:

Public Types

typedef std::array< std::array< bits_t, 256 >, 4 > outputs_t
 
typedef uint32_t key_t
 

Public Member Functions

 map (uint32_t id, const outputs_t &o)
 
 map (const map &r)
 
 ~map ()
 
const key_t key () const
 Return the object's key. More...
 
const key_t id () const
 Return the object's ID. More...
 
bool operator== (const map &bdae) const
 comparison operator More...
 
std::shared_ptr< mapsingular () 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...
 

Static Public Member Functions

static std::shared_ptr< mapfind (const key_t &k)
 Find the instnace of the bridge_domain domain in the OM. More...
 
static void dump (std::ostream &os)
 Dump all bridge_domain-doamin into the stream provided. More...
 

Friends

class VOM::OM
 
class singular_db< key_t, map >
 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 QoS map determines how value from one source are translated to values of another source.

Definition at line 35 of file qos_map.hpp.

Member Typedef Documentation

◆ key_t

typedef uint32_t VOM::QoS::map::key_t

Definition at line 45 of file qos_map.hpp.

◆ outputs_t

typedef std::array<std::array<bits_t, 256>, 4> VOM::QoS::map::outputs_t

Definition at line 38 of file qos_map.hpp.

Constructor & Destructor Documentation

◆ map() [1/2]

VOM::QoS::map::map ( uint32_t  id,
const outputs_t o 
)

Definition at line 29 of file qos_map.cpp.

◆ map() [2/2]

VOM::QoS::map::map ( const map r)

Definition at line 36 of file qos_map.cpp.

◆ ~map()

VOM::QoS::map::~map ( )

Definition at line 43 of file qos_map.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ dump()

void VOM::QoS::map::dump ( std::ostream &  os)
static

Dump all bridge_domain-doamin into the stream provided.

Definition at line 122 of file qos_map.cpp.

+ Here is the call graph for this function:

◆ find()

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

Find the instnace of the bridge_domain domain in the OM.

Definition at line 110 of file qos_map.cpp.

◆ id()

const uint32_t VOM::QoS::map::id ( ) const

Return the object's ID.

Definition at line 56 of file qos_map.cpp.

◆ key()

const map::key_t VOM::QoS::map::key ( ) const

Return the object's key.

Definition at line 50 of file qos_map.cpp.

+ Here is the caller graph for this function:

◆ operator==()

bool VOM::QoS::map::operator== ( const map bdae) const

comparison operator

Definition at line 62 of file qos_map.cpp.

+ Here is the call graph for this function:

◆ replay()

void VOM::QoS::map::replay ( void  )
virtual

replay the object to create it in hardware

Implements VOM::object_base.

Definition at line 77 of file qos_map.cpp.

+ Here is the call graph for this function:

◆ singular()

std::shared_ptr< map > VOM::QoS::map::singular ( ) const

Return the matching 'singular instance'.

Definition at line 116 of file qos_map.cpp.

◆ to_string()

std::string VOM::QoS::map::to_string ( ) const
virtual

Convert to string for debugging.

Implements VOM::object_base.

Definition at line 85 of file qos_map.cpp.

Friends And Related Function Documentation

◆ singular_db< key_t, map >

friend class singular_db< key_t, map >
friend

It's the singular_db class that calls replay()

Definition at line 141 of file qos_map.hpp.

◆ VOM::OM

friend class VOM::OM
friend

Definition at line 136 of file qos_map.hpp.


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