JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
JXFunctionTask Class Reference

#include <JXFunctionTask.h>

Inheritance diagram for JXFunctionTask:
[legend]

Public Member Functions

 JXFunctionTask (const Time period, const std::function< void()> &f, const bool oneShot=false)
 
 ~JXFunctionTask () override
 
- Public Member Functions inherited from JXIdleTask
 JXIdleTask (const Time period)
 
virtual ~JXIdleTask ()
 
void Start ()
 
void Stop ()
 
Time GetPeriod () const
 
void SetPeriod (const Time period)
 
void ResetTimer ()
 

Protected Member Functions

void Perform (const Time delta) override
 
- Protected Member Functions inherited from JXIdleTask
bool Ready (const Time delta, Time *maxSleepTime)
 

Constructor & Destructor Documentation

◆ JXFunctionTask()

JXFunctionTask::JXFunctionTask ( const Time  period,
const std::function< void()> &  f,
const bool  oneShot = false 
)

◆ ~JXFunctionTask()

JXFunctionTask::~JXFunctionTask ( )
override

Member Function Documentation

◆ Perform()

void JXFunctionTask::Perform ( const Time  delta)
overrideprotectedvirtual

Implements JXIdleTask.


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