TTKMusicPlayer  4.2.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 ( )

Definition at line 58 of file ttkfunctor.h.

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

Definition at line 64 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() 
)

Definition at line 86 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() 
)

Definition at line 93 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
template<typename IT , typename OT , typename PT >
TTKFunctor< IT, OT, PT >::OutputType TTKFunctor< IT, OT, PT >::executeUnsafe ( const InputType input)

Definition at line 70 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 
)

Definition at line 78 of file ttkfunctor.h.


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