FastLED 3.9.15
|
#include <variant.h>
Classes | |
struct | type_to_tag_impl |
struct | type_to_tag_impl< T > |
struct | type_to_tag_impl< T, U, Rest... > |
Public Types | |
using | Tag = uint8_t |
Public Member Functions | |
Variant () noexcept | |
template<typename T, typename = typename fl::enable_if< contains_type<T, Types...>::value>::type> | |
Variant (const T &value) | |
Variant (const Variant &other) | |
template<typename T, typename = typename fl::enable_if< contains_type<T, Types...>::value>::type> | |
Variant (T &&value) | |
Variant (Variant &&other) noexcept | |
~Variant () | |
template<typename T, typename... Args> | |
fl::enable_if< contains_type< T, Types... >::value, T & >::type | emplace (Args &&...args) |
bool | empty () const noexcept |
template<typename T> | |
bool | equals (const T &other) const |
template<typename T> | |
bool | is () const noexcept |
template<typename T, typename = typename fl::enable_if< contains_type<T, Types...>::value>::type> | |
Variant & | operator= (const T &value) |
Variant & | operator= (const Variant &other) |
template<typename T, typename = typename fl::enable_if< contains_type<T, Types...>::value>::type> | |
Variant & | operator= (T &&value) |
Variant & | operator= (Variant &&other) noexcept |
template<typename T> | |
T * | ptr () |
template<typename T> | |
const T * | ptr () const |
void | reset () noexcept |
Tag | tag () const noexcept |
template<typename Visitor> | |
void | visit (Visitor &visitor) |
template<typename Visitor> | |
void | visit (Visitor &visitor) const |
Static Public Attributes | |
static constexpr Tag | Empty = 0 |
Private Member Functions | |
template<typename T, typename... Args> | |
void | construct (Args &&...args) |
void | copy_construct_from (const Variant &other) |
void | destroy_current () noexcept |
void | move_construct_from (Variant &other) noexcept |
Static Private Member Functions | |
template<typename T> | |
static void | copy_fn (void *storage, const Variant &other) |
template<typename T> | |
static void | destroy_fn (void *storage) |
template<typename T> | |
static void | move_fn (void *storage, Variant &other) |
template<typename T> | |
static constexpr Tag | type_to_tag () |
template<typename T, typename Visitor> | |
static void | visit_fn (void *storage, Visitor &v) |
template<typename T, typename Visitor> | |
static void | visit_fn_const (const void *storage, Visitor &v) |
Private Attributes | |
char | _storage [max_size< Types... >::value] |
Tag | _tag |
using fl::Variant< Types >::Tag = uint8_t |
|
inlinenoexcept |
|
inline |
Definition at line 20 of file variant.h.
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inlineprivate |
Definition at line 249 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::Variant(), fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::Variant(), fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::emplace(), fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=(), and fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=().
|
inlineprivate |
Definition at line 196 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=().
|
inlinestaticprivate |
|
inlineprivatenoexcept |
Definition at line 183 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::reset().
|
inlinestaticprivate |
|
inline |
|
inlinenoexcept |
Definition at line 100 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::Variant(), fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=(), fl::Optional< T >::operator==(), and fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::reset().
|
inline |
|
inlinenoexcept |
Definition at line 102 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::ptr(), and fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::ptr().
|
inlineprivatenoexcept |
Definition at line 209 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::Variant(), and fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=().
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Definition at line 106 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::emplace().
|
inline |
|
inlinenoexcept |
Definition at line 92 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::~Variant(), fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::emplace(), fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=(), fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=(), fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=(), and fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::operator=().
|
inlinenoexcept |
|
inlinestaticconstexprprivate |
Definition at line 228 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::construct(), and fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::is().
|
inline |
Definition at line 136 of file variant.h.
Referenced by fl::Gradient::Gradient().
|
inline |
Definition at line 153 of file variant.h.
|
inlinestaticprivate |
|
inlinestaticprivate |
|
private |
|
private |
Definition at line 257 of file variant.h.
Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::copy_construct_from().
|
staticconstexpr |