ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::lib_loader_n 命名空间参考

struct  base_symbol_t
 
struct  library_info_t
 
struct  symbol_t
 
struct  symbol_t< Ret_t(Args_t...) noexcept(nothrow)>
 

类型定义

typedef comn_ptr_t< library_info_tlibrary_handle_t
 

函数

bool the_pointer_to_bool (const library_info_t *a) noexcept
 
constexpr library_info_tthe_get_null_ptr (const library_info_t *) noexcept
 
library_handle_t load_lib (string lib_name) noexcept
 
template<class Func_t >
library_handle_t get_library_handle_form_symbol (function_t< Func_t > symbol) noexcept
 
template<class Func_t >
string get_symbol_name_form_symbol (function_t< Func_t > symbol) noexcept
 

变量

library_info_t null_lib {special_init}
 

类型定义说明

◆ library_handle_t

函数说明

◆ get_library_handle_form_symbol()

template<class Func_t >
library_handle_t elc::defs::lib_loader_n::get_library_handle_form_symbol ( function_t< Func_t symbol)
inlinenoexcept

在文件 all_defs.cpp51245 行定义.

51245 {
51246 auto symbol_info=symbol.get_as<base_symbol_t>();
51247 if(symbol_info.fail())
51248 return null_ptr;
51249 else
51250 return symbol_info.get_ref()._lib;
51251 }
函数调用图:
这是这个函数的调用关系图:

◆ get_symbol_name_form_symbol()

template<class Func_t >
string elc::defs::lib_loader_n::get_symbol_name_form_symbol ( function_t< Func_t symbol)
inlinenoexcept

在文件 all_defs.cpp51253 行定义.

51253 {
51254 auto symbol_info=symbol.get_as<base_symbol_t>();
51255 if(symbol_info.fail())
51256 return{};
51257 else
51258 return symbol_info.get_ref()._name;
51259 }
函数调用图:
这是这个函数的调用关系图:

◆ load_lib()

library_handle_t elc::defs::lib_loader_n::load_lib ( string  lib_name)
inlinenoexcept

在文件 all_defs.cpp51241 行定义.

51241 {
51242 return get<library_info_t>(lib_name);
51243 }
函数调用图:
这是这个函数的调用关系图:

◆ the_get_null_ptr()

constexpr library_info_t * elc::defs::lib_loader_n::the_get_null_ptr ( const library_info_t )
inlineconstexprnoexcept

在文件 all_defs.cpp51194 行定义.

51194{return&null_lib;}

◆ the_pointer_to_bool()

bool elc::defs::lib_loader_n::the_pointer_to_bool ( const library_info_t a)
inlinenoexcept

在文件 all_defs.cpp51190 行定义.

51190 {
51191 return a->operator bool();
51192 }
函数调用图:

变量说明

◆ null_lib

library_info_t elc::defs::lib_loader_n::null_lib {special_init}
inline

在文件 all_defs.cpp51193 行定义.

51193{special_init};
constexpr struct elc::defs::base::special_init_t special_init