A reference supporting read/write access to an entry. More...
Public Member Functions | |
reference (const reference &)=default | |
Copy construct. More... | |
reference (reference &&)=default | |
Move construct. More... | |
void | operator= (const reference &other) |
Value assignment. More... | |
void | operator= (const unsigned int val) |
Value assignment. More... | |
operator unsigned int () const | |
Conversion operator. More... | |
Protected Member Functions | |
void | operator& ()=delete |
reference (PackedList *parent, const label index) | |
unsigned int | get () const |
Get value as unsigned, no range-checking. More... | |
bool | set (unsigned int val) |
Set value, returning true if changed, no range-checking. More... | |
Protected Attributes | |
block_type & | ref_ |
Reference to the block. More... | |
unsigned | shift_ |
The bit shift to access the given sub-portion. More... | |
Friends | |
class | PackedList |
A reference supporting read/write access to an entry.
Definition at line 465 of file PackedList.H.
|
inlineprotected |
Construct by taking reference of block from within the list and the specified index.
|
protecteddelete |
|
inlineprotected |
Get value as unsigned, no range-checking.
Definition at line 302 of file PackedListI.H.
References PackedList< Width >::max_value, PackedList< Width >::reference::ref_, and PackedList< Width >::reference::shift_.
Referenced by PackedList< Width >::get(), and PackedList< Width >::remove().
|
inlineprotected |
Set value, returning true if changed, no range-checking.
Definition at line 309 of file PackedListI.H.
Referenced by PackedList< Width >::append(), PackedList< Width >::set(), and PackedList< Width >::unset().
Value assignment.
Definition at line 329 of file PackedListI.H.
References PackedList< Width >::set().
|
inline |
Value assignment.
Definition at line 340 of file PackedListI.H.
|
inline |
Conversion operator.
Definition at line 350 of file PackedListI.H.
References PackedList< Width >::get().
|
friend |
Definition at line 469 of file PackedList.H.
|
protected |
Reference to the block.
Definition at line 473 of file PackedList.H.
Referenced by PackedList< Width >::reference::get().
|
protected |
The bit shift to access the given sub-portion.
Definition at line 476 of file PackedList.H.
Referenced by PackedList< Width >::reference::get().