C# 클래스 Antlr.Runtime.BitSet

A stripped-down version of org.antlr.misc.BitSet that is just good enough to handle runtime requirements such as FOLLOW sets for automatic error recovery.
상속: ICloneable
파일 보기 프로젝트 열기: antlr/antlrcs 1 사용 예제들

공개 메소드들

메소드 설명
Add ( int el ) : void

or this element into this set (grow as necessary to accommodate)

BitSet ( ) : System.Collections.Generic

Construct a bitset of size one word (64 bits)

BitSet ( IEnumerable items ) : System.Collections.Generic

Construction from a list of integers

BitSet ( int nbits ) : System.Collections.Generic

Construct a bitset given the size

Clone ( ) : object
Equals ( object other ) : bool
GetHashCode ( ) : int
GrowToInclude ( int bit ) : void

Grows the set to a larger number of bits.

IsNil ( ) : bool
LengthInLongWords ( ) : int

return how much space is being used by the bits array not how many actually have member bits on.

Member ( int el ) : bool
NumBits ( ) : int
Of ( int el ) : BitSet
Of ( int a, int b ) : BitSet
Of ( int a, int b, int c ) : BitSet
Of ( int a, int b, int c, int d ) : BitSet
Or ( BitSet a ) : BitSet

return this | a in a new set

OrInPlace ( BitSet a ) : void
Remove ( int el ) : void
Size ( ) : int
ToArray ( ) : int[]
ToString ( ) : string
ToString ( string tokenNames ) : string

비공개 메소드들

메소드 설명
BitMask ( int bitNumber ) : ulong
BitSet ( ulong bits ) : System.Collections.Generic
NumWordsToHold ( int el ) : int
SetSize ( int nwords ) : void

Sets the size of a set.

WordNumber ( int bit ) : int

메소드 상세

Add() 공개 메소드

or this element into this set (grow as necessary to accommodate)
public Add ( int el ) : void
el int
리턴 void

BitSet() 공개 메소드

Construct a bitset of size one word (64 bits)
public BitSet ( ) : System.Collections.Generic
리턴 System.Collections.Generic

BitSet() 공개 메소드

Construction from a list of integers
public BitSet ( IEnumerable items ) : System.Collections.Generic
items IEnumerable
리턴 System.Collections.Generic

BitSet() 공개 메소드

Construct a bitset given the size
public BitSet ( int nbits ) : System.Collections.Generic
nbits int The size of the bitset in bits
리턴 System.Collections.Generic

Clone() 공개 메소드

public Clone ( ) : object
리턴 object

Equals() 공개 메소드

public Equals ( object other ) : bool
other object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GrowToInclude() 공개 메소드

Grows the set to a larger number of bits.
public GrowToInclude ( int bit ) : void
bit int element that must fit in set
리턴 void

IsNil() 공개 메소드

public IsNil ( ) : bool
리턴 bool

LengthInLongWords() 공개 메소드

return how much space is being used by the bits array not how many actually have member bits on.
public LengthInLongWords ( ) : int
리턴 int

Member() 공개 메소드

public Member ( int el ) : bool
el int
리턴 bool

NumBits() 공개 메소드

public NumBits ( ) : int
리턴 int

Of() 공개 정적인 메소드

public static Of ( int el ) : BitSet
el int
리턴 BitSet

Of() 공개 정적인 메소드

public static Of ( int a, int b ) : BitSet
a int
b int
리턴 BitSet

Of() 공개 정적인 메소드

public static Of ( int a, int b, int c ) : BitSet
a int
b int
c int
리턴 BitSet

Of() 공개 정적인 메소드

public static Of ( int a, int b, int c, int d ) : BitSet
a int
b int
c int
d int
리턴 BitSet

Or() 공개 메소드

return this | a in a new set
public Or ( BitSet a ) : BitSet
a BitSet
리턴 BitSet

OrInPlace() 공개 메소드

public OrInPlace ( BitSet a ) : void
a BitSet
리턴 void

Remove() 공개 메소드

public Remove ( int el ) : void
el int
리턴 void

Size() 공개 메소드

public Size ( ) : int
리턴 int

ToArray() 공개 메소드

public ToArray ( ) : int[]
리턴 int[]

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( string tokenNames ) : string
tokenNames string
리턴 string