|
🛰️航天仿真算法库 SpaceAST 0.3.1
|
#include "AstGlobal.h"#include "AstUtil/Span.hpp"#include <string>#include <vector>#include <utility>类 | |
| class | ast::EnumDescriptorData |
| class | ast::EnumDescriptor< EnumType > |
命名空间 | |
| namespace | ast |
宏定义 | |
| #define | AST_ENUM_VALUE(Enumerator, Name) |
| #define | AST_ENUM_DESCRIPTOR(EnumType, ...) |
函数 | |
| template<typename EnumType > | |
| EnumDescriptor< EnumType > & | ast::aEnumDescriptor () |
SpaceAST项目(https://github.com/space-ast/ast) 本软件基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:
http://www.apache.org/licenses/LICENSE-2.0
重要须知: 软件按"现有状态"提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。
| #define AST_ENUM_DESCRIPTOR | ( | EnumType, | |
| ... ) |
定义枚举描述符,即 aEnumDescriptor<EnumType>() 的特化
| EnumType | 枚举类型 |
| ... | 枚举项列表,每一项由 AST_ENUM_VALUE() 给出 |
| #define AST_ENUM_VALUE | ( | Enumerator, | |
| Name ) |
定义一个枚举项(枚举值 + 名称)
仅用于 AST_ENUM_DESCRIPTOR() 的枚举项列表中
| Enumerator | 枚举项名称(不带枚举类型限定符) |
| Name | 枚举项的名称字符串 |