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

Class Proxy

src/fl/stl/bitset.h:378–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376
377 public:
378 struct Proxy {
379 bitset_inlined &_bitset;
380 fl::u32 _pos;
381
382 Proxy(bitset_inlined &bitset, fl::u32 pos) FL_NOEXCEPT
383 : _bitset(bitset), _pos(pos) {}
384
385 Proxy &operator=(bool value) FL_NOEXCEPT {
386 _bitset.set(_pos, value);
387 return *this;
388 }
389
390 operator bool() const FL_NOEXCEPT { return _bitset.test(_pos); }
391 };
392
393 Proxy operator[](fl::u32 pos) FL_NOEXCEPT { return Proxy(*this, pos); }
394

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected