rBPF::GlobalStore Class Reference
#include <Store.h>
Inheritance diagram for rBPF::GlobalStore:
Collaboration diagram for rBPF::GlobalStore:
Public Member Functions | |
bool | update (Key key, Value value) override |
Update value in store. More... | |
bool | fetch (Key key, Value &value) override |
Fetch value from store. More... | |
bool | update (Key key, Value value) override |
Update value in store. More... | |
bool | fetch (Key key, Value &value) override |
Fetch value from store. More... | |
![]() | |
Value | get (Key key) |
Fetch value from store. More... | |
Entry | operator[] (Key key) |
Additional Inherited Members | |
![]() | |
using | Key = uint32_t |
using | Value = uint32_t |
Member Function Documentation
◆ fetch() [1/2]
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.
Implements rBPF::Store.
◆ fetch() [2/2]
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.
Implements rBPF::Store.
◆ update() [1/2]
Update value in store.
- Parameters
-
key value
- Return values
-
bool true on success, false if store is full
Implements rBPF::Store.
◆ update() [2/2]
Update value in store.
- Parameters
-
key value
- Return values
-
bool true on success, false if store is full
Implements rBPF::Store.
The documentation for this class was generated from the following file: