OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TFunctor2< R, P1, P2 > Class Template Reference

Functor with 2 parameters, return R. More...

#include <owl/functor.h>

Inheritance diagram for owl::TFunctor2< R, P1, P2 >:
owl::TFunctorBase owl::TFunctionTranslator2< R, P1, P2, Funct > owl::TMemberTranslator2< R, P1, P2, TCallee, TMemFunc >

Public Member Functions

 TFunctor2 ()
R operator() (P1 p1, P2 p2) const
 operator bool () const
Public Member Functions inherited from owl::TFunctorBase
 operator bool () const
 TFunctorBase ()
 TFunctorBase (const void *c, const void *f, size_t sz)

Protected Types

typedef R(*) TThunk(const TFunctorBase &, P1, P2)

Protected Member Functions

 TFunctor2 (THUNKREF(TThunk) t, const void *c, const void *f, size_t sz)

Additional Inherited Members

Public Types inherited from owl::TFunctorBase
typedef void(TFunctorBase::*) TMemberFunc()
Public Attributes inherited from owl::TFunctorBase
union  
void * Callee

Detailed Description

template<class R, class P1, class P2>
class owl::TFunctor2< R, P1, P2 >

Functor with 2 parameters, return R.

Definition at line 438 of file functor.h.

Member Typedef Documentation

◆ TThunk

template<class R, class P1, class P2>
typedef R(*) owl::TFunctor2< R, P1, P2 >::TThunk(const TFunctorBase &, P1, P2)
protected

Definition at line 450 of file functor.h.

Constructor & Destructor Documentation

◆ TFunctor2() [1/2]

template<class R, class P1, class P2>
owl::TFunctor2< R, P1, P2 >::TFunctor2 ( )
inline

Definition at line 440 of file functor.h.

◆ TFunctor2() [2/2]

template<class R, class P1, class P2>
owl::TFunctor2< R, P1, P2 >::TFunctor2 ( THUNKREF(TThunk) t,
const void * c,
const void * f,
size_t sz )
inlineprotected

Definition at line 451 of file functor.h.

References owl::TFunctorBase::TFunctorBase(), and THUNKREF.

Member Function Documentation

◆ operator bool()

template<class R, class P1, class P2>
owl::TFunctor2< R, P1, P2 >::operator bool ( ) const
inline

Definition at line 447 of file functor.h.

◆ operator()()

template<class R, class P1, class P2>
R owl::TFunctor2< R, P1, P2 >::operator() ( P1 p1,
P2 p2 ) const
inline

Definition at line 442 of file functor.h.


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