Class TBitSet
Unit
GContnrs
Declaration
type TBitSet = class(TContainer)
Description
Class to store collections of bits.
Hierarchy
Overview
Methods
Properties
Description
Methods
 |
procedure AndBits(BitSet : TBitSet); |
Performs a logical AND on the bits in the bitset with the bits of BitSet.
|
 |
function All : Boolean; |
Returns True if all the bits of the bitset are set, and False otherwise.
|
 |
function Any : Boolean; |
Returns True if any of the bits in the bitset is set, and False otherwise.
|
 |
function Cardinality : Integer; |
Returns the number of bits in the bitset that are set.
|
 |
procedure Clear(Index: Integer); |
Sets to False the bit at position Index.
|
 |
procedure ClearAll; |
Sets to False all bits in the bitset.
|
 |
constructor Create(Size: Integer); |
|
 |
constructor Create(Size: Integer; Value: QWord); |
|
 |
constructor Create(Size: Integer; const Value: String); |
|
 |
constructor Create(Value: TBitSet); |
|
 |
constructor Create(Size: Integer; Value: TBitSet); |
|
 |
procedure Debug; |
|
 |
function Equals(Obj: TObject) : Boolean; override; |
Returns True only if the bitset and Value are of the same size and have exactly the same set of bits set to True .
|
 |
procedure Flip(Index: Integer); |
Flips the bit at position Index.
|
 |
procedure FlipAll; |
Flips all bits in the bitset.
|
 |
procedure FlipFast(Index: Integer); inline; |
|
 |
procedure Initialize(Value: Int64); |
|
 |
procedure Initialize(const Value : String); |
|
 |
procedure Initialize(Value : TBitSet); |
|
 |
function None : Boolean; |
Returns True if none of the bits in the bitset is set to True , and False otherwise.
|
 |
procedure NotBits(BitSet : TBitSet); |
|
 |
procedure OrBits(BitSet : TBitSet); |
Performs a logical OR on the bits in the bitset with the bits of BitSet.
|
 |
procedure SetAll; |
Sets to True all bits in the bitset.
|
 |
procedure SetBit(Index : Integer; Value: Boolean); |
Sets to Value the bit at position Index.
|
 |
procedure SetBitFast(Index : Integer; Value: Boolean); inline; |
|
 |
procedure SetOn(Index: Integer); |
Sets to True the bit at position Index.
|
 |
procedure ShiftLeft(Count : Integer = 1); |
|
 |
procedure ShiftRight(Count : Integer = 1); |
|
 |
function Test(Index: Integer) : Boolean; |
Returns True if the bit at position Index is set, and False otherwise.
|
 |
function TestFast(Index : Integer): Boolean; inline; |
|
 |
function ToInteger: Integer; |
|
 |
function ToInt64: Int64; |
|
 |
function ToQWord: QWord; |
|
 |
function ToString: String; override; |
|
 |
procedure XorBits(BitSet : TBitSet); |
Performs a logical XOR on the bits in the bitset with the bits of BitSet.
|
Properties
 |
property Size : Integer read fSize; |
|
Generated by PasDoc 0.13.0 on 2014-07-29 16:12:40
|