FastLED 3.9.3
Loading...
Searching...
No Matches
Callback< Args > Class Template Reference

Detailed Description

template<typename ... Args>
class Callback< Args >

Definition at line 13 of file callback.h.

Public Member Functions

 Callback (void *self, void(*callback)(void *self, Args... args))
 
 Callback (void *(*callback)(Args... args))
 
 Callback (const Callback &)=default
 
 operator bool () const
 
void operator() (Args... args) const
 
void clear ()
 
bool operator== (const Callback &other) const
 
bool operator!= (const Callback &other) const
 
Callbackoperator= (const Callback &other)
 
Callbackoperator= (void *(*other)(Args... args))
 
Callbackoperator= (void(*other)(void *self, Args... args))
 
bool operator< (const Callback &other) const
 

Constructor & Destructor Documentation

◆ Callback() [1/2]

template<typename ... Args>
Callback< Args >::Callback ( void * self,
void(* callback )(void *self, Args... args) )
inline

Definition at line 17 of file callback.h.

◆ Callback() [2/2]

template<typename ... Args>
Callback< Args >::Callback ( void *(* callback )(Args... args))
inlineexplicit

Definition at line 19 of file callback.h.

Member Function Documentation

◆ clear()

template<typename ... Args>
void Callback< Args >::clear ( )
inline

Definition at line 23 of file callback.h.

◆ operator bool()

template<typename ... Args>
Callback< Args >::operator bool ( ) const
inline

Definition at line 21 of file callback.h.

◆ operator!=()

template<typename ... Args>
bool Callback< Args >::operator!= ( const Callback< Args > & other) const
inline

Definition at line 25 of file callback.h.

◆ operator()()

template<typename ... Args>
void Callback< Args >::operator() ( Args... args) const
inline

Definition at line 22 of file callback.h.

◆ operator<()

template<typename ... Args>
bool Callback< Args >::operator< ( const Callback< Args > & other) const
inline

Definition at line 30 of file callback.h.

◆ operator=() [1/3]

template<typename ... Args>
Callback & Callback< Args >::operator= ( const Callback< Args > & other)
inline

Definition at line 26 of file callback.h.

◆ operator=() [2/3]

template<typename ... Args>
Callback & Callback< Args >::operator= ( void *(* other )(Args... args))
inline

Definition at line 27 of file callback.h.

◆ operator=() [3/3]

template<typename ... Args>
Callback & Callback< Args >::operator= ( void(* other )(void *self, Args... args))
inline

Definition at line 28 of file callback.h.

◆ operator==()

template<typename ... Args>
bool Callback< Args >::operator== ( const Callback< Args > & other) const
inline

Definition at line 24 of file callback.h.


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