ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
Public Member Functions | Public Attributes | List of all members
arpirobot::Task Class Reference

#include <scheduler.hpp>

Inheritance diagram for arpirobot::Task:
arpirobot::RepeatedTask

Public Member Functions

 Task (const std::function< void()> &&f)
 
virtual sched_clk::time_point nextRunTime ()
 
virtual bool doesRepeat ()
 

Public Attributes

std::function< void()> targetFunction
 

Detailed Description

Class to represent a task for the scheduler. Holds the function to be run for this task

Also acts as a common base class for all tasks, including repeated ones.


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