codex
Loading...
Searching...
No Matches
common.hpp File Reference
#include <functional>
#include <random>
#include <string_view>
#include <vector>
#include <tuple>
#include "cmd.hpp"
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
std::vector< char > rnd_vec (T *gen, std::size_t n)
 
template<typename T >
auto gen_input (T *gen)
 
template<typename T , typename C , bool B>
void encode_test (auto *gen)
 
template<typename T , typename C , bool B>
void decode_test (auto *gen)
 
template<auto F>
void check_encode (std::string_view input, const std::vector< char > &output)
 
template<auto F>
void check_decode (std::string_view input, std::string_view encoded, const std::vector< char > &output)
 

Function Documentation

◆ check_decode()

template<auto F>
void check_decode ( std::string_view input,
std::string_view encoded,
const std::vector< char > & output )
Here is the caller graph for this function:

◆ check_encode()

template<auto F>
void check_encode ( std::string_view input,
const std::vector< char > & output )
Here is the caller graph for this function:

◆ decode_test()

template<typename T , typename C , bool B>
void decode_test ( auto * gen)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ encode_test()

template<typename T , typename C , bool B>
void encode_test ( auto * gen)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gen_input()

template<typename T >
auto gen_input ( T * gen)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rnd_vec()

template<typename T >
std::vector< char > rnd_vec ( T * gen,
std::size_t n )
Here is the call graph for this function:
Here is the caller graph for this function: