GF2::Vector::reference — Proxy for Individual Bits
GF2::Vector<Block, Allocator>::reference is a publicly accessible nested class.
It is a proxy that lets users interact with individual elements/bits in a bit-vector.
It is needed because normal C++ types cannot target down to the bit level of precision.
The primary use of this class is to provide an l-value that can be returned from operator[] and operator().
Member Functions
|
The bit-vector methods |
|
Assigns a |
|
Return the value of the referenced element. |
|
Sets the referenced element to 1, 0, or flips its value. |
|
Logical AND, XOR, OR, and DIFF of the referenced element with a |
|
Flips the value of the referenced element from 0 to 1 and vice versa. |