Modifier and Type | Class and Description |
---|---|
protected class |
MaskedDBIDs.DBIDItr
Iterator over set bits.
|
protected class |
MaskedDBIDs.InvDBIDItr
Iterator over set bits.
|
Modifier and Type | Field and Description |
---|---|
protected BitSet |
bits
The bitmask used for masking.
|
protected ArrayDBIDs |
data
Data storage.
|
protected boolean |
inverse
Flag whether to iterator over set or unset values.
|
Constructor and Description |
---|
MaskedDBIDs(ArrayDBIDs data,
BitSet bits,
boolean inverse)
Constructor.
|
protected ArrayDBIDs data
protected BitSet bits
protected boolean inverse
public MaskedDBIDs(ArrayDBIDs data, BitSet bits, boolean inverse)
data
- Databits
- Bitset to use as maskinverse
- Flag to inverse the masking rulepublic DBIDIter iter()
DBIDs
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
public int size()
DBIDs
public boolean contains(DBIDRef o)
DBIDs