Derecho  0.9
Distributed systems toolkit for RDMA
Classes | Macros | Functions | Variables
test.cpp File Reference
#include <derecho/mutils-serialization/SerializationSupport.hpp>
#include <derecho/persistent/HLC.hpp>
#include <derecho/persistent/Persistent.hpp>
#include <derecho/persistent/detail/util.hpp>
#include <iostream>
#include <signal.h>
#include <spdlog/spdlog.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <time.h>
Include dependency graph for test.cpp:

Go to the source code of this file.

Classes

class  X
 
class  ReplicatedT
 
class  VariableBytes
 
class  IntegerWithDelta
 

Macros

#define MAX_VB_SIZE   (1ull << 30)
 
#define LOGTAIL_FILE   "logtail.ser"
 

Functions

void sig_handler (int num)
 
Persistent< Xpx1 ([]() { return std::make_unique< X >();}, nullptr, &pr)
 
Persistent< VariableBytesnpx ([]() { return std::make_unique< VariableBytes >();}, nullptr, &pr)
 
Persistent< IntegerWithDeltadx ([]() { return std::make_unique< IntegerWithDelta >();}, nullptr, &pr)
 
template<typename OT , StorageType st = ST_FILE>
void listvar (Persistent< OT, st > &var)
 
int main (int argc, char **argv)
 

Variables

PersistentRegistry pr (nullptr, typeid(ReplicatedT), 123, 321)
 
Persistent< VariableBytesnpx_logtail ([]() { return std::make_unique< VariableBytes >();})
 
Volatile< Xpx2 ([]() { return std::make_unique< X >();})
 

Class Documentation

◆ ReplicatedT

class ReplicatedT

Definition at line 32 of file test.cpp.

Macro Definition Documentation

◆ LOGTAIL_FILE

#define LOGTAIL_FILE   "logtail.ser"

◆ MAX_VB_SIZE

#define MAX_VB_SIZE   (1ull << 30)

Definition at line 37 of file test.cpp.

Function Documentation

◆ dx()

Persistent<IntegerWithDelta> dx ( [] () { return std::make_unique< IntegerWithDelta >();}  ,
nullptr  ,
pr 
)

◆ listvar()

template<typename OT , StorageType st = ST_FILE>
void listvar ( Persistent< OT, st > &  var)

Definition at line 161 of file test.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 225 of file test.cpp.

◆ npx()

Persistent<VariableBytes> npx ( [] () { return std::make_unique< VariableBytes >();}  ,
nullptr  ,
pr 
)

◆ px1()

Persistent<X> px1 ( [] () { return std::make_unique< X >();}  ,
nullptr  ,
pr 
)

◆ sig_handler()

void sig_handler ( int  num)

Definition at line 19 of file test.cpp.

Variable Documentation

◆ npx_logtail

Persistent<VariableBytes> npx_logtail([]() { return std::make_unique< VariableBytes >();})

◆ pr

PersistentRegistry pr(nullptr, typeid(ReplicatedT), 123, 321)

◆ px2

Volatile<X> px2([]() { return std::make_unique< X >();})