From a387e8742af3cc3758c8f1ada7f9e4fe146cb223 Mon Sep 17 00:00:00 2001 From: ninemine <106434473+NINEMINEsigma@users.noreply.github.com> Date: Fri, 20 Jun 2025 14:09:40 +0800 Subject: [PATCH] =?UTF-8?q?BS=200.0.1=20=E6=9E=84=E5=9E=8B=E9=80=80?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Convention/[Runtime]/Architecture.md | 0 .../[Runtime]/Generics/Generics-README.md | 18 -------- Convention/[Runtime]/Internal.md | 45 +++++++++++++++++++ 3 files changed, 45 insertions(+), 18 deletions(-) create mode 100644 Convention/[Runtime]/Architecture.md delete mode 100644 Convention/[Runtime]/Generics/Generics-README.md create mode 100644 Convention/[Runtime]/Internal.md diff --git a/Convention/[Runtime]/Architecture.md b/Convention/[Runtime]/Architecture.md new file mode 100644 index 0000000..e69de29 diff --git a/Convention/[Runtime]/Generics/Generics-README.md b/Convention/[Runtime]/Generics/Generics-README.md deleted file mode 100644 index 363bd96..0000000 --- a/Convention/[Runtime]/Generics/Generics-README.md +++ /dev/null @@ -1,18 +0,0 @@ -[返回](../Runtime-README.md) - -# /Convention/Runtime/Generics - -本位置用于放置泛化类型等内容, 包含容器等 - ---- - -# 目录结构 - -- [Sequence*](Sequence.md) - -以连续内存进行储存的容器, 特点是快速的随机访问与写入, -包含数组以及动态数组等内容 - -- [NTree*](NTree.md) - -包含一个基础实现N叉树, 以及多种链型与树型结构实现的数据结构 \ No newline at end of file diff --git a/Convention/[Runtime]/Internal.md b/Convention/[Runtime]/Internal.md new file mode 100644 index 0000000..bef8bdf --- /dev/null +++ b/Convention/[Runtime]/Internal.md @@ -0,0 +1,45 @@ +[返回](./Runtime-READNE.md) + +# /Convention/Runtime/Internal + +--- + +包含了关于本框架下内置的接口 + +## Import Config + +导入[Config](Config.md) + +## TypeClass元类型 + +完全公开的对外接口 + +- 成员函数 + + - ToString 转字符串类型 + + ```cpp + string ToString() const + ``` + + - SymbolName 获取类型符号 + + ```cpp + string SymbolName() const noexcept + ``` + + - GetType() 获取类型 + + ```cpp + Type GetType() const noexcept + ``` + + - As() 安全的类型转换 + + ```cpp + template + [[ReturnMaynull]] + conditional_t,Ty,Ty*> As() + [[ReturnMaynull]] TypeClass* As(const type_info&) + ``` +