Reference class to allow treating BitArray elements in contexts where bool is required.
More...
Reference class to allow treating BitArray elements in contexts where bool is required.
◆ ~Reference()
System::Collections::BitArray::Reference::~Reference |
( |
| ) |
|
◆ operator bool()
ASPOSECPP_SHARED_API System::Collections::BitArray::Reference::operator bool |
( |
| ) |
const |
Converts referenced value to bool.
- Returns
- true if bit is non-zero, false otherwise.
◆ operator&=()
ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator &= |
( |
bool |
value | ) |
|
Assignment end operator.
- Parameters
-
- Returns
- This reference.
◆ operator-=()
ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator-= |
( |
bool |
value | ) |
|
Assignment substraction operator.
- Parameters
-
- Returns
- This reference.
◆ operator=() [1/2]
ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator= |
( |
bool |
value | ) |
|
Sets referenced bit value.
- Parameters
-
- Returns
- This reference.
◆ operator=() [2/2]
ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator= |
( |
const Reference & |
reference | ) |
|
Copies bit value.
- Parameters
-
- Returns
- This reference.
◆ operator^=()
ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator^= |
( |
bool |
value | ) |
|
Assignment xor operator.
- Parameters
-
- Returns
- This reference.
◆ operator|=()
ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator|= |
( |
bool |
value | ) |
|
Assignment or operator.
- Parameters
-
- Returns
- This reference.
◆ operator~()
ASPOSECPP_SHARED_API bool System::Collections::BitArray::Reference::operator~ |
( |
| ) |
const |
Inverts referenced value.
- Returns
- true if bit is zero, false otherwise.