aa
com.cliffc.aa.util.IBitSet.Iter Class Reference
Inheritance diagram for com.cliffc.aa.util.IBitSet.Iter:
[legend]
Collaboration diagram for com.cliffc.aa.util.IBitSet.Iter:
[legend]

Public Member Functions

boolean hasNext ()
 
Integer next ()
 

Package Attributes

int _i =-1
 

Detailed Description

Definition at line 135 of file IBitSet.java.

Member Function Documentation

◆ hasNext()

boolean com.cliffc.aa.util.IBitSet.Iter.hasNext ( )

Definition at line 137 of file IBitSet.java.

137  {
138  int idx;
139  while( (idx=idx(++_i)) < _bits._len )
140  if( (_bits._es[idx]&mask(_i)) != 0 )
141  return true;
142  return false;
143  }

References com.cliffc.aa.util.IBitSet._bits, com.cliffc.aa.util.AryInt._es, com.cliffc.aa.util.IBitSet.Iter._i, com.cliffc.aa.util.AryInt._len, com.cliffc.aa.util.IBitSet.idx(), and com.cliffc.aa.util.IBitSet.mask().

Here is the call graph for this function:

◆ next()

Integer com.cliffc.aa.util.IBitSet.Iter.next ( )

Definition at line 144 of file IBitSet.java.

144  {
145  if( idx(_i) < _bits._len ) return _i;
146  throw new java.util.NoSuchElementException();
147  }

References com.cliffc.aa.util.IBitSet._bits, com.cliffc.aa.util.IBitSet.Iter._i, com.cliffc.aa.util.AryInt._len, and com.cliffc.aa.util.IBitSet.idx().

Here is the call graph for this function:

Member Data Documentation

◆ _i

int com.cliffc.aa.util.IBitSet.Iter._i =-1
package

The documentation for this class was generated from the following file:
com.cliffc.aa.util.IBitSet.Iter._i
int _i
Definition: IBitSet.java:136
com.cliffc.aa.util.IBitSet.mask
static int mask(int i)
Definition: IBitSet.java:19
com.cliffc.aa.util.IBitSet.idx
static int idx(int i)
Definition: IBitSet.java:18
com.cliffc.aa.util.AryInt._es
int[] _es
Definition: AryInt.java:9
com.cliffc.aa.util.IBitSet._bits
final AryInt _bits
Definition: IBitSet.java:12
com.cliffc.aa.util.AryInt._len
int _len
Definition: AryInt.java:10