Carefree (For Windows) 0.7
CareFree Library - A Light Data Generator for OI & ACM
载入中...
搜索中...
未找到
carefree_internal 命名空间参考

命名空间

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
 

类型定义

using _invalid_argument = std::invalid_argument
 
using _range_exception = std::out_of_range
 
using _runtime_exception = std::runtime_error
 
using carefree_invalid_argument = carefree_exception<_invalid_argument, carefree_invalid_argument_name>
 
using carefree_range_exception = carefree_exception<_range_exception, carefree_range_exception_name>
 
using carefree_unsupported_operation = carefree_exception<_unsupported_operation, carefree_unsupported_operation_name>
 
using carefree_file_exception = carefree_exception<_file_exception, carefree_file_exception_name>
 
using carefree_runtime_exception = carefree_exception<_runtime_exception, carefree_runtime_exception_name>
 
using carefree_system_exception = carefree_exception<_system_exception, carefree_system_exception_name>
 
using carefree_validate_failed = carefree_exception<_validate_failed, carefree_validate_failed_name>
 
using _Weight = long long
 
using edge = graph::edge
 
using weighted_output = graph::weighted_output
 
using unweighted_output = graph::unweighted_output
 
using process = process_win
 
using ull = unsigned long long
 
using creadable = comparator::readable
 
using ctext = comparator::text
 
using cfile = comparator::file
 

枚举

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 >
randint (T l, T r)
 
template<class 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
 

类型定义说明

◆ _invalid_argument

using carefree_internal::_invalid_argument = std::invalid_argument

◆ _range_exception

using carefree_internal::_range_exception = std::out_of_range

◆ _runtime_exception

using carefree_internal::_runtime_exception = std::runtime_error

◆ _Weight

using carefree_internal::_Weight = long long

◆ carefree_file_exception

◆ carefree_invalid_argument

◆ carefree_range_exception

◆ carefree_runtime_exception

◆ carefree_system_exception

◆ carefree_unsupported_operation

◆ carefree_validate_failed

◆ cfile

◆ creadable

◆ ctext

◆ edge

◆ process

◆ ull

using carefree_internal::ull = unsigned long long

◆ unweighted_output

◆ weighted_output

枚举类型说明

◆ cpp_version

枚举值
Cpp98 
Cpp03 
Cpp11 
Cpp14 
Cpp17 
Cpp20 

◆ exception_policy

枚举值
Throw 
Ignore 
Friendly 
Simulate 

◆ judge_result_type

枚举值
Accepted 
WrongAnswer 
TimeLimitExceeded 
MemoryLimitExceeded 
RuntimeError 
CompileError 
PresentationError 
OutputLimitExceeded 
UnknownError 
JudgeFailed 
PartiallyCorrect 
Skipped 

◆ optimization_type

枚举值
O0 
O1 
O2 
O3 
Ofast 

函数说明

◆ __attribute__()

carefree_internal::__attribute__ ( (constructor) )

◆ __fts()

template<class T >
string carefree_internal::__fts ( T val,
unsigned precision = 10 )
函数调用图:
这是这个函数的调用关系图:

◆ __split()

std::vector< string > carefree_internal::__split ( const string & str,
string delims )
这是这个函数的调用关系图:

◆ autoclear_tmpfiles()

int carefree_internal::autoclear_tmpfiles ( )
函数调用图:

◆ binary_tree()

graph carefree_internal::binary_tree ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ chain()

graph carefree_internal::chain ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ chain_star()

graph carefree_internal::chain_star ( int n,
int k,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ choice()

template<class T >
T::value_type carefree_internal::choice ( T val)
函数调用图:
这是这个函数的调用关系图:

◆ combat()

template<class T1 , class T2 >
bool carefree_internal::combat ( limprog champion,
limprog challenger,
T1 input_generator,
T2 cmp,
int times = -1,
bool ole_check = true )
函数调用图:

◆ complete()

graph carefree_internal::complete ( int n,
int k,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:
这是这个函数的调用关系图:

◆ complete_binary()

graph carefree_internal::complete_binary ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ connected_directed_graph()

graph carefree_internal::connected_directed_graph ( int n,
int m,
bool repeat_edges = false,
bool self_loop = false,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ connected_undirected_graph()

graph carefree_internal::connected_undirected_graph ( int n,
int m,
bool repeat_edges = false,
bool self_loop = false,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ dag()

graph carefree_internal::dag ( int n,
int m,
bool repeat_edges = false,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ err_equal_checker()

template<class T >
void carefree_internal::err_equal_checker ( T x,
T l,
string func_name,
string var_name )
函数调用图:

◆ err_geq_checker()

template<class T >
void carefree_internal::err_geq_checker ( T x,
T l,
string func_name,
string var_name )
函数调用图:
这是这个函数的调用关系图:

◆ err_greater_checker()

template<class T >
void carefree_internal::err_greater_checker ( T x,
T l,
string func_name,
string var_name )
函数调用图:

◆ err_inrange_checker()

template<class T >
void carefree_internal::err_inrange_checker ( T x,
T l,
T r,
string func_name,
string var_name )
函数调用图:
这是这个函数的调用关系图:

◆ err_leq_checker()

template<class T >
void carefree_internal::err_leq_checker ( T x,
T l,
string func_name,
string var_name )
函数调用图:

◆ err_less_checker()

template<class T >
void carefree_internal::err_less_checker ( T x,
T l,
string func_name,
string var_name )
函数调用图:

◆ err_natural_checker()

template<class T >
void carefree_internal::err_natural_checker ( T x,
string func_name,
string var_name )
函数调用图:
这是这个函数的调用关系图:

◆ err_positive_checker()

template<class T >
void carefree_internal::err_positive_checker ( T x,
string func_name,
string var_name )
函数调用图:
这是这个函数的调用关系图:

◆ err_range_checker()

template<class T >
void carefree_internal::err_range_checker ( T l,
T r,
string func_name )
函数调用图:
这是这个函数的调用关系图:

◆ err_unempty_checker()

template<class T >
void carefree_internal::err_unempty_checker ( T x,
string func_name,
string var_name )
函数调用图:
这是这个函数的调用关系图:

◆ err_unequal_checker()

template<class T >
void carefree_internal::err_unequal_checker ( T x,
T l,
string func_name,
string var_name )
函数调用图:

◆ externalize()

graph carefree_internal::externalize ( graph tree)
函数调用图:
这是这个函数的调用关系图:

◆ firecrackers()

graph carefree_internal::firecrackers ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ flower()

graph carefree_internal::flower ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ fts() [1/4]

string carefree_internal::fts ( double val,
unsigned precision = 10 )
函数调用图:

◆ fts() [2/4]

string carefree_internal::fts ( float val,
unsigned precision = 10 )
函数调用图:
这是这个函数的调用关系图:

◆ fts() [3/4]

string carefree_internal::fts ( long double val,
unsigned precision = 10 )
函数调用图:

◆ fts() [4/4]

template<class T >
std::vector< string > carefree_internal::fts ( std::vector< T > val,
unsigned precision = 10 )
函数调用图:

◆ gen_data() [1/2]

template<class T >
void carefree_internal::gen_data ( int subtask_count,
int task_per_subtask,
T function )
函数调用图:

◆ gen_data() [2/2]

template<class T >
void carefree_internal::gen_data ( int task_count,
T function )
函数调用图:

◆ get_depth()

std::vector< int > carefree_internal::get_depth ( graph g)
函数调用图:
这是这个函数的调用关系图:

◆ get_exception_policy()

exception_policy carefree_internal::get_exception_policy ( )
noexcept
这是这个函数的调用关系图:

◆ helloworld()

void carefree_internal::helloworld ( )

◆ introvert()

graph carefree_internal::introvert ( graph tree)
函数调用图:

◆ is_file_creatable()

bool carefree_internal::is_file_creatable ( string filename)
这是这个函数的调用关系图:

◆ is_tree()

bool carefree_internal::is_tree ( graph g)
函数调用图:

◆ join_str()

template<class T1 , class T2 >
string carefree_internal::join_str ( T1 a,
T2 b )
这是这个函数的调用关系图:

◆ jrt2s()

string carefree_internal::jrt2s ( judge_result_type type)

◆ jrt2sf()

string carefree_internal::jrt2sf ( judge_result_type type)

◆ judge()

template<class T >
judge_result carefree_internal::judge ( limprog prog,
const string & input_file,
const string & answer_file,
T cmp,
bool ole_check = true )
函数调用图:
这是这个函数的调用关系图:

◆ limited_run()

judge_result carefree_internal::limited_run ( limprog prog,
const string & input_file,
const string & output_file )
函数调用图:
这是这个函数的调用关系图:

◆ listdir()

void carefree_internal::listdir ( string path,
std::vector< string > & files )
这是这个函数的调用关系图:

◆ lowhigh()

graph carefree_internal::lowhigh ( int n,
double low,
double high,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:
这是这个函数的调用关系图:

◆ ltv()

template<class T >
std::vector< T > carefree_internal::ltv ( std::initializer_list< T > val)

◆ max_degree()

graph carefree_internal::max_degree ( int n,
int k,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:
这是这个函数的调用关系图:

◆ naive_tree()

graph carefree_internal::naive_tree ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ nextid()

ull carefree_internal::nextid ( )
这是这个函数的调用关系图:

◆ operator!()

template<class T >
condition< T > carefree_internal::operator! ( condition< T > a)

◆ operator&()

template<class T >
condition< T > carefree_internal::operator& ( condition< T > a,
condition< T > b )

◆ operator&&()

template<class T >
condition< T > carefree_internal::operator&& ( condition< T > a,
condition< T > b )

◆ operator|()

template<class T >
condition< T > carefree_internal::operator| ( condition< T > a,
condition< T > b )

◆ operator||()

template<class T >
condition< T > carefree_internal::operator|| ( condition< T > a,
condition< T > b )

◆ prufer_decode()

graph carefree_internal::prufer_decode ( int n,
std::vector< int > prufer,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:
这是这个函数的调用关系图:

◆ quote()

string carefree_internal::quote ( string s)

◆ raise()

template<class T1 , class T2 >
void carefree_internal::raise ( carefree_exception< T1, T2 > err)
函数调用图:
这是这个函数的调用关系图:

◆ randint()

template<class T >
T carefree_internal::randint ( T l,
T r )
函数调用图:
这是这个函数的调用关系图:

◆ random()

double carefree_internal::random ( )
函数调用图:

◆ random_graph()

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 )
函数调用图:

◆ random_tree()

graph carefree_internal::random_tree ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:
这是这个函数的调用关系图:

◆ randstr() [1/2]

string carefree_internal::randstr ( int length,
const string sset = strsets::lower )
函数调用图:
这是这个函数的调用关系图:

◆ randstr() [2/2]

string carefree_internal::randstr ( int lengthL,
int lengthR,
const string sset = strsets::lower )
函数调用图:

◆ relabel()

graph carefree_internal::relabel ( graph g)
函数调用图:

◆ sequence() [1/3]

template<class T >
std::vector< T > carefree_internal::sequence ( int lengthL,
int lengthR,
T l,
T r )
函数调用图:

◆ sequence() [2/3]

template<class T , class Value >
std::vector< Value > carefree_internal::sequence ( int n,
T function )
函数调用图:
这是这个函数的调用关系图:

◆ sequence() [3/3]

template<class T >
std::vector< T > carefree_internal::sequence ( int n,
T l,
T r )
函数调用图:

◆ set_exception_policy()

void carefree_internal::set_exception_policy ( exception_policy policy)
函数调用图:

◆ shuffle()

template<class T >
void carefree_internal::shuffle ( T val)

◆ silkworm()

graph carefree_internal::silkworm ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:

◆ star()

graph carefree_internal::star ( int n,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:
这是这个函数的调用关系图:

◆ tail()

graph carefree_internal::tail ( int n,
int k,
_Weight weightL = 0,
_Weight weightR = 0 )
函数调用图:
这是这个函数的调用关系图:

◆ timer()

template<class T >
double carefree_internal::timer ( T function)
这是这个函数的调用关系图:

◆ uniform()

template<class T >
T carefree_internal::uniform ( T l,
T r )
函数调用图:
这是这个函数的调用关系图:

◆ working_directory()

string carefree_internal::working_directory ( )
这是这个函数的调用关系图:

变量说明

◆ ES

struct carefree_internal::__enum_shortcut carefree_internal::ES

◆ exception_policy_val

exception_policy carefree_internal::exception_policy_val = exception_policy::Throw

◆ public_random_engine

std::mt19937_64 carefree_internal::public_random_engine