|
FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Useful functors that can be used as template arguments, particularly in I2C device utilities. More...


Go to the source code of this file.
Classes | |
| class | functor::Identity< T > |
| Identity functor: always returns its argument, unchanged. More... | |
| class | functor::Constant< T, VAL > |
| Constant functor: always returns a constant value. More... | |
| class | functor::Cast< ARG, RES > |
Cast functor: returns its argument of type ARG casted to type RES. More... | |
| class | functor::Compose< F1, F2 > |
| Composition functor: applies 2 functors one after each other. More... | |
| class | functor::ChangeEndianness< T, TT > |
| Endianness change functor: will change from big to little or little to big endian format on integer types. More... | |
| struct | functor::Functor< FUNCTOR > |
| Utility to instantiate and execute a functor from its type. More... | |
Namespaces | |
| namespace | functor |
| This namespace defines a few useful functors. | |
Useful functors that can be used as template arguments, particularly in I2C device utilities.
Definition in file functors.h.