Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bslalg::FunctorAdapter_FunctionPointer< FUNCTION_POINTER > Class Template Reference

#include <bslalg_functoradapter.h>

List of all members.

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 Component bslalg_functoradapter


Constructor & Destructor Documentation

template<class FUNCTION_POINTER >
bslalg::FunctorAdapter_FunctionPointer< FUNCTION_POINTER >::FunctorAdapter_FunctionPointer ( FUNCTION_POINTER  functionPtr  )  [explicit]

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


Member Function Documentation

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

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

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

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: