C# Class natix.CompactDS.DiffSetRL2

This is similar to DiffSetRL but with core changes to support filled blocks
Inheritance: Bitmap
Exibir arquivo Open project: sadit/natix Class Usage Examples

Public Properties

Property Type Description
Stream BitStream32

Protected Properties

Property Type Description
B short

Public Methods

Method Description
Access ( int pos ) : bool
AssertEquality ( Bitmap _other ) : void
Build ( IEnumerable orderedList, int n, short b, IIEncoder32 coder = null ) : void

build methods

Build ( IList orderedList, short b, IIEncoder32 coder = null ) : void
Commit ( natix.CompactDS.BitStreamCtxRL ctx ) : void
DiffSetRL2 ( ) : System
DiffSetRL2 ( short B ) : System
Load ( BinaryReader R ) : void
Rank1 ( int pos ) : int
Save ( BinaryWriter W ) : void
Select1 ( int rank ) : int

Returns the position of the rank-th enabled bit

Private Methods

Method Description
BackendAccessRank1 ( int pos, int &found_pos, natix.CompactDS.BitStreamCtxRL ctx ) : int
BackendSelect1 ( int rank, natix.CompactDS.BitStreamCtxRL ctx ) : int
IsFilled ( int block_id ) : bool
ReadNext ( natix.CompactDS.BitStreamCtxRL ctx ) : int
SeqAccessRank1 ( int curr_pos, int pos, int max, int &found_pos, natix.CompactDS.BitStreamCtxRL ctx ) : int

Method Details

Access() public method

public Access ( int pos ) : bool
pos int
return bool

AssertEquality() public method

public AssertEquality ( Bitmap _other ) : void
_other Bitmap
return void

Build() public method

build methods
public Build ( IEnumerable orderedList, int n, short b, IIEncoder32 coder = null ) : void
orderedList IEnumerable
n int
b short
coder IIEncoder32
return void

Build() public method

public Build ( IList orderedList, short b, IIEncoder32 coder = null ) : void
orderedList IList
b short
coder IIEncoder32
return void

Commit() public method

public Commit ( natix.CompactDS.BitStreamCtxRL ctx ) : void
ctx natix.CompactDS.BitStreamCtxRL
return void

DiffSetRL2() public method

public DiffSetRL2 ( ) : System
return System

DiffSetRL2() public method

public DiffSetRL2 ( short B ) : System
B short
return System

Load() public method

public Load ( BinaryReader R ) : void
R System.IO.BinaryReader
return void

Rank1() public method

public Rank1 ( int pos ) : int
pos int
return int

Save() public method

public Save ( BinaryWriter W ) : void
W System.IO.BinaryWriter
return void

Select1() public method

Returns the position of the rank-th enabled bit
public Select1 ( int rank ) : int
rank int
return int

Property Details

B protected_oe property

protected short B
return short

Stream public_oe property

public BitStream32,natix.CompactDS Stream
return BitStream32