MCPcopy Create free account
hub / github.com/devosoft/avida / cBitProxy

Class cBitProxy

avida-core/source/tools/cBitArray.h:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240
241 // Setup a bit proxy so that we can use operator[] on bit arrays as a lvalue.
242 class cBitProxy {
243 private:
244 cBitArray & array;
245 int index;
246 public:
247 cBitProxy(cBitArray & _array, int _idx) : array(_array), index(_idx) {;}
248
249 inline cBitProxy & operator=(bool b); // lvalue handling...
250 inline operator bool() const; // rvalue handling...
251 };
252 friend class cBitProxy;
253public:
254 cBitArray() : array_size(0) { ; }

Callers 1

operator[]Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected