rBPF::Store Class Referenceabstract

#include <Store.h>

Inheritance diagram for rBPF::Store:

Classes

class  Entry
 

Public Types

using Key = uint32_t
 
using Value = uint32_t
 

Public Member Functions

virtual bool update (Key key, Value value)=0
 Update value in store. More...
 
virtual bool fetch (Key key, Value &value)=0
 Fetch value from store. More...
 
Value get (Key key)
 Fetch value from store. More...
 
Entry operator[] (Key key)
 

Member Typedef Documentation

◆ Key

using rBPF::Store::Key = uint32_t

◆ Value

using rBPF::Store::Value = uint32_t

Member Function Documentation

◆ fetch()

virtual bool rBPF::Store::fetch ( Key  key,
Value value 
)
pure virtual

Fetch value from store.

Parameters
key
value
Return values
booltrue on success, false if store is full

If key is not found in the store then its added and set to 0.

Implemented in rBPF::GlobalStore, rBPF::LocalStore, rBPF::GlobalStore, and rBPF::LocalStore.

◆ get()

Value rBPF::Store::get ( Key  key)
inline

Fetch value from store.

Parameters
key

◆ operator[]()

Entry rBPF::Store::operator[] ( Key  key)
inline

◆ update()

virtual bool rBPF::Store::update ( Key  key,
Value  value 
)
pure virtual

Update value in store.

Parameters
key
value
Return values
booltrue on success, false if store is full

Implemented in rBPF::GlobalStore, rBPF::LocalStore, rBPF::GlobalStore, and rBPF::LocalStore.


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