API Guides > ConceptRT 3.x
DelegateFunction< ParameterType > Class Template Reference

Delegate that is able to execute a function. More...

Detailed Description

template<class ParameterType>
class ConceptRT::DelegateFunction< ParameterType >

Delegate that is able to execute a function.

Template Parameters
ParameterTypeType of the delegate parameter.
Examples:
ErrorsManagement/main.cpp.
+ Inheritance diagram for DelegateFunction< ParameterType >:

Public Member Methods

 DelegateFunction ()
 Default constructor. More...
 
 DelegateFunction (Function function)
 Default constructor. More...
 
void Define (Function function)
 Defines. More...
 
void Execute (ParameterType parameter)
 Executes the delegate More...
 
bool GetDefined () const
 Query if target is defined. More...
 

Constructor & Destructor Documentation

Default constructor.

DelegateFunction ( Function  function)

Default constructor.

Parameters
functionThe function.

Methods Documentation

void Define ( Function  function)

Defines.

Parameters
functionThe function.
void Execute ( ParameterType  parameter)
virtual

Executes the delegate

Parameters
parameterThe parameter.
RT Exceptions:
RT_ERROR_OBJECT_NOT_DEFINED_PROPERLY

Implements Delegate< ParameterType >.

bool GetDefined ( ) const
virtual

Query if target is defined.

Returns
true if it defined.

Implements Delegate< ParameterType >.