Asposecpplib
System::Collections::BitArray::Reference Class Reference

Reference class to allow treating BitArray elements in contexts where bool is required. More...

Public Member Functions

 ~Reference ()
 Deletes reference. More...
 
ASPOSECPP_SHARED_API operator bool () const
 Converts referenced value to bool. More...
 
ASPOSECPP_SHARED_API bool operator~ () const
 Inverts referenced value. More...
 
ASPOSECPP_SHARED_API Referenceoperator= (bool value)
 Sets referenced bit value. More...
 
ASPOSECPP_SHARED_API Referenceoperator= (const Reference &reference)
 Copies bit value. More...
 
ASPOSECPP_SHARED_API Referenceoperator|= (bool value)
 Assignment or operator. More...
 
ASPOSECPP_SHARED_API Referenceoperator&= (bool value)
 Assignment end operator. More...
 
ASPOSECPP_SHARED_API Referenceoperator^= (bool value)
 Assignment xor operator. More...
 
ASPOSECPP_SHARED_API Referenceoperator-= (bool value)
 Assignment substraction operator. More...
 

Detailed Description

Reference class to allow treating BitArray elements in contexts where bool is required.

Constructor & Destructor Documentation

◆ ~Reference()

System::Collections::BitArray::Reference::~Reference ( )

Deletes reference.

Member Function Documentation

◆ 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
valueRHS operand.
Returns
This reference.

◆ operator-=()

ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator-= ( bool  value)

Assignment substraction operator.

Parameters
valueRHS operand.
Returns
This reference.

◆ operator=() [1/2]

ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator= ( bool  value)

Sets referenced bit value.

Parameters
valueto set.
Returns
This reference.

◆ operator=() [2/2]

ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator= ( const Reference reference)

Copies bit value.

Parameters
referenceReference to source bit.
Returns
This reference.

◆ operator^=()

ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator^= ( bool  value)

Assignment xor operator.

Parameters
valueRHS operand.
Returns
This reference.

◆ operator|=()

ASPOSECPP_SHARED_API Reference& System::Collections::BitArray::Reference::operator|= ( bool  value)

Assignment or operator.

Parameters
valueRHS operand.
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.