Jpp
|
Auxiliary base class for function adaptor. More...
#include <JFunctionAdaptor.hh>
Public Member Functions | |
virtual | ~JFunctionAdaptorHelper () |
Virtual destructor. More... | |
bool | is_valid () const |
Check validity. More... | |
void | reset () |
Reset function adaptor helper. More... | |
void | set (pF pf) |
Set function. More... | |
void | open (const char *file_name) |
Open file. More... | |
void | close () |
Close file. More... | |
void | initialise () |
Initialise counter. More... | |
void | attach (const JSharedCounter &object) |
Attach this counter to given shared counter object. More... | |
bool | detach () |
Detach. More... | |
Protected Member Functions | |
JFunctionAdaptorHelper () | |
Default constructor. More... | |
JFunctionAdaptorHelper (const JFunctionAdaptorHelper &helper) | |
Copy constructor. More... | |
JFunctionAdaptorHelper (pF pf) | |
Constructor. More... | |
JFunctionAdaptorHelper (const char *file_name, const char *function_name) | |
Constructor. More... | |
void | get (const char *function_name) |
Get function with given name according to specific protocol. More... | |
Protected Attributes | |
void * | handle |
pF | function |
int * | counter |
Friends | |
std::istream & | operator>> (std::istream &in, JFunctionAdaptorHelper &object) |
Read function adaptor helper from input stream. More... | |
std::ostream & | operator<< (std::ostream &out, const JFunctionAdaptorHelper &object) |
Write function adaptor helper to output stream. More... | |
Auxiliary base class for function adaptor.
Definition at line 33 of file JFunctionAdaptor.hh.
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Constructor.
file_name | file name |
function_name | function name |
Definition at line 196 of file JFunctionAdaptor.hh.
|
inline |
Check validity.
Definition at line 52 of file JFunctionAdaptor.hh.
|
inline |
|
inline |
Set function.
pf | pointer to function |
Definition at line 76 of file JFunctionAdaptor.hh.
|
inline |
Open file.
file_name | file name |
Definition at line 89 of file JFunctionAdaptor.hh.
|
inline |
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.
|
inlineprotected |
Get function with given name according to specific protocol.
function_name | function name |
Definition at line 212 of file JFunctionAdaptor.hh.
|
inlineinherited |
Initialise counter.
Definition at line 32 of file JSharedCounter.hh.
|
inlineinherited |
Attach this counter to given shared counter object.
object | shared counter |
Definition at line 45 of file JSharedCounter.hh.
|
inlineinherited |
|
friend |
Read function adaptor helper from input stream.
in | input stream |
object | function adaptor helper |
Definition at line 125 of file JFunctionAdaptor.hh.
|
friend |
Write function adaptor helper to output stream.
out | output stream |
object | function adaptor helper |
Definition at line 151 of file JFunctionAdaptor.hh.
|
protected |
Definition at line 234 of file JFunctionAdaptor.hh.
|
protected |
Definition at line 235 of file JFunctionAdaptor.hh.
|
protectedinherited |
Definition at line 82 of file JSharedCounter.hh.