Nui
Public Member Functions | List of all members
Nui::ThrottledFunction Class Reference

#include <throttle.hpp>

Public Member Functions

 ThrottledFunction ()
 
 ThrottledFunction (int32_t id, bool calledWhenReady, std::function< void()> func)
 
 ~ThrottledFunction ()
 
 ThrottledFunction (ThrottledFunction const &)=delete
 
 ThrottledFunction (ThrottledFunction &&other)
 
ThrottledFunctionoperator= (ThrottledFunction const &)=delete
 
ThrottledFunctionoperator= (ThrottledFunction &&other)
 
void operator() ()
 Calls the function if it is valid. More...
 
bool valid () const
 Returns true if this object contains a valid function. More...
 

Constructor & Destructor Documentation

◆ ThrottledFunction() [1/4]

Nui::ThrottledFunction::ThrottledFunction ( )

◆ ThrottledFunction() [2/4]

Nui::ThrottledFunction::ThrottledFunction ( int32_t  id,
bool  calledWhenReady,
std::function< void()>  func 
)

◆ ~ThrottledFunction()

Nui::ThrottledFunction::~ThrottledFunction ( )

◆ ThrottledFunction() [3/4]

Nui::ThrottledFunction::ThrottledFunction ( ThrottledFunction const &  )
delete

◆ ThrottledFunction() [4/4]

Nui::ThrottledFunction::ThrottledFunction ( ThrottledFunction &&  other)

Member Function Documentation

◆ operator()()

void Nui::ThrottledFunction::operator() ( )

Calls the function if it is valid.

◆ operator=() [1/2]

ThrottledFunction & Nui::ThrottledFunction::operator= ( ThrottledFunction &&  other)

◆ operator=() [2/2]

ThrottledFunction& Nui::ThrottledFunction::operator= ( ThrottledFunction const &  )
delete

◆ valid()

bool Nui::ThrottledFunction::valid ( ) const

Returns true if this object contains a valid function.


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