C# Class natix.CompactDS.DiffSet

Inheritance: Bitmap
Afficher le fichier Open project: sadit/natix Class Usage Examples

Méthodes publiques

Свойство Type Description
Stream BitStream32

Protected Properties

Свойство Type Description
B short

Méthodes publiques

Méthode Description
Access ( int pos ) : bool
Add ( int current ) : void
Add ( int current, int prev ) : void

Adds an (ordered) item to the set

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 ( ) : void

Write the sequence to the bitmap. DiffSet always commit items.

DiffSet ( ) : System
DiffSet ( short B ) : System
ExtractFrom ( int start_index, int count, List output ) : int

Extract 'count' differences starting from 'start_index', it saves the output in 'output'. Returns the previous absolute value to start_index (start_index - 1), i.e. the reference

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

Select1Difference ( int rank ) : int

Returns the difference between Select1(rank) - Select1(rank-1)

Méthodes protégées

Méthode Description
AddItem ( int current, int prev ) : void

Internal method to add an (ordered) item to the set

ReadNext ( BitStreamCtx ctx ) : int
ResetReader ( ) : void
WriteNewDiff ( int u ) : void

Private Methods

Méthode Description
BackendAccessRank1 ( int pos, int &found_pos, BitStreamCtx ctx ) : int
BackendSelect1 ( int rank, BitStreamCtx ctx ) : int

Unlocked Select1 useful

SeqAccessRank1 ( int acc, long pos, int max, int &found_pos, BitStreamCtx ctx ) : int

Method Details

Access() public méthode

public Access ( int pos ) : bool
pos int
Résultat bool

Add() public méthode

public Add ( int current ) : void
current int
Résultat void

Add() public méthode

Adds an (ordered) item to the set
public Add ( int current, int prev ) : void
current int
prev int
Résultat void

AddItem() protected méthode

Internal method to add an (ordered) item to the set
protected AddItem ( int current, int prev ) : void
current int
prev int
Résultat void

AssertEquality() public méthode

public AssertEquality ( Bitmap _other ) : void
_other Bitmap
Résultat void

Build() public méthode

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

Build() public méthode

public Build ( IList orderedList, short b, IIEncoder32 coder = null ) : void
orderedList IList
b short
coder IIEncoder32
Résultat void

Commit() public méthode

Write the sequence to the bitmap. DiffSet always commit items.
public Commit ( ) : void
Résultat void

DiffSet() public méthode

public DiffSet ( ) : System
Résultat System

DiffSet() public méthode

public DiffSet ( short B ) : System
B short
Résultat System

ExtractFrom() public méthode

Extract 'count' differences starting from 'start_index', it saves the output in 'output'. Returns the previous absolute value to start_index (start_index - 1), i.e. the reference
public ExtractFrom ( int start_index, int count, List output ) : int
start_index int
count int
output List
Résultat int

Load() public méthode

public Load ( BinaryReader R ) : void
R System.IO.BinaryReader
Résultat void

Rank1() public méthode

public Rank1 ( int pos ) : int
pos int
Résultat int

ReadNext() protected méthode

protected ReadNext ( BitStreamCtx ctx ) : int
ctx BitStreamCtx
Résultat int

ResetReader() protected méthode

protected ResetReader ( ) : void
Résultat void

Save() public méthode

public Save ( BinaryWriter W ) : void
W System.IO.BinaryWriter
Résultat void

Select1() public méthode

Returns the position of the rank-th enabled bit
public Select1 ( int rank ) : int
rank int
Résultat int

Select1Difference() public méthode

Returns the difference between Select1(rank) - Select1(rank-1)
public Select1Difference ( int rank ) : int
rank int
Résultat int

WriteNewDiff() protected méthode

protected WriteNewDiff ( int u ) : void
u int
Résultat void

Property Details

B protected_oe property

protected short B
Résultat short

Stream public_oe property

public BitStream32,natix.CompactDS Stream
Résultat BitStream32