BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
dchain::DCUnaryAdapter< TFunc > Class Template Reference

#include <DCUnaryAdapter.h>

+ Inheritance diagram for dchain::DCUnaryAdapter< TFunc >:

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 ()
 

Detailed Description

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

Definition at line 39 of file DCUnaryAdapter.h.

Member Typedef Documentation

◆ argument_type

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

Definition at line 46 of file DCUnaryAdapter.h.

◆ result_type

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

Definition at line 47 of file DCUnaryAdapter.h.

Constructor & Destructor Documentation

◆ DCUnaryAdapter() [1/3]

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

Definition at line 50 of file DCUnaryAdapter.h.

50: m_func(0) {}

◆ DCUnaryAdapter() [2/3]

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

Definition at line 51 of file DCUnaryAdapter.h.

51: m_func(&iFunc) {}

◆ DCUnaryAdapter() [3/3]

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

Definition at line 52 of file DCUnaryAdapter.h.

52: m_func(iFunc) {}

Member Function Documentation

◆ operator bool()

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

Definition at line 63 of file DCUnaryAdapter.h.

63 {
64 return 0 != m_func;
65 }

◆ operator()()

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

Definition at line 59 of file DCUnaryAdapter.h.

59 {
60 return (*m_func)(iArg);
61 }

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