libuav original
Dependents: UAVCAN UAVCAN_Subscriber
Storage Class Reference
This class transparently replicates its state to the storage backend, keeping the most recent state in memory. More...
#include <storage.hpp>
Public Member Functions | |
int | init () |
This method reads only the occupation mask from the storage. | |
int | add (const NodeID node_id, const UniqueID &unique_id) |
This method invokes storage IO. | |
NodeID | getNodeIDForUniqueID (const UniqueID &unique_id) const |
Returns an invalid node ID if there's no such allocation. |
Detailed Description
This class transparently replicates its state to the storage backend, keeping the most recent state in memory.
Writes are slow, reads are instantaneous.
Definition at line 24 of file storage.hpp.
Member Function Documentation
int add | ( | const NodeID | node_id, |
const UniqueID & | unique_id | ||
) |
This method invokes storage IO.
Returned value indicates whether the entry was successfully appended.
Definition at line 86 of file storage.hpp.
NodeID getNodeIDForUniqueID | ( | const UniqueID & | unique_id ) | const |
Returns an invalid node ID if there's no such allocation.
Definition at line 133 of file storage.hpp.
int init | ( | ) |
This method reads only the occupation mask from the storage.
Definition at line 73 of file storage.hpp.
Generated on Tue Jul 12 2022 17:17:37 by 1.7.2