67 return ledger_ == other.ledger_ && index_ == other.index_;
73 : ledger_(ledger), index_(index) {}
188 std::unique_ptr<State> state_;
std::input_iterator_tag iterator_category
const_iterator operator++(int)
bool operator==(const const_iterator &other) const
const_iterator & operator++()
bool operator!=(const const_iterator &other) const
std::ptrdiff_t difference_type
void replace(size_type global, const Trade &)
Trade operator[](size_type global) const
std::int32_t exit_bar_index_at(size_type global) const
void visit(size_type first, size_type end, const Visitor &) const
std::string exit_comment_at(size_type global) const
void set_cache_rows(size_type rows)
void set_scratch_directory(const std::string &)
std::string entry_comment_at(size_type global) const
double pnl_at(size_type global) const
double pnl_pct_at(size_type global) const
size_type cache_size() const
double max_runup_at(size_type global) const
static constexpr size_type kLedgerEntryBytes
std::int64_t entry_time_at(size_type global) const
static constexpr size_type kMaxCacheRows
const Trade & materialize(size_type global) const
static constexpr size_type kRecordBytes
Trade at(size_type global) const
static size_type resident_cache_bytes(size_type rows)
std::uint64_t entry_incarnation_at(size_type global) const
bool previous(size_type &cursor, Trade &value) const
static constexpr size_type kResidentRows
size_type cache_resident_bytes() const
std::int32_t entry_bar_index_at(size_type global) const
void resize(size_type global_end)
void push_back(Trade &&trade)
void seal(size_type global_end)
TradeLedger(const TradeLedger &)
double commission_at(size_type global) const
size_type resident_size() const
void modify(size_type global, const std::function< void(Trade &)> &)
double entry_price_at(size_type global) const
const_iterator begin() const
double max_drawdown_at(size_type global) const
static constexpr size_type kCacheStringBytes
Trade numeric_at(size_type global) const
static constexpr size_type kDefaultCacheRows
std::string exit_id_at(size_type global) const
double exit_price_at(size_type global) const
static constexpr size_type kSinkCacheRows
TradeLedger(TradeLedger &&)
void push_back(const Trade &trade)
Append at the logical global end (3.4:613-616).
Trade read(size_type global) const
bool is_long_at(size_type global) const
std::string entry_id_at(size_type global) const
std::int64_t exit_time_at(size_type global) const
size_type resident_base() const
std::function< bool(size_type, const Trade &)> Visitor
size_type cache_rows() const
double qty_at(size_type global) const
TradeLedger & operator=(const TradeLedger &)
const std::string & scratch_directory() const
const_iterator end() const
TradeLedger & operator=(TradeLedger &&)