codex
Loading...
Searching...
No Matches
anonymous_namespace{bench.cpp} Namespace Reference

Typedefs

using T = int
 
using V = std::vector<int>
 
using I = typename V::const_iterator
 
using bsearch_fn = bool(I, I, const T&)
 

Functions

void test_data ()
 
bool write_rnd_file (std::mt19937 *rnd, QTemporaryFile *f, char *buffer, std::size_t size)
 
bool exec_cmd (const QStringList &args, const QString &input, const QString &output)
 
bool read_all (QTemporaryFile *f, char *buffer, qint64 n)
 
bool files_equal (QTemporaryFile *f0, QTemporaryFile *f1, char *buffer0, char *buffer1)
 
void exec_test (std::mt19937 *rnd, char *buffer0, char *buffer1)
 

Variables

constexpr std::size_t BUFFER_SIZE = 1024
 
constexpr std::array fns = {codex::bsearch<I, I, T>, std::binary_search<I, T>}
 

Typedef Documentation

◆ bsearch_fn

using anonymous_namespace{bench.cpp}::bsearch_fn = bool(I, I, const T&)

◆ I

using anonymous_namespace{bench.cpp}::I = typename V::const_iterator

◆ T

using anonymous_namespace{bench.cpp}::T = int

◆ V

using anonymous_namespace{bench.cpp}::V = std::vector<int>

Function Documentation

◆ exec_cmd()

bool anonymous_namespace{bench.cpp}::exec_cmd ( const QStringList & args,
const QString & input,
const QString & output )
Here is the caller graph for this function:

◆ exec_test()

void anonymous_namespace{bench.cpp}::exec_test ( std::mt19937 * rnd,
char * buffer0,
char * buffer1 )
Here is the call graph for this function:

◆ files_equal()

bool anonymous_namespace{bench.cpp}::files_equal ( QTemporaryFile * f0,
QTemporaryFile * f1,
char * buffer0,
char * buffer1 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_all()

bool anonymous_namespace{bench.cpp}::read_all ( QTemporaryFile * f,
char * buffer,
qint64 n )
Here is the caller graph for this function:

◆ test_data()

void anonymous_namespace{bench.cpp}::test_data ( )
Here is the call graph for this function:

◆ write_rnd_file()

bool anonymous_namespace{bench.cpp}::write_rnd_file ( std::mt19937 * rnd,
QTemporaryFile * f,
char * buffer,
std::size_t size )
Here is the caller graph for this function:

Variable Documentation

◆ BUFFER_SIZE

std::size_t anonymous_namespace{bench.cpp}::BUFFER_SIZE = 1024
constexpr

◆ fns

std::array anonymous_namespace{bench.cpp}::fns = {codex::bsearch<I, I, T>, std::binary_search<I, T>}
constexpr