|
Console Library 8.0.0
A header-only library that makes C++ simple
|
Classes | |
| struct | abs_t |
| 绝对值变换器。 More... | |
| struct | acos_t |
| 反余弦变换器。 More... | |
| struct | Add |
| 加固定值变换器。 More... | |
| struct | always_false_t |
| 恒假谓词。 More... | |
| struct | always_true_t |
| 恒真谓词。 More... | |
| struct | And |
| 逻辑与组合器。 More... | |
| struct | as |
| 转型变化器。 More... | |
| struct | asin_t |
| 反正弦变换器。 More... | |
| struct | atan_t |
| 反正切变换器。 More... | |
| struct | average_t |
| 范围平均值变换器。 More... | |
| struct | Between |
| 区间谓词(闭区间)。 More... | |
| struct | BetweenExclusive |
| 区间谓词(开区间)。 More... | |
| struct | Call |
| 函数调用变化器。 More... | |
| struct | ceil_t |
| 向上取整变换器。 More... | |
| struct | Clamp |
| 限幅变换器。 More... | |
| struct | Compose |
| 函数组合器,将两个函数组合为一个函数。 More... | |
| struct | cos_t |
| 余弦变换器。 More... | |
| struct | cube_t |
| 立方变换器。 More... | |
| struct | dec_t |
| 自减变换器。 More... | |
| struct | Div |
| 除固定值变换器。 More... | |
| struct | divides_t |
| 除法函数子。 More... | |
| struct | DivisibleBy |
| 整除谓词。 More... | |
| struct | empty_t |
| 容器判空谓词。 More... | |
| struct | Eq |
| 等于谓词。 More... | |
| struct | even_t |
| 偶数谓词。 More... | |
| struct | exp_t |
| 自然指数变换器。 More... | |
| struct | first_t |
| 取 pair 的 first 变换器。 More... | |
| struct | floor_t |
| 向下取整变换器。 More... | |
| struct | Ge |
| 大于等于谓词。 More... | |
| struct | Gt |
| 大于谓词。 More... | |
| struct | identity_t |
| 恒等变换器。 More... | |
| struct | inc_t |
| 自增变换器。 More... | |
| struct | is_null_t |
| struct | Le |
| 小于等于谓词。 More... | |
| struct | log10_t |
| 常用对数变换器(以10为底)。 More... | |
| struct | Lt |
| 小于谓词。 More... | |
| struct | max_element_t |
| 容器最大值变换器。 More... | |
| struct | Member |
| 取成员变量变换器。 More... | |
| struct | Method |
| 成员函数调用变换器。 More... | |
| struct | min_element_t |
| 容器最小值变换器。 More... | |
| struct | minus_t |
| 减法函数子。 More... | |
| struct | Mod |
| 取模固定值变换器。 More... | |
| struct | modulus_t |
| 取模函数子。 More... | |
| struct | Mul |
| 乘固定值变换器。 More... | |
| struct | multiplies_t |
| 乘法函数子。 More... | |
| struct | Ne |
| 不等于谓词。 More... | |
| struct | negate_t |
| 取负变换器。 More... | |
| struct | negative_t |
| 负数谓词。 More... | |
| struct | Not |
| 逻辑非组合器。 More... | |
| struct | not_null_t |
| struct | nth_t |
| struct | odd_t |
| 奇数谓词。 More... | |
| struct | Or |
| 逻辑或组合器。 More... | |
| struct | palindrome_t |
| 回文数谓词。 More... | |
| struct | plus_t |
| 加法函数子。 More... | |
| struct | positive_t |
| 正数谓词。 More... | |
| struct | Pow |
| 幂运算变换器。 More... | |
| struct | power_of_two_t |
| 2的幂次谓词。 More... | |
| struct | prime_t |
| 素数谓词。 More... | |
| struct | reciprocal_t |
| 倒数变换器。 More... | |
| struct | reverse_string_t |
| 字符串反转变换器。 More... | |
| struct | round_t |
| 四舍五入变换器。 More... | |
| struct | second_t |
| 取 pair 的 second 变换器。 More... | |
| struct | sign_t |
| 符号变换器。 More... | |
| struct | sin_t |
| 正弦变换器。 More... | |
| struct | size_t_ |
| 容器大小变换器。 More... | |
| struct | sqrt_t |
| 平方根变换器。 More... | |
| struct | square_t |
| 平方变换器。 More... | |
| struct | strlen_t |
| 字符串长度变换器。 More... | |
| struct | Sub |
| 减固定值变换器。 More... | |
| struct | sum_t |
| 范围求和变换器。 More... | |
| struct | tan_t |
| 正切变换器。 More... | |
| struct | timestamp_t |
| 时间戳生成器。 More... | |
| struct | to_lower_t |
| 字符串转小写变换器。 More... | |
| struct | to_string_t |
| 转为字符串变换器。 More... | |
| struct | to_upper_t |
| 字符串转大写变换器。 More... | |
| struct | trim_t |
| 字符串去空格变换器。 More... | |
| struct | unique |
| 相邻去重过滤器。 More... | |
| struct | zero_t |
| 零谓词。 More... | |
Functions | |
| template<class T> | |
| Add< T > | add (T v) |
| 创建加固定值变换器。 | |
| template<class T> | |
| Sub< T > | sub (T v) |
| 创建减固定值变换器。 | |
| template<class T> | |
| Mul< T > | mul (T v) |
| 创建乘固定值变换器。 | |
| template<class T> | |
| Div< T > | div (T v) |
| 创建除固定值变换器。 | |
| template<class T> | |
| Mod< T > | mod (T v) |
| 创建取模固定值变换器。 | |
| template<class T> | |
| Gt< T > | gt (T t) |
| 创建大于谓词。 | |
| template<class T> | |
| Ge< T > | ge (T t) |
| 创建大于等于谓词。 | |
| template<class T> | |
| Lt< T > | lt (T t) |
| 创建小于谓词。 | |
| template<class T> | |
| Le< T > | le (T t) |
| 创建小于等于谓词。 | |
| template<class T> | |
| Eq< T > | eq (T v) |
| 创建等于谓词。 | |
| template<class T> | |
| Ne< T > | ne (T v) |
| 创建不等于谓词。 | |
| template<class P, typename Q> | |
| And< P, Q > | and_ (P p, Q q) |
| 创建逻辑与组合谓词。 | |
| template<class P, typename Q> | |
| Or< P, Q > | or_ (P p, Q q) |
| 创建逻辑或组合谓词。 | |
| template<class P> | |
| Not< P > | not_ (P p) |
| 创建逻辑非组合谓词。 | |
| template<class Class, typename Mem> | |
| Member< Class, Mem > | member (Mem Class::*p) |
| 创建成员变量访问器。 | |
| template<class P, class Q> | |
| And< P, Q > | operator&& (P p, Q q) |
| 逻辑与运算符,等价于 and_(p, q)。 | |
| template<class P, class Q> | |
| Or< P, Q > | operator|| (P p, Q q) |
| 逻辑或运算符,等价于 or_(p, q)。 | |
| template<class P> | |
| Not< P > | operator! (P p) |
| 逻辑非运算符,等价于 not_(p)。 | |
| template<class F, class G> | |
| Compose< F, G > | compose (F f, G g) |
| 将两个函数组合为一个函数。 | |
| template<class F, class... Rest> | |
| auto | compose (F f, Rest... rest) -> Compose< F, decltype(compose(rest...))> |
| 将多个函数组合为一个函数。 | |
| template<class F, class G> | |
| Compose< F, G > | operator>> (F f, G g) |
| 函数组合运算符,将两个函数组合为一个函数。 | |
| template<class T> | |
| Pow< T > | pow (T exp) |
| 创建幂运算变换器。 | |
| template<class T> | |
| Between< T > | between (T low, T high) |
| 创建闭区间谓词。 | |
| template<class T> | |
| BetweenExclusive< T > | between_exclusive (T low, T high) |
| 创建开区间谓词。 | |
| template<class T> | |
| DivisibleBy< T > | divisible_by (T n) |
| 创建整除谓词。 | |
| template<class T> | |
| Clamp< T > | clamp (T low, T high) |
| 创建限幅变换器。 | |
| template<size_t N> | |
| nth_t< N > | nth () |
| 获取 tuple/pair/array 的第 N 个元素的函数。 | |
| template<class Class, class Ret, class... Args> | |
| Method< Class, Ret, Args... > | method (Ret(Class::*ptr)(Args...), const Args &...args) |
| 创建成员函数调用器。 | |
| template<class... Args> | |
| Call< Args... > | call (const Args &...args) |
| 创建函数调用器。 | |
Variables | |
| static constexpr inc_t | inc |
| static constexpr dec_t | dec |
| static constexpr negate_t | negate |
| static constexpr square_t | square |
| static constexpr cube_t | cube |
| static constexpr sqrt_t | sqrt |
| static constexpr reciprocal_t | reciprocal |
| static constexpr abs_t | abs |
| static constexpr to_string_t | to_string |
| static constexpr even_t | even |
| static constexpr odd_t | odd |
| static constexpr positive_t | positive |
| static constexpr negative_t | negative |
| static constexpr zero_t | zero |
| static constexpr prime_t | prime |
| static constexpr first_t | first |
| static constexpr second_t | second |
| static constexpr identity_t | identity |
| static constexpr exp_t | exp |
| static constexpr log10_t | log10 |
| static constexpr sin_t | sin |
| static constexpr cos_t | cos |
| static constexpr tan_t | tan |
| static constexpr asin_t | asin |
| static constexpr acos_t | acos |
| static constexpr atan_t | atan |
| static constexpr sign_t | sign |
| static constexpr round_t | round |
| static constexpr ceil_t | ceil |
| static constexpr floor_t | floor |
| static constexpr strlen_t | strlen |
| static constexpr to_upper_t | to_upper |
| static constexpr to_lower_t | to_lower |
| static constexpr trim_t | trim |
| static constexpr reverse_string_t | reverse_string |
| static constexpr size_t_ | size |
| static constexpr empty_t | empty |
| static constexpr max_element_t | max_element |
| static constexpr min_element_t | min_element |
| static constexpr sum_t | sum |
| static constexpr average_t | average |
| static constexpr power_of_two_t | power_of_two |
| static constexpr palindrome_t | palindrome |
| static constexpr always_true_t | always_true |
| static constexpr always_false_t | always_false |
| static constexpr timestamp_t | timestamp |
| static constexpr plus_t | plus |
| static constexpr minus_t | minus |
| static constexpr multiplies_t | multiplies |
| static constexpr divides_t | divides |
| static constexpr modulus_t | modulus |
| static constexpr is_null_t | is_null |
| static constexpr not_null_t | not_null |
| Add< T > console::ops::add | ( | T | v | ) |
创建加固定值变换器。
| T | 值类型(自动推导)。 |
| v | 要加的值。 |
| And< P, Q > console::ops::and_ | ( | P | p, |
| Q | q ) |
创建逻辑与组合谓词。
| Between< T > console::ops::between | ( | T | low, |
| T | high ) |
| BetweenExclusive< T > console::ops::between_exclusive | ( | T | low, |
| T | high ) |
创建开区间谓词。
| T | 元素类型(自动推导)。 |
| low | 区间下界。 |
| high | 区间上界。 |
| Call< Args... > console::ops::call | ( | const Args &... | args | ) |
创建函数调用器。
| Clamp< T > console::ops::clamp | ( | T | low, |
| T | high ) |
| Compose< F, G > console::ops::compose | ( | F | f, |
| G | g ) |
将两个函数组合为一个函数。
| F | 第一个函数类型。 |
| G | 第二个函数类型。 |
| f | 第一个函数。 |
| g | 第二个函数。 |
| auto console::ops::compose | ( | F | f, |
| Rest... | rest ) -> Compose< F, decltype(compose(rest...))> |
将多个函数组合为一个函数。
| F | 第一个函数类型。 |
| ...Rest | 其余函数类型。 |
| f | 第一个函数。 |
| rest | 其余函数。 |
| Div< T > console::ops::div | ( | T | v | ) |
创建除固定值变换器。
| v | 要除的值。 |
| DivisibleBy< T > console::ops::divisible_by | ( | T | n | ) |
| Eq< T > console::ops::eq | ( | T | v | ) |
创建等于谓词。
| Ge< T > console::ops::ge | ( | T | t | ) |
创建大于等于谓词。
| Gt< T > console::ops::gt | ( | T | t | ) |
创建大于谓词。
| Le< T > console::ops::le | ( | T | t | ) |
创建小于等于谓词。
| Lt< T > console::ops::lt | ( | T | t | ) |
创建小于谓词。
| Member< Class, Mem > console::ops::member | ( | Mem Class::* | p | ) |
创建成员变量访问器。
| Method< Class, Ret, Args... > console::ops::method | ( | Ret(Class::* | ptr )(Args...), |
| const Args &... | args ) |
创建成员函数调用器。
| Mod< T > console::ops::mod | ( | T | v | ) |
创建取模固定值变换器。
| v | 要取模的值。 |
| Mul< T > console::ops::mul | ( | T | v | ) |
创建乘固定值变换器。
| v | 要乘的值。 |
| Ne< T > console::ops::ne | ( | T | v | ) |
创建不等于谓词。
| Not< P > console::ops::not_ | ( | P | p | ) |
创建逻辑非组合谓词。
| nth_t< N > console::ops::nth | ( | ) |
| Not< P > console::ops::operator! | ( | P | p | ) |
逻辑非运算符,等价于 not_(p)。
| And< P, Q > console::ops::operator&& | ( | P | p, |
| Q | q ) |
逻辑与运算符,等价于 and_(p, q)。
| Compose< F, G > console::ops::operator>> | ( | F | f, |
| G | g ) |
函数组合运算符,将两个函数组合为一个函数。
| F | 第一个函数类型。 |
| G | 第二个函数类型。 |
| f | 第一个函数。 |
| g | 第二个函数。 |
| Or< P, Q > console::ops::operator|| | ( | P | p, |
| Q | q ) |
逻辑或运算符,等价于 or_(p, q)。
| Or< P, Q > console::ops::or_ | ( | P | p, |
| Q | q ) |
创建逻辑或组合谓词。
| Pow< T > console::ops::pow | ( | T | exp | ) |
| Sub< T > console::ops::sub | ( | T | v | ) |
创建减固定值变换器。
| v | 要减的值。 |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |