μHAL (v2.7.9)
Part of the IPbus software repository
Public Member Functions | Private Attributes | List of all members
uhal::FunctionObject< R, T > Class Template Reference

Class for wrapping bound functions and function objects as an object. More...

#include <uhal/XmlParser.hpp>

Inheritance diagram for uhal::FunctionObject< R, T >:
[legend]
Collaboration diagram for uhal::FunctionObject< R, T >:
[legend]

Public Member Functions

 FunctionObject (T &aT)
 Constructor. More...
 
operator() (const pugi::xml_node &aNode)
 Functor which converts an XML node to an object of template type R. More...
 
- Public Member Functions inherited from uhal::BaseFunctionObject< R >
 BaseFunctionObject ()
 Default constructor. More...
 
virtual ~BaseFunctionObject ()
 Destructor. More...
 

Private Attributes

mT
 The function object or bound function which will be called when the object is evaluated (bracket operator) More...
 

Detailed Description

template<typename R, typename T>
class uhal::FunctionObject< R, T >

Class for wrapping bound functions and function objects as an object.

Definition at line 92 of file XmlParser.hpp.

Constructor & Destructor Documentation

◆ FunctionObject()

template<typename R , typename T >
uhal::FunctionObject< R, T >::FunctionObject ( T &  aT)

Constructor.

Parameters
aTa reference to a bound object or function object which will be evaluated when the object is evaluated (bracket operator)

Definition at line 59 of file XmlParser.hxx.

Member Function Documentation

◆ operator()()

template<typename R , typename T >
R uhal::FunctionObject< R, T >::operator() ( const pugi::xml_node aNode)
virtual

Functor which converts an XML node to an object of template type R.

Parameters
aNodean XML node for converting to an object
Returns
an object of template type R

Implements uhal::BaseFunctionObject< R >.

Definition at line 66 of file XmlParser.hxx.

Member Data Documentation

◆ mT

template<typename R , typename T >
T uhal::FunctionObject< R, T >::mT
private

The function object or bound function which will be called when the object is evaluated (bracket operator)

Definition at line 112 of file XmlParser.hpp.

Referenced by uhal::FunctionObject< R, T * >::operator()().


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