Provides a simple light bit vector with easy integer or Boolean access to a 32 bit storage.
More...
#include "bit_vector_32.h"
|
class | Section |
| Represents an section of the vector that can contain a integer number. More...
|
|
Provides a simple light bit vector with easy integer or Boolean access to a 32 bit storage.
◆ BitVector32() [1/3]
ASPOSECPP_SHARED_API System::Collections::Specialized::BitVector32::BitVector32 |
( |
| ) |
|
◆ BitVector32() [2/3]
ASPOSECPP_SHARED_API System::Collections::Specialized::BitVector32::BitVector32 |
( |
int32_t |
data | ) |
|
Initializes a new instance of the BitVector32 structure with the specified internal data.
- Parameters
-
◆ BitVector32() [3/3]
ASPOSECPP_SHARED_API System::Collections::Specialized::BitVector32::BitVector32 |
( |
const BitVector32 & |
value | ) |
|
Initializes a new instance of the BitVector32 structure with the information in the specified value.
- Parameters
-
◆ CreateMask() [1/2]
static ASPOSECPP_SHARED_API int32_t System::Collections::Specialized::BitVector32::CreateMask |
( |
| ) |
|
|
static |
Creates the first mask in a series.
◆ CreateMask() [2/2]
static ASPOSECPP_SHARED_API int32_t System::Collections::Specialized::BitVector32::CreateMask |
( |
int32_t |
previous | ) |
|
|
static |
Creates the next mask in a series.
- Parameters
-
◆ CreateSection() [1/2]
static ASPOSECPP_SHARED_API BitVector32::Section System::Collections::Specialized::BitVector32::CreateSection |
( |
int16_t |
maxValue | ) |
|
|
static |
Creates the first section in a series, with the specified maximum value.
- Parameters
-
maxValue | specified maximum value. |
◆ CreateSection() [2/2]
Creates the next section in a series, with the specified maximum value.
- Parameters
-
maxValue | specified maximum value. |
previous | previous series |
◆ Equals()
ASPOSECPP_SHARED_API bool System::Collections::Specialized::BitVector32::Equals |
( |
const BitVector32 & |
obj | ) |
|
Determines whether the specified object is the same as the current.
- Parameters
-
- Returns
- True if objects are equal, otherwise - false
◆ get_Data()
ASPOSECPP_SHARED_API int32_t System::Collections::Specialized::BitVector32::get_Data |
( |
| ) |
|
returns the raw data stored in this bit vector...
◆ GetHashCode()
ASPOSECPP_SHARED_API int32_t System::Collections::Specialized::BitVector32::GetHashCode |
( |
| ) |
const |
Returns a hash code for the current object.
◆ idx_get() [1/2]
ASPOSECPP_SHARED_API bool System::Collections::Specialized::BitVector32::idx_get |
( |
int32_t |
bit | ) |
|
Gets a value indicating whether all the specified bits are set.
- Parameters
-
◆ idx_get() [2/2]
ASPOSECPP_SHARED_API int32_t System::Collections::Specialized::BitVector32::idx_get |
( |
BitVector32::Section |
section | ) |
|
Gets the value for the specified section.
- Parameters
-
section | specified section. |
◆ idx_set() [1/2]
ASPOSECPP_SHARED_API void System::Collections::Specialized::BitVector32::idx_set |
( |
int32_t |
bit, |
|
|
bool |
value |
|
) |
| |
Sets a value indicating whether all the specified bits are set.
- Parameters
-
bit | specified bits. |
value | value to set. |
◆ idx_set() [2/2]
ASPOSECPP_SHARED_API void System::Collections::Specialized::BitVector32::idx_set |
( |
BitVector32::Section |
section, |
|
|
int32_t |
value |
|
) |
| |
Sets the value for the specified section.
- Parameters
-
section | specified section. |
value | specified value. |
◆ ToString() [1/2]
static ASPOSECPP_SHARED_API String System::Collections::Specialized::BitVector32::ToString |
( |
const BitVector32 & |
value | ) |
|
|
static |
Converts value represented by value parameter to string.
- Parameters
-
value | object to be converted |
- Returns
- string representation of object
◆ ToString() [2/2]
ASPOSECPP_SHARED_API String System::Collections::Specialized::BitVector32::ToString |
( |
| ) |
const |
Converts value represented by current object to string.
◆ operator!=
Checks if two specified objects are not equal.
- Parameters
-
a | - first object to compare |
b | - second object to compare |
- Returns
- true if are not equal, otherwise - false.
◆ operator==
Checks if two specified objects are equal.
- Parameters
-
a | - first object to compare |
b | - second object to compare |
- Returns
- true if are equal, otherwise - false.