7Referent::Referent() : mRefCount(0) {}
8Referent::~Referent() =
default;
9void Referent::ref() { mRefCount++; }
11int Referent::ref_count()
const {
return mRefCount; }
13void Referent::unref() {
14 if (--mRefCount == 0) {
16 mWeakPtr->setReferent(
nullptr);
23void Referent::destroy() {
delete this; }
25Referent::Referent(
const Referent &) =
default;
26Referent &Referent::operator=(
const Referent &) =
default;
27Referent::Referent(Referent &&) =
default;
28Referent &Referent::operator=(Referent &&) =
default;
Implements the FastLED namespace macros.
Implements a simple red square effect for 2D LED grids.