CTRE Phoenix C++ 5.35.1
|
Scheduler that will run its ILoopables in sequence. More...
#include <ctre/phoenix/tasking/Schedulers/SequentialScheduler.h>
Public Member Functions | |
SequentialScheduler () | |
virtual | ~SequentialScheduler () |
void | Add (ILoopable *aLoop) |
Add ILoopable to scheduler. | |
ILoopable * | GetCurrent () |
Get the currently running ILoopable. | |
void | RemoveAll () |
Remove all ILoopables. | |
void | Start () |
Start next ILoopable. | |
void | Stop () |
Stop every ILoopable. | |
void | Process () |
Process the currently active ILoopable. | |
void | OnStart () |
Start next ILoopable. | |
void | OnLoop () |
Process currently active ILoopable. | |
void | OnStop () |
Stop all ILoopables. | |
bool | IsDone () |
Public Member Functions inherited from ctre::phoenix::tasking::ILoopable | |
virtual | ~ILoopable () |
Public Member Functions inherited from ctre::phoenix::tasking::IProcessable | |
virtual | ~IProcessable () |
Public Attributes | |
bool | _running = false |
should be private | |
std::vector< ILoopable * > | _loops |
should be private | |
unsigned int | _idx = 0 |
should be private | |
bool | _iterated = false |
should be private | |
Scheduler that will run its ILoopables in sequence.
ctre::phoenix::tasking::schedulers::SequentialScheduler::SequentialScheduler | ( | ) |
|
virtual |
void ctre::phoenix::tasking::schedulers::SequentialScheduler::Add | ( | ILoopable * | aLoop | ) |
ILoopable * ctre::phoenix::tasking::schedulers::SequentialScheduler::GetCurrent | ( | ) |
Get the currently running ILoopable.
|
virtual |
Implements ctre::phoenix::tasking::ILoopable.
|
virtual |
Process currently active ILoopable.
Implements ctre::phoenix::tasking::ILoopable.
|
virtual |
Start next ILoopable.
Implements ctre::phoenix::tasking::ILoopable.
|
virtual |
Stop all ILoopables.
Implements ctre::phoenix::tasking::ILoopable.
|
virtual |
Process the currently active ILoopable.
Call this every loop
Implements ctre::phoenix::tasking::IProcessable.
void ctre::phoenix::tasking::schedulers::SequentialScheduler::RemoveAll | ( | ) |
Remove all ILoopables.
void ctre::phoenix::tasking::schedulers::SequentialScheduler::Start | ( | ) |
Start next ILoopable.
void ctre::phoenix::tasking::schedulers::SequentialScheduler::Stop | ( | ) |
Stop every ILoopable.
unsigned int ctre::phoenix::tasking::schedulers::SequentialScheduler::_idx = 0 |
should be private
bool ctre::phoenix::tasking::schedulers::SequentialScheduler::_iterated = false |
should be private
std::vector<ILoopable*> ctre::phoenix::tasking::schedulers::SequentialScheduler::_loops |
should be private
bool ctre::phoenix::tasking::schedulers::SequentialScheduler::_running = false |
should be private