bitSet::reference Class Reference

A reference supporting read/write access to an entry. More...

Inheritance diagram for bitSet::reference:
[legend]
Collaboration diagram for bitSet::reference:
[legend]

Public Member Functions

 reference (const reference &)=default
 Copy construct. More...
 
 reference (reference &&)=default
 Move construct. More...
 
void flip ()
 Flip the bit at the position, no range-checking. 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...
 
- Public Member Functions inherited from PackedList< Width >::reference
 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 (bitSet *parent, const label index)
 
- Protected Member Functions inherited from PackedList< Width >::reference
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...
 

Friends

class bitSet
 

Additional Inherited Members

- Protected Attributes inherited from PackedList< Width >::reference
block_typeref_
 Reference to the block. More...
 
unsigned shift_
 The bit shift to access the given sub-portion. More...
 

Detailed Description

A reference supporting read/write access to an entry.

Definition at line 444 of file bitSet.H.

Constructor & Destructor Documentation

◆ reference() [1/3]

reference ( bitSet parent,
const label  index 
)
inlineprotected

Construct by taking reference of block from within the list and the specified index.

Definition at line 179 of file bitSetI.H.

◆ reference() [2/3]

reference ( const reference )
default

Copy construct.

◆ reference() [3/3]

reference ( reference &&  )
default

Move construct.

Member Function Documentation

◆ operator&()

void operator& ( )
protecteddelete

◆ flip()

void flip ( )
inline

Flip the bit at the position, no range-checking.

Definition at line 188 of file bitSetI.H.

References PackedList< 1 >::max_value, PackedList< Width >::reference::ref_, and PackedList< Width >::reference::shift_.

Referenced by bitSet::flip().

Here is the caller graph for this function:

◆ operator=() [1/2]

void operator= ( const reference other)
inline

Value assignment.

Definition at line 196 of file bitSetI.H.

References bitSet::set().

Here is the call graph for this function:

◆ operator=() [2/2]

void operator= ( const unsigned int  val)
inline

Value assignment.

Definition at line 206 of file bitSetI.H.

References bitSet::set().

Here is the call graph for this function:

◆ operator unsigned int()

operator unsigned int ( ) const
inline

Conversion operator.

Definition at line 214 of file bitSetI.H.

References PackedList< 1 >::get().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ bitSet

friend class bitSet
friend

Definition at line 450 of file bitSet.H.


The documentation for this class was generated from the following files: