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

Public Member Functions | |
| 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 (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. | |
Protected Attributes | |
| block_type & | ref_ |
| Reference to the block. | |
| unsigned | shift_ |
| The bit shift to access the given sub-portion. | |
Friends | |
| class | PackedList |
A reference supporting read/write access to an entry.
Definition at line 693 of file PackedList.H.
|
inlineprotected |
Construct by taking reference of block from within the list and the specified index.
References PackedList.
Referenced by operator=(), reference(), and reference().


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

|
protecteddelete |
|
inlineprotected |
Get value as unsigned, no range-checking.
Definition at line 362 of file PackedListI.H.
References PackedList< Width >::max_value, ref_, and shift_.
Referenced by operator unsigned int(), and PackedList< Width >::remove().

|
inlineprotected |
Set value, returning true if changed, no range-checking.
Definition at line 369 of file PackedListI.H.
References PackedList< Width >::max_value, and shift_.
Referenced by operator=(), operator=(), and PackedList< Width >::unset().

|
inline |
Value assignment.
Definition at line 389 of file PackedListI.H.
References reference(), and set().

|
inline |
Value assignment.
Definition at line 400 of file PackedListI.H.
References set().

|
inline |
Conversion operator.
Definition at line 410 of file PackedListI.H.
References get().

|
friend |
Definition at line 697 of file PackedList.H.
References PackedList.
Referenced by PackedList, bitSet::reference::reference(), and reference().
|
protected |
Reference to the block.
Definition at line 703 of file PackedList.H.
Referenced by bitSet::reference::flip(), and get().
|
protected |
The bit shift to access the given sub-portion.
Definition at line 708 of file PackedList.H.
Referenced by bitSet::reference::flip(), get(), and set().