OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Functions | Variables
Snapshots_ut.cpp File Reference
#include <vector>
#include <string>
#include "Testing/Unit/UnitTest.h"
#include "Library/Snapshots/CommonSnapshots.h"
#include "Library/Snapshots/SnapshotSerialization.h"
#include "Utility/Streams/StringOutputStream.h"
#include "Utility/Streams/MemoryInputStream.h"

Classes

struct  Int_MM
 

Functions

void snapshot (int src, Int_MM *dst)
 
void reconstruct (const Int_MM &src, int *dst)
 
 UNIT_TEST (Snapshots, Via)
 
 UNIT_TEST (Snapshots, SizedVia)
 
 UNIT_TEST (Snapshots, MultiSizedVia)
 
 UNIT_TEST (Snapshots, AppendSizedVia)
 
 UNIT_TEST (Snapshots, AppendVia)
 
 UNIT_TEST (Snapshots, ArrayVia)
 
 UNIT_TEST (Snapshots, IndexedBitset)
 
 UNIT_TEST (Snapshots, Cast)
 
template<class T1 , class T2 >
bool snapshotCastCompiles ()
 
 UNIT_TEST (Snapshots, CastRequiresExplicitTypes)
 

Variables

static const std::vector< int > ints012 = {0, 1, 2}
 
static const std::vector< int > ints345 = {3, 4, 5}
 
static const std::vector< int > ints012345 = {0, 1, 2, 3, 4, 5}
 

Function Documentation

◆ reconstruct()

void reconstruct ( const Int_MM src,
int *  dst 
)

◆ snapshot()

void snapshot ( int  src,
Int_MM dst 
)

◆ snapshotCastCompiles()

template<class T1 , class T2 >
bool snapshotCastCompiles ( )

◆ UNIT_TEST() [1/9]

UNIT_TEST ( Snapshots  ,
AppendSizedVia   
)

◆ UNIT_TEST() [2/9]

UNIT_TEST ( Snapshots  ,
AppendVia   
)

◆ UNIT_TEST() [3/9]

UNIT_TEST ( Snapshots  ,
ArrayVia   
)

◆ UNIT_TEST() [4/9]

UNIT_TEST ( Snapshots  ,
Cast   
)

◆ UNIT_TEST() [5/9]

UNIT_TEST ( Snapshots  ,
CastRequiresExplicitTypes   
)

◆ UNIT_TEST() [6/9]

UNIT_TEST ( Snapshots  ,
IndexedBitset   
)

◆ UNIT_TEST() [7/9]

UNIT_TEST ( Snapshots  ,
MultiSizedVia   
)

◆ UNIT_TEST() [8/9]

UNIT_TEST ( Snapshots  ,
SizedVia   
)

◆ UNIT_TEST() [9/9]

UNIT_TEST ( Snapshots  ,
Via   
)

Variable Documentation

◆ ints012

const std::vector<int> ints012 = {0, 1, 2}
static

◆ ints012345

const std::vector<int> ints012345 = {0, 1, 2, 3, 4, 5}
static

◆ ints345

const std::vector<int> ints345 = {3, 4, 5}
static