libuav original
Dependents: UAVCAN UAVCAN_Subscriber
Log Class Reference
Raft log. More...
#include <log.hpp>
Public Member Functions | |
| int | append (const Entry &entry) |
| This method invokes storage IO. | |
| int | removeEntriesWhereIndexGreaterOrEqual (Index index) |
| This method invokes storage IO. | |
| const Entry * | getEntryAtIndex (Index index) const |
| Returns nullptr if there's no such index. | |
Detailed Description
Raft log.
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 25 of file log.hpp.
Member Function Documentation
| int append | ( | const Entry & | entry ) |
| const Entry* getEntryAtIndex | ( | Index | index ) | const |
Generated on Tue Jul 12 2022 17:17:37 by
1.7.2