YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ycutil.h 文件参考

核心实用模块。 更多...

#include "ysdef.h"
ycutil.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

struct  YSLib::MoreConvertible< _type, _tStrict, _tWeak >
 转换类型选择。 更多...
 
struct  YSLib::SelectConvertible< _type, _tStrict >
 转换类型选择。 更多...
 
struct  YSLib::delete_obj_ndebug
 delete 仿函数。 更多...
 
struct  YSLib::delete_second_mem_ndebug
 delete 第二成员仿函数。 更多...
 
struct  YSLib::delete_obj_debug
 delete 仿函数(调试版本)。 更多...
 
struct  YSLib::delete_second_mem_debug
 delete 第二成员仿函数。 更多...
 
struct  YSLib::safe_delete_obj
 带置空指针操作的 delete 仿函数。 更多...
 

命名空间

namespace  YSLib
 

宏定义

#define delete_obj   delete_obj_debug
 
#define delete_second_mem   delete_second_mem_debug
 

函数

yconstfn int YSLib::FetchZero () ynothrow
 取整数类型的零元素。
 
yconstfn s8 YSLib::FetchSign (int a, int b=0) ynothrow
 整数类型符号函数。
 
template<typename _type >
yconstfn s8 YSLib::FetchSign (const _type &a, const _type &b=FetchZero< _type >()) ynothrow
 符号函数。
 
yconstfn int YSLib::FetchSignFromInterval (int d, int a, int b) ynothrow
 判断整数 d 和以 [a, b](a ≤ b) 或 [b, a](a > b) 区间的关系。
 
template<typename _type >
yconstfn int YSLib::FetchSignFromInterval (const _type &d, const _type &a, const _type &b) ynothrow
 判断 d 和以 [a, b](a ≤ b) 或 [b, a](a > b) 区间的关系。
 
template<typename _type >
bool YSLib::IsInInterval (_type i, _type b) ynothrow
 判断 i 是否在左闭右开区间 [FetchZero<_type>(), b) 中。
 
template<typename _type >
bool YSLib::IsInInterval (_type i, _type a, _type b) ynothrow
 判断 i 是否在左闭右开区间 [a, b) 中。
 
template<typename _type >
bool YSLib::IsInOpenInterval (_type i, _type b) ynothrow
 判断 i 是否在开区间 (FetchZero<_type>(), b) 内。
 
template<typename _type >
bool YSLib::IsInOpenInterval (_type i, _type a, _type b) ynothrow
 判断 i 是否在开区间 (a, b) 内。
 
template<typename _type >
size_t YSLib::SwitchInterval (_type v, const _type *a, size_t n) ynothrow
 计算满足指定的值 v 在区间 [a[i], a[i + 1]) 内最小的 i 。
 
template<typename _type >
size_t YSLib::SwitchAddedInterval (_type v, const _type *a, size_t n) ynothrow
 计算满足指定的值 v 在区间 [b(i), b(i + 1)) 内的最小的 i ; 其中 b(i) 是 a[i] 前 i 项的和。
 
template<typename _type >
void YSLib::RestrictInClosedInterval (_type &i, int a, int b) ynothrow
 约束整数 i 在闭区间 [a, b] 中。
 
template<typename _type >
void YSLib::RestrictInInterval (_type &i, int a, int b) ynothrow
 约束整数 i 在左闭右开区间 [a, b) 中。
 
template<typename _type >
void YSLib::RestrictUnsignedStrict (_type &u, unsigned b) ynothrow
 约束无符号整数 u 在区间上界 b 内。
 
template<typename _type >
void YSLib::RestrictUnsigned (_type &u, unsigned b) ynothrow
 约束无符号整数 u 在左闭右开区间 [0, b) 中。
 
template<typename _type >
void YSLib::RestrictLessEqual (_type &a, _type &b) ynothrow
 约束关系:a ≤ b 。
 
template<typename _tOut >
void YSLib::ClearSequence (_tOut dst, size_t n) ynothrow
 清除指定的连续对象。
 
template<typename _type >
yconstfn auto YSLib::CloneNonpolymorphic (const _type &p) -> decltype(&*p)
 使用 new 复制指定指针指向的对象。
 
template<class _type >
auto YSLib::ClonePolymorphic (const _type &p) -> decltype(&*p)
 使用 Clone 成员函数复制指定指针指向的多态类类型对象。
 

详细描述

核心实用模块。

版本
r1928
作者
FrankHBfrank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
早于 build 132
创建时间:
2010-05-23 06:10:59 +0800
修改时间:
2012-09-04 12:24 +0800
文本编码:
UTF-8
模块名称:
YSLib::Core::YCoreUtilities

在文件 ycutil.h 中定义.

宏定义说明

#define delete_obj   delete_obj_debug

在文件 ycutil.h423 行定义.

参考自 YSLib::Drawing::FontCache::ClearContainers().

#define delete_second_mem   delete_second_mem_debug