Audacity  2.2.2
KeyFunctor< OBJ > Class Template Referencefinal

#include <CommandFunctors.h>

Inheritance diagram for KeyFunctor< OBJ >:
CommandFunctor

Public Member Functions

 KeyFunctor (OBJ *This, audCommandKeyFunction< OBJ > pfn)
 
void operator() (int, const wxEvent *evt) override
 
- Public Member Functions inherited from CommandFunctor
 CommandFunctor ()
 
virtual ~CommandFunctor ()
 

Private Attributes

OBJ *const mThis
 
const audCommandKeyFunction< OBJ > mCommandKeyFunction
 

Detailed Description

template<typename OBJ>
class KeyFunctor< OBJ >

Definition at line 53 of file CommandFunctors.h.

Constructor & Destructor Documentation

template<typename OBJ >
KeyFunctor< OBJ >::KeyFunctor ( OBJ *  This,
audCommandKeyFunction< OBJ >  pfn 
)
inlineexplicit

Definition at line 56 of file CommandFunctors.h.

57  : mThis{ This }, mCommandKeyFunction{ pfn } {}
OBJ *const mThis
const audCommandKeyFunction< OBJ > mCommandKeyFunction

Member Function Documentation

template<typename OBJ >
void KeyFunctor< OBJ >::operator() ( int  ,
const wxEvent *  evt 
)
inlineoverridevirtual

Implements CommandFunctor.

Definition at line 58 of file CommandFunctors.h.

References KeyFunctor< OBJ >::mCommandKeyFunction, and KeyFunctor< OBJ >::mThis.

59  { (mThis->*mCommandKeyFunction) (evt); }
OBJ *const mThis
const audCommandKeyFunction< OBJ > mCommandKeyFunction

Member Data Documentation

template<typename OBJ >
const audCommandKeyFunction<OBJ> KeyFunctor< OBJ >::mCommandKeyFunction
private

Definition at line 62 of file CommandFunctors.h.

Referenced by KeyFunctor< OBJ >::operator()().

template<typename OBJ >
OBJ* const KeyFunctor< OBJ >::mThis
private

Definition at line 61 of file CommandFunctors.h.

Referenced by KeyFunctor< OBJ >::operator()().


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