ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::lib_loader_n::library_info_t结构体 参考
类 elc::defs::lib_loader_n::library_info_t 继承关系图:
[图例]
elc::defs::lib_loader_n::library_info_t 的协作图:
[图例]

Public 成员函数

constexpr library_info_t (special_init_t) noexcept
 
 library_info_t (string lib_name) noexcept
 
 ~library_info_t () noexcept
 
 operator bool () const noexcept
 
string get_error () noexcept
 
string get_name () noexcept
 
voidget_symbol (string symbol_name) noexcept
 
template<class symbol_t >
symbol_tget_symbol_as (string symbol_name) noexcept
 
template<class Func_t >
function_t< Func_tget_symbol_as_function (string symbol_name) noexcept
 

详细描述

在文件 all_defs.cpp51148 行定义.

构造及析构函数说明

◆ library_info_t() [1/2]

constexpr elc::defs::lib_loader_n::library_info_t::library_info_t ( special_init_t  )
inlineexplicitconstexprnoexcept

在文件 all_defs.cpp51155 行定义.

51155 {
51156 _m=library_handle{0};
51158 attribute_ptr_cast<ref_able>(this)->init_never_ref_num_zero();
51159 }
constexpr T down_cast(U a) noexcept
向下转型至

◆ library_info_t() [2/2]

elc::defs::lib_loader_n::library_info_t::library_info_t ( string  lib_name)
inlineexplicitnoexcept

在文件 all_defs.cpp51160 行定义.

51160 {
51161 _name=lib_name;
51163
51164 if(!_m)
51165 _error=get_load_error();
51166 }
library_handle load_library(string file_name) noexcept
string get_load_error() noexcept

◆ ~library_info_t()

elc::defs::lib_loader_n::library_info_t::~library_info_t ( )
inlinenoexcept

在文件 all_defs.cpp51167 行定义.

51167 {
51168 free_library(_m);
51169 }
void free_library(library_handle handle) noexcept

成员函数说明

◆ get_error()

string elc::defs::lib_loader_n::library_info_t::get_error ( )
inlinenoexcept

在文件 all_defs.cpp51173 行定义.

51173 {
51174 return _error;
51175 }

◆ get_name()

string elc::defs::lib_loader_n::library_info_t::get_name ( )
inlinenoexcept

在文件 all_defs.cpp51176 行定义.

51176 {
51177 return _name;
51178 }

◆ get_symbol()

void * elc::defs::lib_loader_n::library_info_t::get_symbol ( string  symbol_name)
inlinenoexcept

在文件 all_defs.cpp51180 行定义.

51180 {
51182 }
void * get_symbol(library_handle handle, string symbol_name) noexcept

◆ get_symbol_as()

template<class symbol_t >
symbol_t & elc::defs::lib_loader_n::library_info_t::get_symbol_as ( string  symbol_name)
inlinenoexcept

在文件 all_defs.cpp51184 行定义.

51184 {
51185 return*reinterpret_cast<symbol_t*>(get_symbol(symbol_name));
51186 }
void * get_symbol(string symbol_name) noexcept

◆ get_symbol_as_function()

template<class Func_t >
function_t< Func_t > elc::defs::lib_loader_n::library_info_t::get_symbol_as_function ( string  symbol_name)
inlinenoexcept

在文件 all_defs.cpp51233 行定义.

51233 {
51235 if(!func_p)
51236 return null_ptr;
51237 else
51238 return symbol_t<Func_t>(this,symbol_name,func_p);
51239 }
constexpr struct elc::defs::base::null_ptr_n::null_ptr_t null_ptr

◆ operator bool()

elc::defs::lib_loader_n::library_info_t::operator bool ( ) const
inlineexplicitnoexcept

在文件 all_defs.cpp51170 行定义.

51170 {
51171 return bool(_m);
51172 }

该结构体的文档由以下文件生成: