C# 클래스 natix.CompactDS.DiffSet

상속: Bitmap
파일 보기 프로젝트 열기: sadit/natix 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Stream BitStream32

보호된 프로퍼티들

프로퍼티 타입 설명
B short

공개 메소드들

메소드 설명
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)

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Access() 공개 메소드

public Access ( int pos ) : bool
pos int
리턴 bool

Add() 공개 메소드

public Add ( int current ) : void
current int
리턴 void

Add() 공개 메소드

Adds an (ordered) item to the set
public Add ( int current, int prev ) : void
current int
prev int
리턴 void

AddItem() 보호된 메소드

Internal method to add an (ordered) item to the set
protected AddItem ( int current, int prev ) : void
current int
prev int
리턴 void

AssertEquality() 공개 메소드

public AssertEquality ( Bitmap _other ) : void
_other Bitmap
리턴 void

Build() 공개 메소드

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

Build() 공개 메소드

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

Commit() 공개 메소드

Write the sequence to the bitmap. DiffSet always commit items.
public Commit ( ) : void
리턴 void

DiffSet() 공개 메소드

public DiffSet ( ) : System
리턴 System

DiffSet() 공개 메소드

public DiffSet ( short B ) : System
B short
리턴 System

ExtractFrom() 공개 메소드

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
리턴 int

Load() 공개 메소드

public Load ( BinaryReader R ) : void
R System.IO.BinaryReader
리턴 void

Rank1() 공개 메소드

public Rank1 ( int pos ) : int
pos int
리턴 int

ReadNext() 보호된 메소드

protected ReadNext ( BitStreamCtx ctx ) : int
ctx BitStreamCtx
리턴 int

ResetReader() 보호된 메소드

protected ResetReader ( ) : void
리턴 void

Save() 공개 메소드

public Save ( BinaryWriter W ) : void
W System.IO.BinaryWriter
리턴 void

Select1() 공개 메소드

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

Select1Difference() 공개 메소드

Returns the difference between Select1(rank) - Select1(rank-1)
public Select1Difference ( int rank ) : int
rank int
리턴 int

WriteNewDiff() 보호된 메소드

protected WriteNewDiff ( int u ) : void
u int
리턴 void

프로퍼티 상세

B 보호되어 있는 프로퍼티

protected short B
리턴 short

Stream 공개적으로 프로퍼티

public BitStream32,natix.CompactDS Stream
리턴 BitStream32