MCPcopy Create free account
hub / github.com/FastLED/FastLED / Proxy

Class Proxy

src/fl/stl/bitset.h:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54 public:
55 struct Proxy {
56 bitset_fixed &_bitset;
57 fl::u32 _pos;
58
59 Proxy(bitset_fixed &bitset, fl::u32 pos) FL_NOEXCEPT : _bitset(bitset), _pos(pos) {}
60
61 Proxy &operator=(bool value) FL_NOEXCEPT {
62 _bitset.set(_pos, value);
63 return *this;
64 }
65
66 operator bool() const FL_NOEXCEPT { return _bitset.test(_pos); }
67 };
68
69 Proxy operator[](fl::u32 pos) FL_NOEXCEPT { return Proxy(*this, pos); }
70

Callers 2

operator[]Method · 0.70
operator[]Method · 0.70

Calls 2

setMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected