Derecho  0.9
Distributed systems toolkit for RDMA
PersistentTypenames.hpp
Go to the documentation of this file.
1 
9 #pragma once
10 #include <cstdint>
11 #include <functional>
12 
13 namespace persistent {
14 
15 using version_t = int64_t;
16 
17 // function types to be registered for create version
18 // , persist version, and trim a version
19 using VersionFunc = std::function<void(const version_t &,const HLC &)>;
20 using PersistFunc = std::function<const version_t(void)>;
21 using TrimFunc = std::function<void(const version_t &)>;
22 using LatestPersistedGetterFunc = std::function<const version_t(void)>;
23 using TruncateFunc = std::function<void(const int64_t &)>;
24 // this function is obsolete, now we use a shared pointer to persistence registry
25 // using PersistentCallbackRegisterFunc = std::function<void(const char*,VersionFunc,PersistFunc,TrimFunc)>;
26 }
27 
This file include all common types internal to derecho and not necessarily being known by a client pr...
std::function< void(const version_t &, const HLC &)> VersionFunc
std::function< const version_t(void)> PersistFunc
std::function< void(const int64_t &)> TruncateFunc
std::function< void(const version_t &)> TrimFunc
std::function< const version_t(void)> LatestPersistedGetterFunc