|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_OBJECT_H__
17 #define __VOM_OBJECT_H__
40 virtual void sweep(
void) = 0;
45 virtual void replay(
void) = 0;
102 std::shared_ptr<object_base>
obj()
const;
123 std::shared_ptr<object_base> m_obj;
std::shared_ptr< object_base > obj() const
Return the shared pointer.
virtual void replay(void)=0
replay the object to create it in hardware
The VPP Object Model (VOM) library.
@ OBJECT_STATE_STALE
indicates the object is stale.
void clear() const
Clear the stale flag on the object.
object_base()=default
Constructable by derived classes only.
void mark() const
Mark the reference object as stale.
A represenation of a reference to a VPP object.
object_ref(std::shared_ptr< object_base > obj)
Constructor.
virtual ~object_base()=default
Destructor.
virtual void sweep(void)=0
Sweep/reap the object if still stale.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
bool operator<(const object_ref &other) const
less than operator
virtual std::string to_string() const =0
convert to string format for debug purposes
bool stale() const
Query if the object is stale.
A base class for all object_base in the VPP object_base-Model.