|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.DefaultBrepIterator
cz.cuni.jagrlib.DefaultBrepIteratorArr
public abstract class DefaultBrepIteratorArr
Default implementation of BrepIterator
interface - using precomputed array.
Field Summary | |
---|---|
protected int[] |
arr
Precomputed array - DefaultBrepIterator.reset() has to initialize it! |
protected int |
n
Next object's id. |
Fields inherited from interface cz.cuni.jagrlib.iface.BrepIterator |
---|
CONTEXT, PROJ_COORDS, SORT_ASCENDING, SORT_DESCENDING, SORT_ORDER |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
DefaultBrepIteratorArr()
|
Method Summary | |
---|---|
int |
left()
How many items remain in the set?. |
int |
next()
Returns id of the next object. |
int[] |
toArray(int[] pre)
Fills the provided array by all items (pre-allocated array could be null
or too small - in these cases new one will be created). |
Methods inherited from class cz.cuni.jagrlib.DefaultBrepIterator |
---|
reset |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Field Detail |
---|
protected int n
protected int[] arr
DefaultBrepIterator.reset()
has to initialize it!
Constructor Detail |
---|
public DefaultBrepIteratorArr()
Method Detail |
---|
public int[] toArray(int[] pre)
null
or too small - in these cases new one will be created).
End of the data is marked using Brep.NULL
.
toArray
in interface BrepIterator
toArray
in class DefaultBrepIterator
public int next()
next
in interface BrepIterator
next
in class DefaultBrepIterator
Brep.NULL
if there is no next object available.public int left()
Brep.NULL
if not implemented.
left
in interface BrepIterator
left
in class DefaultBrepIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |