WPILibC++ 2023.4.3-108-ge5452e3
frc::EventLoop Class Reference

The loop polling BooleanEvent objects and executing the actions bound to them. More...

#include <frc/event/EventLoop.h>

Public Member Functions

 EventLoop ()
 
 EventLoop (const EventLoop &)=delete
 
EventLoopoperator= (const EventLoop &)=delete
 
void Bind (wpi::unique_function< void()> action)
 Bind a new action to run. More...
 
void Poll ()
 Poll all bindings. More...
 
void Clear ()
 Clear all bindings. More...
 

Detailed Description

The loop polling BooleanEvent objects and executing the actions bound to them.

Constructor & Destructor Documentation

◆ EventLoop() [1/2]

frc::EventLoop::EventLoop ( )

◆ EventLoop() [2/2]

frc::EventLoop::EventLoop ( const EventLoop )
delete

Member Function Documentation

◆ Bind()

void frc::EventLoop::Bind ( wpi::unique_function< void()>  action)

Bind a new action to run.

Parameters
actionthe action to run.

◆ Clear()

void frc::EventLoop::Clear ( )

Clear all bindings.

◆ operator=()

EventLoop & frc::EventLoop::operator= ( const EventLoop )
delete

◆ Poll()

void frc::EventLoop::Poll ( )

Poll all bindings.


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