Свойство | Тип | Описание | |
---|---|---|---|
Cardinality | int | ||
Content | ushort[] |
Метод | Описание | |
---|---|---|
Add ( ushort x ) : Container |
Computes the bitwise AND of this container with another (intersection). This container as well as the provided container are left unaffected.
|
|
Add ( ushort rangeStart, ushort rangeEnd ) : Container |
Add to the current bitmap all integers in [rangeStart,rangeEnd).
|
|
And ( |
Computes the bitwise AND of this container with another (intersection). This container as well as the provided container are left unaffected.
|
|
And ( |
Computes the bitwise AND of this container with another (intersection). This container as well as the provided container are left unaffected.
|
|
AndNot ( |
Returns the elements of this ArrayContainer that are not in the other ArrayContainer.
|
|
AndNot ( |
Returns the elements of this ArrayContainer that are not in the other BitSetContainer.
|
|
ArrayContainer ( ) : System | ||
ArrayContainer ( int capacity ) : System | ||
ArrayContainer ( ushort newContent ) : System | ||
Clone ( ) : Container |
Creates a deep copy of this array container.
|
|
Contains ( ushort x ) : bool |
Checks whether the container contains the provided value.
|
|
Deserialize ( |
Deserialize a container from binary format, as written by the Serialize method, minus the first 32 bits giving the cardinality.
|
|
Equals ( Object o ) : bool | ||
FillLeastSignificant16bits ( int x, int i, int mask ) : void |
Fill the least significant 16 bits of the integer array, starting at index i, with the short values from this container. The caller is responsible to allocate enough room. The most significant 16 bits of each integer are given by the most significant bits of the provided mask.
|
|
Flip ( ushort x ) : Container |
If elements is present in container, add it. Otherwise, remove it.
|
|
GetCardinality ( ) : int |
Computes the distinct number of short values in the container. Can be expected to run in constant time.
|
|
GetEnumerator ( ) : IEnumerator |
||
GetHashCode ( ) : int | ||
IAdd ( ushort begin, ushort end ) : Container |
Adds range of elements (in-place) to this container.
|
|
IAnd ( |
Computes the in-place bitwise AND of this container with another (intersection). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.
|
|
IAnd ( |
Computes the in-place bitwise AND of this container with another (intersection). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.
|
|
IAndNot ( |
Returns the elements of this ArrayContainer that are not in the other ArrayContainer.
|
|
IAndNot ( |
Returns the elements of this ArrayContainer that are not in the other BitSetContainer. Modifies the current container in place.
|
|
INot ( int firstOfRange, int lastOfRange ) : Container |
Computes the in-place bitwise NOT of this container (complement). Only those bits within the range are affected.The current container is generally modified.May generate a new container.
|
|
IOr ( |
Computes the in-place bitwise OR of this container with another (union). The current container is generally modified, whereas the provided container(x) is unaffected.May generate a new container.
|
|
IOr ( |
Computes the in-place bitwise OR of this container with another (union). The current container is generally modified, whereas the provided container(x) is unaffected.May generate a new container.
|
|
IncreaseCapacity ( ) : void | ||
Intersects ( |
Returns true if the current container intersects the other container.
|
|
Intersects ( |
Returns true if the current container intersects the other container.
|
|
LoadData ( |
||
Or ( |
Computes the bitwise OR of this container with another (union). This container as well as the provided container are left unaffected.
|
|
Or ( |
Computes the bitwise OR of this container with another (union). This container as well as the provided container are left unaffected.
|
|
Remove ( ushort x ) : Container |
Remove specified short from this container. May create a new container.
|
|
Remove ( ushort begin, ushort end ) : Container |
Remove shorts in [begin,end) using an unsigned interpretation. May generate a new container.
|
|
Select ( int j ) : ushort |
Return the jth value of the container.
|
|
Serialize ( |
Serialize this container in a binary format. The serialization format is first the cardinality of the container as a 32-bit integer, followed by an array of the indices in this container as 16-bit integers. |
|
ToBitsetContainer ( ) : |
Метод | Описание | |
---|---|---|
ArrayContainer ( int cardinality, ushort inpContent ) : System | ||
IncreaseCapacity ( int min ) : void | ||
NegateRange ( ushort buffer, int startIndex, int lastIndex, int startRange, int lastRange ) : void |
public Add ( ushort x ) : Container | ||
x | ushort | Other container |
Результат | Container |
public Add ( ushort rangeStart, ushort rangeEnd ) : Container | ||
rangeStart | ushort | inclusive beginning of range |
rangeEnd | ushort | exclusive ending of range |
Результат | Container |
public And ( |
||
value2 | ||
Результат | Container |
public And ( |
||
x | Other container | |
Результат | Container |
public AndNot ( |
||
x | the other ArrayContainer | |
Результат | Container |
public AndNot ( |
||
x | the BitSetContainer to compare against | |
Результат | Container |
public ArrayContainer ( int capacity ) : System | ||
capacity | int | |
Результат | System |
public ArrayContainer ( ushort newContent ) : System | ||
newContent | ushort | |
Результат | System |
public Contains ( ushort x ) : bool | ||
x | ushort | Value to check |
Результат | bool |
public static Deserialize ( |
||
reader | The reader to deserialize from. | |
cardinality | int | |
Результат |
public FillLeastSignificant16bits ( int x, int i, int mask ) : void | ||
x | int | Provided array |
i | int | Starting index |
mask | int | Indicates most significant bits |
Результат | void |
public Flip ( ushort x ) : Container | ||
x | ushort | Element to add |
Результат | Container |
public IAdd ( ushort begin, ushort end ) : Container | ||
begin | ushort | Start of range (inclusive) |
end | ushort | End of range (exclusive) |
Результат | Container |
public IAnd ( |
||
other | ||
Результат | Container |
public IAnd ( |
||
other | ||
Результат | Container |
public IAndNot ( |
||
x | the other ArrayContainer | |
Результат | Container |
public IAndNot ( |
||
x | the BitSetContainer to compare against | |
Результат | Container |
public INot ( int firstOfRange, int lastOfRange ) : Container | ||
firstOfRange | int | beginning of range (inclusive); 0 is beginning of this container. |
lastOfRange | int | ending of range (exclusive) |
Результат | Container |
public IOr ( |
||
x | Other container | |
Результат | Container |
public IOr ( |
||
x | Other container | |
Результат | Container |
public Intersects ( |
||
x | Other container | |
Результат | bool |
public Intersects ( |
||
x | Other container | |
Результат | bool |
public LoadData ( |
||
bitsetContainer | ||
Результат | void |
public Or ( |
||
x | Other container | |
Результат | Container |
public Or ( |
||
x | Other container | |
Результат | Container |
public Remove ( ushort x ) : Container | ||
x | ushort | Short to be removed |
Результат | Container |
public Remove ( ushort begin, ushort end ) : Container | ||
begin | ushort | Start of range (inclusive) |
end | ushort | End of range (exclusive) |
Результат | Container |
public Serialize ( |
||
writer | The writer to which to serialize this container. | |
Результат | void |
public ToBitsetContainer ( ) : |
||
Результат |