A reference supporting read/write access to an entry. More...
#include <bitSet.H>


Public Member Functions | |
| reference (const reference &) noexcept=default | |
| Copy construct. | |
| reference (reference &&) noexcept=default | |
| Move construct. | |
| void | flip () |
| Flip the bit at the position, no range-checking. | |
| void | operator= (const reference &other) |
| Value assignment. | |
| void | operator= (const unsigned int val) |
| Value assignment. | |
| operator unsigned int () const | |
| Conversion operator. | |
| Public Member Functions inherited from PackedList< Width >::reference | |
| reference (const reference &) noexcept=default | |
| Copy construct. | |
| reference (reference &&) noexcept=default | |
| Move construct. | |
| void | operator= (const reference &other) |
| Value assignment. | |
| void | operator= (const unsigned int val) |
| Value assignment. | |
| operator unsigned int () const | |
| Conversion operator. | |
Protected Member Functions | |
| void | operator& ()=delete |
| reference (bitSet *parent, const label index) | |
| Construct by taking reference of block from within the list and the specified index. | |
| Protected Member Functions inherited from PackedList< Width >::reference | |
| void | operator& ()=delete |
| reference (PackedList *parent, const label index) | |
| Construct by taking reference of block from within the list and the specified index. | |
| unsigned int | get () const |
| Get value as unsigned, no range-checking. | |
| bool | set (unsigned int val) |
| Set value, returning true if changed, no range-checking. | |
Friends | |
| class | bitSet |
Additional Inherited Members | |
| Protected Attributes inherited from PackedList< Width >::reference | |
| block_type & | ref_ |
| Reference to the block. | |
| unsigned | shift_ |
| The bit shift to access the given sub-portion. | |
|
inlineprotected |
Construct by taking reference of block from within the list and the specified index.
Definition at line 124 of file bitSetI.H.
References bitSet, PackedList< Width >::reference::PackedList, and reference().
Referenced by operator=(), reference(), reference(), and reference().


|
defaultnoexcept |
|
defaultnoexcept |
Move construct.
References flip(), Foam::noexcept, and reference().

|
protecteddelete |
|
inline |
Flip the bit at the position, no range-checking.
Definition at line 134 of file bitSetI.H.
References PackedList< 1 >::max_value, PackedList< Width >::reference::ref_, and PackedList< Width >::reference::shift_.
Referenced by bitSet::flip(), and reference().

|
inline |
Value assignment.
Definition at line 141 of file bitSetI.H.
References reference(), and bitSet::set().

|
inline |
Value assignment.
Definition at line 151 of file bitSetI.H.
References bitSet::set().

|
inline |
Conversion operator.
Definition at line 160 of file bitSetI.H.
References PackedList< 1 >::get().

|
friend |
Definition at line 646 of file bitSet.H.
References bitSet.
Referenced by bitSet, operator&(), and reference().