CCF
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
aft::ViewHistory Class Reference

#include <state.h>

Public Member Functions

void initialise (const std::vector< ccf::kv::Version > &terms_)
 
void update (ccf::kv::Version idx, ccf::View view)
 
ccf::View view_at (ccf::kv::Version idx)
 
ccf::kv::Version start_of_view (ccf::View view)
 
ccf::kv::Version end_of_view (ccf::View view)
 
std::vector< ccf::kv::Versionget_history_until (ccf::kv::Version idx=std::numeric_limits< ccf::kv::Version >::max())
 
std::vector< ccf::kv::Versionget_history_since (uint64_t view)
 
void rollback (ccf::kv::Version idx)
 

Static Public Attributes

static constexpr ccf::View InvalidView = ccf::VIEW_UNKNOWN
 

Member Function Documentation

◆ end_of_view()

ccf::kv::Version aft::ViewHistory::end_of_view ( ccf::View  view)
inline

◆ get_history_since()

std::vector< ccf::kv::Version > aft::ViewHistory::get_history_since ( uint64_t  view)
inline

◆ get_history_until()

std::vector< ccf::kv::Version > aft::ViewHistory::get_history_until ( ccf::kv::Version  idx = std::numeric_limits<ccf::kv::Version>::max())
inline

◆ initialise()

void aft::ViewHistory::initialise ( const std::vector< ccf::kv::Version > &  terms_)
inline

◆ rollback()

void aft::ViewHistory::rollback ( ccf::kv::Version  idx)
inline

◆ start_of_view()

ccf::kv::Version aft::ViewHistory::start_of_view ( ccf::View  view)
inline

◆ update()

void aft::ViewHistory::update ( ccf::kv::Version  idx,
ccf::View  view 
)
inline

◆ view_at()

ccf::View aft::ViewHistory::view_at ( ccf::kv::Version  idx)
inline

Member Data Documentation

◆ InvalidView

constexpr ccf::View aft::ViewHistory::InvalidView = ccf::VIEW_UNKNOWN
staticconstexpr

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