System::Collections::Specialized::BitVector32 Class Referencefinal

Provides a simple light bit vector with easy integer or Boolean access to a 32 bit storage. More...

Classes

class  Section
 Represents an section of the vector that can contain a integer number. More...
 

Public Member Functions

ASPOSECPP_SHARED_API BitVector32 ()
 Initializes a new empty instance of the BitVector32. More...
 
ASPOSECPP_SHARED_API int32_t get_Data ()
 returns the raw data stored in this bit vector... More...
 
ASPOSECPP_SHARED_API BitVector32 (int32_t data)
 
ASPOSECPP_SHARED_API BitVector32 (const BitVector32 &value)
 
ASPOSECPP_SHARED_API bool idx_get (int32_t bit)
 
ASPOSECPP_SHARED_API void idx_set (int32_t bit, bool value)
 
ASPOSECPP_SHARED_API int32_t idx_get (BitVector32::Section section)
 
ASPOSECPP_SHARED_API void idx_set (BitVector32::Section section, int32_t value)
 
ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Returns a hash code for the current object. More...
 
ASPOSECPP_SHARED_API bool Equals (const BitVector32 &obj)
 
ASPOSECPP_SHARED_API String ToString () const
 Converts value represented by current object to string. More...
 

Static Public Member Functions

static ASPOSECPP_SHARED_API int32_t CreateMask ()
 Creates the first mask in a series. More...
 
static ASPOSECPP_SHARED_API int32_t CreateMask (int32_t previous)
 
static ASPOSECPP_SHARED_API BitVector32::Section CreateSection (int16_t maxValue)
 
static ASPOSECPP_SHARED_API BitVector32::Section CreateSection (int16_t maxValue, BitVector32::Section previous)
 
static ASPOSECPP_SHARED_API String ToString (BitVector32 value)
 

Friends

bool operator== (BitVector32::Section a, BitVector32::Section b)
 
bool operator!= (BitVector32::Section a, BitVector32::Section b)
 

Detailed Description

Provides a simple light bit vector with easy integer or Boolean access to a 32 bit storage.

Constructor & Destructor Documentation

◆ BitVector32() [1/3]

ASPOSECPP_SHARED_API System::Collections::Specialized::BitVector32::BitVector32 ( )

Initializes a new empty instance of the 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
datainternal data

◆ 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
valueother BitVector32 object

Member Function Documentation

◆ 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
previousprevious series

◆ 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
maxValuespecified maximum value.

◆ CreateSection() [2/2]

static ASPOSECPP_SHARED_API BitVector32::Section System::Collections::Specialized::BitVector32::CreateSection ( int16_t  maxValue,
BitVector32::Section  previous 
)
static

Creates the next section in a series, with the specified maximum value.

Parameters
maxValuespecified maximum value.
previousprevious 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
objobject to be compared
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
bitspecified bits.

◆ 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
sectionspecified 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
bitspecified bits.
valuevalue 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
sectionspecified section.
valuespecified value.

◆ ToString() [1/2]

static ASPOSECPP_SHARED_API String System::Collections::Specialized::BitVector32::ToString ( BitVector32  value)
static

Converts value represented by value parameter to string

Parameters
valueobject 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.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( BitVector32::Section  a,
BitVector32::Section  b 
)
friend

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==

bool operator== ( BitVector32::Section  a,
BitVector32::Section  b 
)
friend

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.