|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
24 std::unique_ptr<OM::listener_list> OM::m_listeners;
44 auto mark_obj = [](
const object_ref& oref) { oref.mark(); };
46 std::for_each(objs.begin(), objs.end(), mark_obj);
58 for (
auto it = objs.begin();
it != objs.end();) {
117 l->handle_populate(
key);
130 m_listeners.reset(
new listener_list);
static rc_t write()
Write/Execute all commands hitherto enqueued.
void dump(const key_t &key, std::ostream &os)
Print each of the object in the DB into the stream provided.
The VPP Object Model (VOM) library.
const static log_level_t INFO
static void sweep(const client_db::key_t &key)
Sweep all the key's objects that are stale.
static void populate(const client_db::key_t &key)
populate the OM with state read from HW.
Class definition for listeners to OM events.
A represenation of a reference to a VPP object.
static bool register_listener(listener *listener)
Register a listener of events.
mark_n_sweep(const client_db::key_t &key)
Constructor - will call mark on the key.
static void dump(const client_db::key_t &key, std::ostream &os)
Print each of the object in the DB into the stream provided.
static void replay(void)
Replay all of the objects to HW.
const typedef std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
object_ref_list & find(const key_t &k)
Find the objects owned by the key.
save_rewrite_length must be aligned so that reass doesn t overwrite it
static void remove(const client_db::key_t &key)
Remove all object in the OM referenced by the key.
void flush(const key_t &k)
flush, i.e.
A DB storing the objects that each owner/key owns.
~mark_n_sweep()
Destructor - will call sweep on the key.
std::set< object_ref > object_ref_list
A convenitent typedef for set of objects owned.
static void mark(const client_db::key_t &key)
Mark all state owned by this key as stale.