Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

prevector.cpp File Reference
#include <compat.h>
#include <prevector.h>
#include <bench/bench.h>
#include <vector>
+ Include dependency graph for prevector.cpp:

Go to the source code of this file.

Classes

struct  nontrivial_t
 

Macros

#define PREVECTOR_TEST(name, nontrivops, trivops)
 

Typedefs

typedef unsigned char trivial_t
 
typedef prevector< 28, unsigned char > prevec
 

Functions

template<typename T >
static void PrevectorDestructor (benchmark::State &state)
 
template<typename T >
static void PrevectorClear (benchmark::State &state)
 
template<typename T >
void PrevectorResize (benchmark::State &state)
 
static void PrevectorAssign (benchmark::State &state)
 
static void PrevectorAssignTo (benchmark::State &state)
 

Macro Definition Documentation

◆ PREVECTOR_TEST

#define PREVECTOR_TEST (   name,
  nontrivops,
  trivops 
)
Value:
static void Prevector ## name ## Nontrivial(benchmark::State& state) { \
PrevectorResize<nontrivial_t>(state); \
} \
BENCHMARK(Prevector ## name ## Nontrivial/*, nontrivops*/); \
static void Prevector ## name ## Trivial(benchmark::State& state) { \
PrevectorResize<trivial_t>(state); \
} \
BENCHMARK(Prevector ## name ## Trivial/*, trivops*/);
const char * name
Definition: rest.cpp:36

Definition at line 65 of file prevector.cpp.

Typedef Documentation

◆ prevec

typedef prevector<28, unsigned char> prevec

Definition at line 81 of file prevector.cpp.

◆ trivial_t

typedef unsigned char trivial_t

Definition at line 15 of file prevector.cpp.

Function Documentation

◆ PrevectorAssign()

static void PrevectorAssign ( benchmark::State state)
static

◆ PrevectorAssignTo()

◆ PrevectorClear()

template<typename T >
static void PrevectorClear ( benchmark::State state)
static

◆ PrevectorDestructor()

template<typename T >
static void PrevectorDestructor ( benchmark::State state)
static

◆ PrevectorResize()

template<typename T >
void PrevectorResize ( benchmark::State state)
Released under the MIT license