TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Types | Public Member Functions | Protected Member Functions | List of all members
TTKFunctor< IT, OT, PT > Class Template Referenceabstract

The class of the functor interface. More...

#include <ttkfunctor.h>

Public Types

using InputType = IT
 
using OutputType = OT
 
using OptionType = PT
 

Public Member Functions

 TTKFunctor ()
 
virtual ~TTKFunctor ()
 
OutputType executeUnsafe (const InputType &input)
 
OutputType executeUnsafe (const InputType &input, const OptionType &option)
 
bool execute (const InputType &input, const OptionType &option=OptionType())
 
bool execute (const InputType &input, OutputType &output, const OptionType &option=OptionType())
 

Protected Member Functions

virtual bool executeMain (OutputType &output, const InputType &input, const OptionType &option)=0
 

Detailed Description

template<typename IT, typename OT = TTKNullType, typename PT = TTKNullType>
class TTKFunctor< IT, OT, PT >

The class of the functor interface.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 34 of file ttkfunctor.h.

Member Typedef Documentation

template<typename IT, typename OT = TTKNullType, typename PT = TTKNullType>
using TTKFunctor< IT, OT, PT >::InputType = IT

Definition at line 37 of file ttkfunctor.h.

template<typename IT, typename OT = TTKNullType, typename PT = TTKNullType>
using TTKFunctor< IT, OT, PT >::OptionType = PT

Definition at line 39 of file ttkfunctor.h.

template<typename IT, typename OT = TTKNullType, typename PT = TTKNullType>
using TTKFunctor< IT, OT, PT >::OutputType = OT

Definition at line 38 of file ttkfunctor.h.

Constructor & Destructor Documentation

template<typename IT , typename OT , typename PT >
TTKFunctor< IT, OT, PT >::TTKFunctor ( )

Object constructor.

Definition at line 79 of file ttkfunctor.h.

template<typename IT , typename OT , typename PT >
TTKFunctor< IT, OT, PT >::~TTKFunctor ( )
virtual

Object destructor.

Definition at line 85 of file ttkfunctor.h.

Member Function Documentation

template<typename IT , typename OT , typename PT >
bool TTKFunctor< IT, OT, PT >::execute ( const InputType input,
const OptionType option = OptionType() 
)

Functor execute in safe mode.

Definition at line 107 of file ttkfunctor.h.

template<typename IT , typename OT , typename PT >
bool TTKFunctor< IT, OT, PT >::execute ( const InputType input,
OutputType output,
const OptionType option = OptionType() 
)

Functor execute in safe mode.

Definition at line 114 of file ttkfunctor.h.

template<typename IT, typename OT = TTKNullType, typename PT = TTKNullType>
virtual bool TTKFunctor< IT, OT, PT >::executeMain ( OutputType output,
const InputType input,
const OptionType option 
)
protectedpure virtual

Functor execute main interface.

template<typename IT , typename OT , typename PT >
TTKFunctor< IT, OT, PT >::OutputType TTKFunctor< IT, OT, PT >::executeUnsafe ( const InputType input)

Functor execute in unsafe mode.

Definition at line 91 of file ttkfunctor.h.

template<typename IT , typename OT , typename PT >
TTKFunctor< IT, OT, PT >::OutputType TTKFunctor< IT, OT, PT >::executeUnsafe ( const InputType input,
const OptionType option 
)

Functor execute in unsafe mode.

Definition at line 99 of file ttkfunctor.h.


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