WPILibC++ 2025.3.1
Loading...
Searching...
No Matches
frc::LEDPattern::LEDReader Class Reference

A wrapper around a length and an arbitrary reader function that accepts an LED index and returns data for the LED at that index. More...

#include <frc/LEDPattern.h>

Public Member Functions

 LEDReader (std::function< frc::AddressableLED::LEDData(int)> impl, size_t size)
 
frc::AddressableLED::LEDData operator[] (size_t index) const
 
size_t size () const
 

Detailed Description

A wrapper around a length and an arbitrary reader function that accepts an LED index and returns data for the LED at that index.

This configuration allows us to abstract over different container types without templating.

Constructor & Destructor Documentation

◆ LEDReader()

frc::LEDPattern::LEDReader::LEDReader ( std::function< frc::AddressableLED::LEDData(int)> impl,
size_t size )
inline

Member Function Documentation

◆ operator[]()

frc::AddressableLED::LEDData frc::LEDPattern::LEDReader::operator[] ( size_t index) const
inline

◆ size()

size_t frc::LEDPattern::LEDReader::size ( ) const
inline

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