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) | |
Construct by taking reference of block from within the list and the specified index. More... | |
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 640 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 295 of file PackedListI.H.
References PackedList< Width >::max_value, PackedList< Width >::reference::ref_, and PackedList< Width >::reference::shift_.
|
inlineprotected |
Set value, returning true if changed, no range-checking.
Definition at line 302 of file PackedListI.H.
References PackedList< Width >::max_value.
Value assignment.
Definition at line 323 of file PackedListI.H.
|
inline |
Value assignment.
Definition at line 334 of file PackedListI.H.
|
inline |
Conversion operator.
Definition at line 343 of file PackedListI.H.
|
friend |
Definition at line 644 of file PackedList.H.
|
protected |
Reference to the block.
Definition at line 650 of file PackedList.H.
Referenced by bitSet::reference::flip(), and PackedList< Width >::reference::get().
|
protected |
The bit shift to access the given sub-portion.
Definition at line 655 of file PackedList.H.
Referenced by bitSet::reference::flip(), and PackedList< Width >::reference::get().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.