🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
OpUnaryPredefined.cpp 文件参考
#include "OpUnaryPredefined.hpp"
#include "OpUnaryRegister.hpp"
#include "AstScript/AllHeaders.hpp"
#include "AstScript/Types.hpp"
#include "AstScript/ScriptAPI.hpp"
#include "AstUtil/Logger.hpp"
#include <tuple>
#include <unordered_map>
#include <functional>

命名空间

namespace  ast
 

宏定义

#define _AST_OPUNARY_SCALAR(OPNAME, OP)
 
#define REGISTER_OPUNARY(op, type, func)
 

函数

template<>
Valueast::opunary_bit_not_scalar< bool > (Value *value)
 
OpUnaryRegisterast::get_opunary_registry ()
 
void * ast::opunary_get_funcptr (EOpUnaryType op, Class *type)
 
void ast::opunary_register_funcptr (EOpUnaryType op, Class *type, void *func)
 
OpUnaryFunc ast::opunary_get_func (EOpUnaryType op, Class *type)
 
void ast::opunary_register_func (EOpUnaryType op, Class *type, OpUnaryFunc func)
 
Valueast::opunary (EOpUnaryType op, Value *value)
 
void ast::register_scalar_opunary ()
 
void ast::opunary_init_registry ()
 

变量

auto ast::__opunary_registry_initializer
 

详细描述

~

~

作者
axel
日期
2025-12-22

ast项目(https://github.com/space-ast/ast) 本项目基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:

http://www.apache.org/licenses/LICENSE-2.0

重要须知: 软件按"现有状态"提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。

宏定义说明

◆ _AST_OPUNARY_SCALAR

#define _AST_OPUNARY_SCALAR ( OPNAME,
OP )
值:
template<typename T> \
Value* opunary_##OPNAME##_scalar(Value* value) \
{ \
auto val = static_cast<ValScalar<T>*>(value); \
return aNewValue(OP val->value()); \
}

◆ REGISTER_OPUNARY

#define REGISTER_OPUNARY ( op,
type,
func )
值:
opunary_register_func(EOpUnaryType::op, type, (OpUnaryFunc)func)