Bitcoin Core  0.20.99
P2P Digital Currency
Classes | Macros | Typedefs | Functions
prevector.cpp File Reference
#include <prevector.h>
#include <serialize.h>
#include <streams.h>
#include <type_traits>
#include <bench/bench.h>
Include dependency graph for prevector.cpp:

Go to the source code of this file.

Classes

struct  nontrivial_t
 

Macros

#define IS_TRIVIALLY_CONSTRUCTIBLE   std::is_trivially_default_constructible
 
#define PREVECTOR_TEST(name, nontrivops, trivops)
 

Typedefs

typedef unsigned char trivial_t
 

Functions

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

Macro Definition Documentation

◆ IS_TRIVIALLY_CONSTRUCTIBLE

#define IS_TRIVIALLY_CONSTRUCTIBLE   std::is_trivially_default_constructible

Definition at line 17 of file prevector.cpp.

◆ PREVECTOR_TEST

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

Definition at line 98 of file prevector.cpp.

Typedef Documentation

◆ trivial_t

typedef unsigned char trivial_t

Definition at line 26 of file prevector.cpp.

Function Documentation

◆ PrevectorClear()

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

Definition at line 46 of file prevector.cpp.

Here is the call graph for this function:

◆ PrevectorDeserialize()

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

Definition at line 77 of file prevector.cpp.

Here is the call graph for this function:

◆ PrevectorDestructor()

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

Definition at line 33 of file prevector.cpp.

Here is the call graph for this function:

◆ PrevectorResize()

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

Definition at line 62 of file prevector.cpp.

Here is the call graph for this function: