FastLED 3.9.7
Loading...
Searching...
No Matches
fl::XMap Class Reference

Detailed Description

Definition at line 28 of file xmap.h.

Public Types

enum  Type { kLinear = 0 , kReverse , kFunction , kLookUpTable }
 

Public Member Functions

 XMap (uint16_t length, bool is_reverse=false, uint16_t offset=0)
 
 XMap (const XMap &other)
 
XMapoperator= (const XMap &other)
 
void convertToLookUpTable ()
 
uint16_t mapToIndex (uint16_t x) const
 
uint16_t operator() (uint16_t x) const
 
uint16_t getLength () const
 
Type getType () const
 

Static Public Member Functions

static XMap constructWithUserFunction (uint16_t length, XFunction xFunction, uint16_t offset=0)
 
static XMap constructWithLookUpTable (uint16_t length, const uint16_t *lookUpTable, uint16_t offset=0)
 

Member Enumeration Documentation

◆ Type

enum fl::XMap::Type

Definition at line 30 of file xmap.h.

Constructor & Destructor Documentation

◆ XMap() [1/2]

fl::XMap::XMap ( uint16_t length,
bool is_reverse = false,
uint16_t offset = 0 )

Definition at line 28 of file xmap.cpp.

◆ XMap() [2/2]

fl::XMap::XMap ( const XMap & other)

Definition at line 36 of file xmap.cpp.

Member Function Documentation

◆ constructWithLookUpTable()

XMap fl::XMap::constructWithLookUpTable ( uint16_t length,
const uint16_t * lookUpTable,
uint16_t offset = 0 )
static

Definition at line 19 of file xmap.cpp.

◆ constructWithUserFunction()

XMap fl::XMap::constructWithUserFunction ( uint16_t length,
XFunction xFunction,
uint16_t offset = 0 )
static

Definition at line 10 of file xmap.cpp.

◆ convertToLookUpTable()

void fl::XMap::convertToLookUpTable ( )

Definition at line 47 of file xmap.cpp.

◆ getLength()

uint16_t fl::XMap::getLength ( ) const

Definition at line 88 of file xmap.cpp.

◆ getType()

XMap::Type fl::XMap::getType ( ) const

Definition at line 94 of file xmap.cpp.

◆ mapToIndex()

uint16_t fl::XMap::mapToIndex ( uint16_t x) const

Definition at line 64 of file xmap.cpp.

◆ operator()()

uint16_t fl::XMap::operator() ( uint16_t x) const
inline

Definition at line 53 of file xmap.h.

◆ operator=()

XMap & fl::XMap::operator= ( const XMap & other)

Definition at line 106 of file xmap.cpp.


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