GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
functor< RT, PT > Class Template Reference

#include "functor.h"

Collaboration diagram for functor< RT, PT >:

Public Member Functions

 functor (fcn_ptr_type p)
 
RT operator() (PT arg)
 

Private Types

typedef fcn_ptr< RT, PT >::TYPE fcn_ptr_type
 

Private Attributes

fcn_ptr_type fptr
 

Detailed Description

template<typename RT, typename PT>
class functor< RT, PT >

Definition at line 36 of file functor.h.

Member Typedef Documentation

◆ fcn_ptr_type

template<typename RT , typename PT >
typedef fcn_ptr<RT, PT>::TYPE functor< RT, PT >::fcn_ptr_type
private

Definition at line 39 of file functor.h.

Constructor & Destructor Documentation

◆ functor()

template<typename RT , typename PT >
functor< RT, PT >::functor ( fcn_ptr_type  p)
inline

Definition at line 44 of file functor.h.

Member Function Documentation

◆ operator()()

template<typename RT , typename PT >
RT functor< RT, PT >::operator() ( PT  arg)
inline

Definition at line 46 of file functor.h.

References arg, and functor< RT, PT >::fptr.

Member Data Documentation

◆ fptr

template<typename RT , typename PT >
fcn_ptr_type functor< RT, PT >::fptr
private

Definition at line 40 of file functor.h.

Referenced by functor< RT, PT >::operator()().


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