codex
|
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>} |
using anonymous_namespace{bench.cpp}::bsearch_fn = bool(I, I, const T&) |
using anonymous_namespace{bench.cpp}::I = typename V::const_iterator |
using anonymous_namespace{bench.cpp}::T = int |
using anonymous_namespace{bench.cpp}::V = std::vector<int> |
bool anonymous_namespace{bench.cpp}::exec_cmd | ( | const QStringList & | args, |
const QString & | input, | ||
const QString & | output ) |
void anonymous_namespace{bench.cpp}::exec_test | ( | std::mt19937 * | rnd, |
char * | buffer0, | ||
char * | buffer1 ) |
bool anonymous_namespace{bench.cpp}::files_equal | ( | QTemporaryFile * | f0, |
QTemporaryFile * | f1, | ||
char * | buffer0, | ||
char * | buffer1 ) |
bool anonymous_namespace{bench.cpp}::read_all | ( | QTemporaryFile * | f, |
char * | buffer, | ||
qint64 | n ) |
void anonymous_namespace{bench.cpp}::test_data | ( | ) |
bool anonymous_namespace{bench.cpp}::write_rnd_file | ( | std::mt19937 * | rnd, |
QTemporaryFile * | f, | ||
char * | buffer, | ||
std::size_t | size ) |
|
constexpr |