Lolly 1.4.28
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Friends | List of all members
lolly::system::shared_lib_rep Struct Reference

#include <shared_lib.hpp>

Inheritance diagram for lolly::system::shared_lib_rep:
Inheritance graph
[legend]
Collaboration diagram for lolly::system::shared_lib_rep:
Collaboration graph
[legend]

Public Member Functions

 shared_lib_rep (string dynamic_name, url path)
 
virtual ~shared_lib_rep ()
 
template<typename Ret , typename... Args>
auto get_function (string function_name) -> Ret(*)(Args...)
 
- Public Member Functions inherited from rep< shared_lib >
 rep (string res_name2)
 
virtual ~rep ()
 

Private Attributes

tb_dynamic_ref_t dynamic_ref
 

Friends

struct shared_lib
 

Additional Inherited Members

- Public Attributes inherited from rep< shared_lib >
string res_name
 

Detailed Description

Definition at line 22 of file shared_lib.hpp.

Constructor & Destructor Documentation

◆ shared_lib_rep()

lolly::system::shared_lib_rep::shared_lib_rep ( string dynamic_name,
url path )

Definition at line 15 of file shared_lib.cpp.

18 if (dynamic_ref == nullptr) {
19 TM_FAILED ("error occurs during loading of library")
20 }
21};
#define TM_FAILED(msg)
Macro used to throw an exception with a specified error message.
Definition basic.hpp:93
The list class represents a linked list.
Definition list.hpp:48
rep(string res_name2)
Definition resource.hpp:25
string as_system_string(url u)
Definition url.hpp:245

◆ ~shared_lib_rep()

lolly::system::shared_lib_rep::~shared_lib_rep ( )
virtual

Definition at line 22 of file shared_lib.cpp.

22 {
24 shared_lib::instances->reset (res_name);
25};

Member Function Documentation

◆ get_function()

template<typename Ret , typename... Args>
auto lolly::system::shared_lib_rep::get_function ( string function_name) -> Ret (*) (Args...)
inline

Definition at line 30 of file shared_lib.hpp.

30 {
31 return (Ret (*) (Args...)) tb_dynamic_func (dynamic_ref,
33 }

Friends And Related Symbol Documentation

◆ shared_lib

friend struct shared_lib
friend

Definition at line 34 of file shared_lib.hpp.

Member Data Documentation

◆ dynamic_ref

tb_dynamic_ref_t lolly::system::shared_lib_rep::dynamic_ref
private

Definition at line 24 of file shared_lib.hpp.


The documentation for this struct was generated from the following files: