|
Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
|
#include <slick-trader/brokers/common/slot_store.hpp>
Public Types | |
| using | Identity = std::array<char, detail::SlotFile::IDENTITY_SIZE> |
Public Member Functions | |
| SlotStore (const std::string &path, const SlotStoreFormat &format, const Identity &identity, std::string_view identity_text, size_t max_records=DEFAULT_MAX_RECORDS) | |
| State & | state () noexcept |
| template<typename F> | |
| void | for_each (F &&f) const |
| uint32_t | save (uint32_t index, const Record &record) |
| void | release (uint32_t index) noexcept |
| size_t | capacity () const noexcept |
| size_t | size () const noexcept |
| const std::string & | path () const noexcept |
| bool | created () const noexcept |
Static Public Attributes | |
| static constexpr uint32_t | NO_SLOT = UINT32_MAX |
| static constexpr size_t | DEFAULT_MAX_RECORDS = 4096 |
Definition at line 80 of file slot_store.hpp.
| using slick::trader::SlotStore< State, Record >::Identity = std::array<char, detail::SlotFile::IDENTITY_SIZE> |
Definition at line 88 of file slot_store.hpp.
|
inline |
Definition at line 90 of file slot_store.hpp.
References DEFAULT_MAX_RECORDS, and path().
|
inlinenodiscardnoexcept |
Definition at line 148 of file slot_store.hpp.
|
inlinenodiscardnoexcept |
Definition at line 152 of file slot_store.hpp.
|
inline |
Definition at line 109 of file slot_store.hpp.
|
inlinenodiscardnoexcept |
Definition at line 150 of file slot_store.hpp.
Referenced by SlotStore().
|
inlinenoexcept |
Definition at line 141 of file slot_store.hpp.
References state().
|
inline |
Definition at line 120 of file slot_store.hpp.
References NO_SLOT.
|
inlinenodiscardnoexcept |
Definition at line 149 of file slot_store.hpp.
|
inlinenodiscardnoexcept |
Definition at line 105 of file slot_store.hpp.
Referenced by release().
|
staticconstexpr |
Definition at line 87 of file slot_store.hpp.
Referenced by SlotStore().
|
staticconstexpr |
Definition at line 86 of file slot_store.hpp.
Referenced by save().