rBPF::LocalStore Class Reference

#include <Store.h>

Inheritance diagram for rBPF::LocalStore:
Collaboration diagram for rBPF::LocalStore:

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...
 
 LocalStore (VirtualMachine &vm)
 
bool update (Key key, Value value) override
 Update value in store. More...
 
bool fetch (Key key, Value &value) override
 Fetch value from store. More...
 
- Public Member Functions inherited from rBPF::Store
Value get (Key key)
 Fetch value from store. More...
 
Entry operator[] (Key key)
 

Additional Inherited Members

- Public Types inherited from rBPF::Store
using Key = uint32_t
 
using Value = uint32_t
 

Constructor & Destructor Documentation

◆ LocalStore()

rBPF::LocalStore::LocalStore ( VirtualMachine vm)
inline

Member Function Documentation

◆ fetch() [1/2]

bool rBPF::LocalStore::fetch ( Key  key,
Value value 
)
inlineoverridevirtual

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.

Implements rBPF::Store.

◆ fetch() [2/2]

bool rBPF::LocalStore::fetch ( Key  key,
Value value 
)
overridevirtual

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.

Implements rBPF::Store.

◆ update() [1/2]

bool rBPF::LocalStore::update ( Key  key,
Value  value 
)
inlineoverridevirtual

Update value in store.

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

Implements rBPF::Store.

◆ update() [2/2]

bool rBPF::LocalStore::update ( Key  key,
Value  value 
)
overridevirtual

Update value in store.

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

Implements rBPF::Store.


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