Carefree (For Windows) 0.7
CareFree Library - A Light Data Generator for OI & ACM
|
命名空间 | |
namespace | cpp_warnings |
namespace | pred |
namespace | strsets |
类 | |
struct | __enum_shortcut |
class | _base_exception |
class | _file_exception |
class | _system_exception |
class | _unsupported_operation |
class | _validate_failed |
class | BalancedTree |
class | carefree_exception |
struct | carefree_exception_name |
struct | carefree_file_exception_name |
struct | carefree_invalid_argument_name |
struct | carefree_range_exception_name |
struct | carefree_runtime_exception_name |
struct | carefree_system_exception_name |
struct | carefree_unsupported_operation_name |
struct | carefree_validate_failed_name |
class | comparator |
class | condition |
class | gcc_compile |
class | graph |
struct | judge_result |
struct | limprog |
class | luogu_testcase_config_writer |
class | process_base |
class | process_win |
class | strict_comparator |
class | strict_comparator_naive |
class | testcase_writer |
class | testlib_comparator |
class | token_comparator |
枚举 | |
enum | exception_policy { Throw , Ignore , Friendly , Simulate } |
enum | judge_result_type { Accepted , WrongAnswer , TimeLimitExceeded , MemoryLimitExceeded , RuntimeError , CompileError , PresentationError , OutputLimitExceeded , UnknownError , JudgeFailed , PartiallyCorrect , Skipped } |
enum | optimization_type { O0 , O1 , O2 , O3 , Ofast } |
enum | cpp_version { Cpp98 , Cpp03 , Cpp11 , Cpp14 , Cpp17 , Cpp20 } |
函数 | |
exception_policy | get_exception_policy () noexcept |
template<class T1 , class T2 > | |
void | raise (carefree_exception< T1, T2 > err) |
template<class T > | |
void | err_range_checker (T l, T r, string func_name) |
template<class T > | |
void | err_unempty_checker (T x, string func_name, string var_name) |
template<class T > | |
void | err_positive_checker (T x, string func_name, string var_name) |
template<class T > | |
void | err_natural_checker (T x, string func_name, string var_name) |
template<class T > | |
void | err_inrange_checker (T x, T l, T r, string func_name, string var_name) |
template<class T > | |
void | err_less_checker (T x, T l, string func_name, string var_name) |
template<class T > | |
void | err_greater_checker (T x, T l, string func_name, string var_name) |
template<class T > | |
void | err_leq_checker (T x, T l, string func_name, string var_name) |
template<class T > | |
void | err_geq_checker (T x, T l, string func_name, string var_name) |
template<class T > | |
void | err_equal_checker (T x, T l, string func_name, string var_name) |
template<class T > | |
void | err_unequal_checker (T x, T l, string func_name, string var_name) |
void | set_exception_policy (exception_policy policy) |
template<class T1 , class T2 > | |
string | join_str (T1 a, T2 b) |
template<class T > | |
string | __fts (T val, unsigned precision=10) |
string | fts (float val, unsigned precision=10) |
string | fts (double val, unsigned precision=10) |
string | fts (long double val, unsigned precision=10) |
template<class T > | |
std::vector< string > | fts (std::vector< T > val, unsigned precision=10) |
template<class T > | |
std::vector< T > | ltv (std::initializer_list< T > val) |
template<class T > | |
T | randint (T l, T r) |
template<class T > | |
T | uniform (T l, T r) |
double | random () |
template<class T > | |
T::value_type | choice (T val) |
template<class T > | |
void | shuffle (T val) |
template<class T , class Value > | |
std::vector< Value > | sequence (int n, T function) |
template<class T > | |
std::vector< T > | sequence (int n, T l, T r) |
template<class T > | |
std::vector< T > | sequence (int lengthL, int lengthR, T l, T r) |
string | randstr (int length, const string sset=strsets::lower) |
string | randstr (int lengthL, int lengthR, const string sset=strsets::lower) |
template<class T > | |
double | timer (T function) |
template<class T > | |
void | gen_data (int subtask_count, int task_per_subtask, T function) |
template<class T > | |
void | gen_data (int task_count, T function) |
__attribute__ ((constructor)) static void init_rnd_seed() | |
bool | is_tree (graph g) |
graph | relabel (graph g) |
graph | prufer_decode (int n, std::vector< int > prufer, _Weight weightL=0, _Weight weightR=0) |
std::vector< int > | get_depth (graph g) |
graph | introvert (graph tree) |
graph | externalize (graph tree) |
graph | lowhigh (int n, double low, double high, _Weight weightL=0, _Weight weightR=0) |
graph | naive_tree (int n, _Weight weightL=0, _Weight weightR=0) |
graph | tail (int n, int k, _Weight weightL=0, _Weight weightR=0) |
graph | chain (int n, _Weight weightL=0, _Weight weightR=0) |
graph | star (int n, _Weight weightL=0, _Weight weightR=0) |
graph | flower (int n, _Weight weightL=0, _Weight weightR=0) |
graph | max_degree (int n, int k, _Weight weightL=0, _Weight weightR=0) |
graph | binary_tree (int n, _Weight weightL=0, _Weight weightR=0) |
graph | chain_star (int n, int k, _Weight weightL=0, _Weight weightR=0) |
graph | silkworm (int n, _Weight weightL=0, _Weight weightR=0) |
graph | firecrackers (int n, _Weight weightL=0, _Weight weightR=0) |
graph | complete (int n, int k, _Weight weightL=0, _Weight weightR=0) |
graph | complete_binary (int n, _Weight weightL=0, _Weight weightR=0) |
graph | random_tree (int n, _Weight weightL=0, _Weight weightR=0) |
graph | dag (int n, int m, bool repeat_edges=false, _Weight weightL=0, _Weight weightR=0) |
graph | connected_undirected_graph (int n, int m, bool repeat_edges=false, bool self_loop=false, _Weight weightL=0, _Weight weightR=0) |
graph | connected_directed_graph (int n, int m, bool repeat_edges=false, bool self_loop=false, _Weight weightL=0, _Weight weightR=0) |
graph | random_graph (int n, int m, bool directed=true, bool repeat_edges=false, bool self_loop=false, _Weight weightL=0, _Weight weightR=0) |
string | jrt2s (judge_result_type type) |
string | jrt2sf (judge_result_type type) |
std::vector< string > | __split (const string &str, string delims) |
ull | nextid () |
string | quote (string s) |
judge_result | limited_run (limprog prog, const string &input_file, const string &output_file) |
bool | is_file_creatable (string filename) |
template<class T > | |
judge_result | judge (limprog prog, const string &input_file, const string &answer_file, T cmp, bool ole_check=true) |
template<class T1 , class T2 > | |
bool | combat (limprog champion, limprog challenger, T1 input_generator, T2 cmp, int times=-1, bool ole_check=true) |
void | listdir (string path, std::vector< string > &files) |
string | working_directory () |
int | autoclear_tmpfiles () |
void | helloworld () |
template<class T > | |
condition< T > | operator|| (condition< T > a, condition< T > b) |
template<class T > | |
condition< T > | operator&& (condition< T > a, condition< T > b) |
template<class T > | |
condition< T > | operator! (condition< T > a) |
template<class T > | |
condition< T > | operator| (condition< T > a, condition< T > b) |
template<class T > | |
condition< T > | operator& (condition< T > a, condition< T > b) |
变量 | |
exception_policy | exception_policy_val = exception_policy::Throw |
std::mt19937_64 | public_random_engine |
struct carefree_internal::__enum_shortcut | ES |
using carefree_internal::_invalid_argument = std::invalid_argument |
using carefree_internal::_range_exception = std::out_of_range |
using carefree_internal::_runtime_exception = std::runtime_error |
using carefree_internal::_Weight = long long |
using carefree_internal::carefree_file_exception = carefree_exception<_file_exception, carefree_file_exception_name> |
using carefree_internal::carefree_invalid_argument = carefree_exception<_invalid_argument, carefree_invalid_argument_name> |
using carefree_internal::carefree_range_exception = carefree_exception<_range_exception, carefree_range_exception_name> |
using carefree_internal::carefree_runtime_exception = carefree_exception<_runtime_exception, carefree_runtime_exception_name> |
using carefree_internal::carefree_system_exception = carefree_exception<_system_exception, carefree_system_exception_name> |
using carefree_internal::carefree_unsupported_operation = carefree_exception<_unsupported_operation, carefree_unsupported_operation_name> |
using carefree_internal::carefree_validate_failed = carefree_exception<_validate_failed, carefree_validate_failed_name> |
using carefree_internal::edge = graph::edge |
using carefree_internal::ull = unsigned long long |
carefree_internal::__attribute__ | ( | (constructor) | ) |
string carefree_internal::__fts | ( | T | val, |
unsigned | precision = 10 ) |
std::vector< string > carefree_internal::__split | ( | const string & | str, |
string | delims ) |
int carefree_internal::autoclear_tmpfiles | ( | ) |
T::value_type carefree_internal::choice | ( | T | val | ) |
bool carefree_internal::combat | ( | limprog | champion, |
limprog | challenger, | ||
T1 | input_generator, | ||
T2 | cmp, | ||
int | times = -1, | ||
bool | ole_check = true ) |
graph carefree_internal::connected_directed_graph | ( | int | n, |
int | m, | ||
bool | repeat_edges = false, | ||
bool | self_loop = false, | ||
_Weight | weightL = 0, | ||
_Weight | weightR = 0 ) |
graph carefree_internal::connected_undirected_graph | ( | int | n, |
int | m, | ||
bool | repeat_edges = false, | ||
bool | self_loop = false, | ||
_Weight | weightL = 0, | ||
_Weight | weightR = 0 ) |
graph carefree_internal::dag | ( | int | n, |
int | m, | ||
bool | repeat_edges = false, | ||
_Weight | weightL = 0, | ||
_Weight | weightR = 0 ) |
void carefree_internal::err_equal_checker | ( | T | x, |
T | l, | ||
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_geq_checker | ( | T | x, |
T | l, | ||
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_greater_checker | ( | T | x, |
T | l, | ||
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_inrange_checker | ( | T | x, |
T | l, | ||
T | r, | ||
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_leq_checker | ( | T | x, |
T | l, | ||
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_less_checker | ( | T | x, |
T | l, | ||
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_natural_checker | ( | T | x, |
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_positive_checker | ( | T | x, |
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_range_checker | ( | T | l, |
T | r, | ||
string | func_name ) |
void carefree_internal::err_unempty_checker | ( | T | x, |
string | func_name, | ||
string | var_name ) |
void carefree_internal::err_unequal_checker | ( | T | x, |
T | l, | ||
string | func_name, | ||
string | var_name ) |
string carefree_internal::fts | ( | double | val, |
unsigned | precision = 10 ) |
string carefree_internal::fts | ( | float | val, |
unsigned | precision = 10 ) |
string carefree_internal::fts | ( | long double | val, |
unsigned | precision = 10 ) |
std::vector< string > carefree_internal::fts | ( | std::vector< T > | val, |
unsigned | precision = 10 ) |
void carefree_internal::gen_data | ( | int | subtask_count, |
int | task_per_subtask, | ||
T | function ) |
void carefree_internal::gen_data | ( | int | task_count, |
T | function ) |
std::vector< int > carefree_internal::get_depth | ( | graph | g | ) |
|
noexcept |
void carefree_internal::helloworld | ( | ) |
bool carefree_internal::is_file_creatable | ( | string | filename | ) |
bool carefree_internal::is_tree | ( | graph | g | ) |
string carefree_internal::join_str | ( | T1 | a, |
T2 | b ) |
string carefree_internal::jrt2s | ( | judge_result_type | type | ) |
string carefree_internal::jrt2sf | ( | judge_result_type | type | ) |
judge_result carefree_internal::judge | ( | limprog | prog, |
const string & | input_file, | ||
const string & | answer_file, | ||
T | cmp, | ||
bool | ole_check = true ) |
judge_result carefree_internal::limited_run | ( | limprog | prog, |
const string & | input_file, | ||
const string & | output_file ) |
void carefree_internal::listdir | ( | string | path, |
std::vector< string > & | files ) |
graph carefree_internal::lowhigh | ( | int | n, |
double | low, | ||
double | high, | ||
_Weight | weightL = 0, | ||
_Weight | weightR = 0 ) |
std::vector< T > carefree_internal::ltv | ( | std::initializer_list< T > | val | ) |
ull carefree_internal::nextid | ( | ) |
condition< T > carefree_internal::operator& | ( | condition< T > | a, |
condition< T > | b ) |
condition< T > carefree_internal::operator&& | ( | condition< T > | a, |
condition< T > | b ) |
condition< T > carefree_internal::operator| | ( | condition< T > | a, |
condition< T > | b ) |
condition< T > carefree_internal::operator|| | ( | condition< T > | a, |
condition< T > | b ) |
graph carefree_internal::prufer_decode | ( | int | n, |
std::vector< int > | prufer, | ||
_Weight | weightL = 0, | ||
_Weight | weightR = 0 ) |
string carefree_internal::quote | ( | string | s | ) |
void carefree_internal::raise | ( | carefree_exception< T1, T2 > | err | ) |
T carefree_internal::randint | ( | T | l, |
T | r ) |
double carefree_internal::random | ( | ) |
graph carefree_internal::random_graph | ( | int | n, |
int | m, | ||
bool | directed = true, | ||
bool | repeat_edges = false, | ||
bool | self_loop = false, | ||
_Weight | weightL = 0, | ||
_Weight | weightR = 0 ) |
string carefree_internal::randstr | ( | int | length, |
const string | sset = strsets::lower ) |
string carefree_internal::randstr | ( | int | lengthL, |
int | lengthR, | ||
const string | sset = strsets::lower ) |
std::vector< T > carefree_internal::sequence | ( | int | lengthL, |
int | lengthR, | ||
T | l, | ||
T | r ) |
std::vector< Value > carefree_internal::sequence | ( | int | n, |
T | function ) |
std::vector< T > carefree_internal::sequence | ( | int | n, |
T | l, | ||
T | r ) |
void carefree_internal::set_exception_policy | ( | exception_policy | policy | ) |
void carefree_internal::shuffle | ( | T | val | ) |
double carefree_internal::timer | ( | T | function | ) |
T carefree_internal::uniform | ( | T | l, |
T | r ) |
string carefree_internal::working_directory | ( | ) |
struct carefree_internal::__enum_shortcut carefree_internal::ES |
exception_policy carefree_internal::exception_policy_val = exception_policy::Throw |
std::mt19937_64 carefree_internal::public_random_engine |