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()
Fetch value from store.
- Parameters
-
key value
- Return values
-
bool true 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::GlobalStore, rBPF::LocalStore, and rBPF::LocalStore.
◆ get()
◆ operator[]()
◆ update()
Update value in store.
- Parameters
-
key value
- Return values
-
bool true on success, false if store is full
Implemented in rBPF::GlobalStore, rBPF::GlobalStore, rBPF::LocalStore, and rBPF::LocalStore.
The documentation for this class was generated from the following file: