dchain::DCUnaryAdapter< TFunc > Class Template Reference

#include <DCUnaryAdapter.h>

List of all members.

Public Types

typedef TFunc::argument_type argument_type
typedef TFunc::result_type result_type

Public Member Functions

 DCUnaryAdapter ()
 DCUnaryAdapter (TFunc &iFunc)
 DCUnaryAdapter (TFunc *iFunc)
result_type operator() (argument_type iArg) const
 operator bool ()

Private Attributes

TFunc * m_func


Detailed Description

template<class TFunc>
class dchain::DCUnaryAdapter< TFunc >

Definition at line 39 of file DCUnaryAdapter.h.


Member Typedef Documentation

template<class TFunc>
typedef TFunc::argument_type dchain::DCUnaryAdapter< TFunc >::argument_type

Definition at line 46 of file DCUnaryAdapter.h.

template<class TFunc>
typedef TFunc::result_type dchain::DCUnaryAdapter< TFunc >::result_type

Definition at line 47 of file DCUnaryAdapter.h.


Constructor & Destructor Documentation

template<class TFunc>
dchain::DCUnaryAdapter< TFunc >::DCUnaryAdapter (  )  [inline]

Definition at line 50 of file DCUnaryAdapter.h.

00050 : m_func(0) {}

template<class TFunc>
dchain::DCUnaryAdapter< TFunc >::DCUnaryAdapter ( TFunc &  iFunc  )  [inline]

Definition at line 51 of file DCUnaryAdapter.h.

00051 : m_func(&iFunc) {}

template<class TFunc>
dchain::DCUnaryAdapter< TFunc >::DCUnaryAdapter ( TFunc *  iFunc  )  [inline]

Definition at line 52 of file DCUnaryAdapter.h.

00052 : m_func(iFunc) {}


Member Function Documentation

template<class TFunc>
dchain::DCUnaryAdapter< TFunc >::operator bool (  )  [inline]

Definition at line 63 of file DCUnaryAdapter.h.

00063                       {
00064          return 0 != m_func;
00065       }

template<class TFunc>
result_type dchain::DCUnaryAdapter< TFunc >::operator() ( argument_type  iArg  )  const [inline]

Definition at line 59 of file DCUnaryAdapter.h.

00059                                                        {
00060          return (*m_func)(iArg);
00061       }


Member Data Documentation

template<class TFunc>
TFunc* dchain::DCUnaryAdapter< TFunc >::m_func [private]

Definition at line 79 of file DCUnaryAdapter.h.

Referenced by dchain::DCUnaryAdapter< DCSelectionFunction< Charged > >::operator bool(), and dchain::DCUnaryAdapter< DCSelectionFunction< Charged > >::operator()().


Generated on Tue Nov 29 23:36:26 2016 for BOSS_7.0.2 by  doxygen 1.4.7