Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JTOOLS::JFunction< JArgument_t, JResult_t >::JSupervisor Class Reference

Place holder for exception handler. More...

#include <JFunctional.hh>

Public Member Functions

 JSupervisor ()
 Default constructor.
 
 JSupervisor (JExceptionHandler *handler)
 Constructor.
 
const JSupervisoroperator() (JFunction &function) const
 Set exception handler of given functional object.
 

Public Attributes

friend JFunction
 

Private Attributes

std::shared_ptr< JExceptionHandlerhandler
 

Detailed Description

template<class JArgument_t, class JResult_t>
class JTOOLS::JFunction< JArgument_t, JResult_t >::JSupervisor

Place holder for exception handler.

Definition at line 243 of file JFunctional.hh.

Constructor & Destructor Documentation

◆ JSupervisor() [1/2]

template<class JArgument_t , class JResult_t >
JTOOLS::JFunction< JArgument_t, JResult_t >::JSupervisor::JSupervisor ( )
inline

Default constructor.

Definition at line 252 of file JFunctional.hh.

252 :
254 {}
std::shared_ptr< JExceptionHandler > handler
functional_type::JExceptionHandler JExceptionHandler

◆ JSupervisor() [2/2]

template<class JArgument_t , class JResult_t >
JTOOLS::JFunction< JArgument_t, JResult_t >::JSupervisor::JSupervisor ( JExceptionHandler * handler)
inline

Constructor.

Parameters
handlerpointer to exception handler

Definition at line 262 of file JFunctional.hh.

262 :
264 {}

Member Function Documentation

◆ operator()()

template<class JArgument_t , class JResult_t >
const JSupervisor & JTOOLS::JFunction< JArgument_t, JResult_t >::JSupervisor::operator() ( JFunction & function) const
inline

Set exception handler of given functional object.

Parameters
functionfunction
Returns
this supervisor

Definition at line 273 of file JFunctional.hh.

274 {
275 function.setExceptionHandler(*this);
276
277 return *this;
278 }

Member Data Documentation

◆ JFunction

template<class JArgument_t , class JResult_t >
friend JTOOLS::JFunction< JArgument_t, JResult_t >::JSupervisor::JFunction

Definition at line 247 of file JFunctional.hh.

◆ handler

template<class JArgument_t , class JResult_t >
std::shared_ptr<JExceptionHandler> JTOOLS::JFunction< JArgument_t, JResult_t >::JSupervisor::handler
private

Definition at line 281 of file JFunctional.hh.


The documentation for this class was generated from the following file: