FastLED
3.9.15
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
x
Variables
Typedefs
a
b
c
d
e
h
i
l
o
p
r
s
t
u
v
x
Enumerations
Enumerator
b
c
d
f
h
k
l
m
n
p
r
s
w
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
v
x
y
Enumerations
Enumerator
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
y
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
k
l
n
p
q
r
s
t
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
singleton.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
fl/namespace.h
"
4
5
namespace
fl
{
6
7
// A templated singleton class, parameterized by the type of the singleton and
8
// an optional integer.
9
template
<
typename
T,
int
N = 0>
class
Singleton
{
10
public
:
11
static
T &
instance
() {
12
static
T
instance
;
13
return
instance
;
14
}
11
static
T &
instance
() {
…
}
15
static
T *
instanceRef
() {
return
&
instance
(); }
16
Singleton
(
const
Singleton
&) =
delete
;
17
Singleton
&
operator=
(
const
Singleton
&) =
delete
;
18
19
private
:
20
Singleton
() =
default
;
21
~Singleton
() =
default
;
22
};
9
template
<
typename
T,
int
N = 0>
class
Singleton
{
…
};
23
24
}
// namespace fl
fl::Singleton::instanceRef
static T * instanceRef()
Definition
singleton.h:15
fl::Singleton::instance
static T & instance()
Definition
singleton.h:11
fl::Singleton::operator=
Singleton & operator=(const Singleton &)=delete
fl::Singleton::Singleton
Singleton()=default
fl::Singleton::~Singleton
~Singleton()=default
fl::Singleton::Singleton
Singleton(const Singleton &)=delete
namespace.h
Implements the FastLED namespace macros.
fl
Implements a simple red square effect for 2D LED grids.
Definition
crgb.h:16
fl
singleton.h
Generated on Thu Jun 5 2025 04:29:38 for FastLED by
1.13.2