Auxiliary base class for function adaptor.
More...
#include <JFunctionAdaptor.hh>
template<class pF>
struct JEEP::JFunctionAdaptorHelper< pF >
Auxiliary base class for function adaptor.
Definition at line 33 of file JFunctionAdaptor.hh.
◆ ~JFunctionAdaptorHelper()
◆ JFunctionAdaptorHelper() [1/4]
◆ JFunctionAdaptorHelper() [2/4]
◆ JFunctionAdaptorHelper() [3/4]
◆ JFunctionAdaptorHelper() [4/4]
Constructor.
- Parameters
-
file_name | file name |
function_name | function name |
Definition at line 196 of file JFunctionAdaptor.hh.
201 this->
open(file_name);
203 this->
get(function_name);
◆ is_valid()
Check validity.
- Returns
- true if valid function; else false
Definition at line 52 of file JFunctionAdaptor.hh.
54 return (
function != NULL);
◆ reset()
◆ set()
◆ open()
◆ close()
Close file.
Note that the file should remain open as long as the library method is used.
Definition at line 108 of file JFunctionAdaptor.hh.
◆ get()
Get function with given name according to specific protocol.
- Parameters
-
function_name | function name |
Definition at line 212 of file JFunctionAdaptor.hh.
220 function = (pF) dlsym(
handle, function_name);
222 const char* error = dlerror();
◆ initialise()
void JLANG::JSharedCounter::initialise |
( |
| ) |
|
|
inlineinherited |
◆ attach()
Attach this counter to given shared counter object.
- Parameters
-
Definition at line 46 of file JSharedCounter.hh.
◆ detach()
bool JLANG::JSharedCounter::detach |
( |
| ) |
|
|
inlineinherited |
Detach.
- Returns
- true if counter at zero; else false
Definition at line 63 of file JSharedCounter.hh.
◆ operator>>
Read function adaptor helper from input stream.
- Parameters
-
in | input stream |
object | function adaptor helper |
- Returns
- input stream
Definition at line 125 of file JFunctionAdaptor.hh.
131 string file_name, function_name;
133 if (in >> file_name >> function_name) {
135 object.open(file_name.c_str());
137 object.get(function_name.c_str());
◆ operator<<
Write function adaptor helper to output stream.
- Parameters
-
out | output stream |
object | function adaptor helper |
- Returns
- output stream
Definition at line 151 of file JFunctionAdaptor.hh.
◆ handle
◆ function
◆ counter
int* JLANG::JSharedCounter::counter |
|
protectedinherited |
The documentation for this struct was generated from the following file: