C# Class natix.CompactDS.DiffSetRL2_64

A DiffSetRL2 supporting items on [0,2^63]
Inheritance: Bitmap64
Exibir arquivo Open project: sadit/natix Class Usage Examples

Protected Properties

Property Type Description
B short
Coder IIEncoder64
M int
N long
Stream BitStream32

Public Methods

Method Description
Access ( long pos ) : bool
AssertEquality ( Bitmap64 _other ) : void
Build ( IEnumerable orderedList, long n, short b, IIEncoder64 coder = null ) : void

build methods

Build ( IList orderedList, short b, IIEncoder64 coder = null ) : void
DiffSetRL2_64 ( ) : System
Load ( BinaryReader Input ) : void
Rank1 ( long pos ) : long
Save ( BinaryWriter Output ) : void
Select1 ( long rank ) : long

Returns the position of the rank-th enabled bit

Protected Methods

Method Description
Commit ( natix.CompactDS.BitStreamCtxRL ctx ) : void

Private Methods

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

Method Details

Access() public method

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

AssertEquality() public method

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

Build() public method

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

Build() public method

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

Commit() protected method

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

DiffSetRL2_64() public method

public DiffSetRL2_64 ( ) : System
return System

Load() public method

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

Rank1() public method

public Rank1 ( long pos ) : long
pos long
return long

Save() public method

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

Select1() public method

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

Property Details

B protected_oe property

protected short B
return short

Coder protected_oe property

protected IIEncoder64 Coder
return IIEncoder64

M protected_oe property

protected int M
return int

N protected_oe property

protected long N
return long

Stream protected_oe property

protected BitStream32,natix.CompactDS Stream
return BitStream32