BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslalg::FunctorAdapter_FunctionPointer< FUNCTION_POINTER > Class Template Reference

#include <bslalg_functoradapter.h>

Public Member Functions

 FunctorAdapter_FunctionPointer (FUNCTION_POINTER functionPtr)
 
 operator FUNCTION_POINTER & ()
 
 operator const FUNCTION_POINTER & () const
 

Detailed Description

template<class FUNCTION_POINTER>
class bslalg::FunctorAdapter_FunctionPointer< FUNCTION_POINTER >

This class provides a functor that delegates to the function referred to by a function pointer supplied on construction. Delegation is supported through the conversion operator, which implicitly returns a reference to the parameterized FUNCTION_POINTER.

See bslalg_functoradapter

Constructor & Destructor Documentation

◆ FunctorAdapter_FunctionPointer()

template<class FUNCTION_POINTER >
bslalg::FunctorAdapter_FunctionPointer< FUNCTION_POINTER >::FunctorAdapter_FunctionPointer ( FUNCTION_POINTER  functionPtr)
inlineexplicit

Create a FunctorAdapter_FunctionPointer object that will delegate to the function referred to by the specified functionPtr.

Member Function Documentation

◆ operator const FUNCTION_POINTER &()

template<class FUNCTION_POINTER >
bslalg::FunctorAdapter_FunctionPointer< FUNCTION_POINTER >::operator const FUNCTION_POINTER & ( ) const
inline

Convert this object to the parameterized FUNCTION_POINTER by returning the function pointer supplied on construction.

◆ operator FUNCTION_POINTER &()

template<class FUNCTION_POINTER >
bslalg::FunctorAdapter_FunctionPointer< FUNCTION_POINTER >::operator FUNCTION_POINTER & ( )
inline

Convert this object to the parameterized FUNCTION_POINTER by returning the function pointer supplied on construction.


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