Public Member Functions | |
Bag () | |
Bag (int initialCapacity) | |
void | add (Object o) |
int | size () |
void | insert (Object o, int i) |
void | ensureCapacity (int minCapacity) |
int | getCapacity () |
int | remove (Object o) |
Object | remove (int i) |
Object | get (int i) |
boolean | contains (Object o) |
Protected Attributes | |
Object[] | data = null |
int | size = 0 |
Private Member Functions | |
int | indexOf (Object o, int i, boolean forward) |
Definition at line 3 of file Bag.java.
com.graphbuilder.struc.Bag.Bag | ( | ) |
Definition at line 8 of file Bag.java.
References com.graphbuilder.struc.Bag.data.
com.graphbuilder.struc.Bag.Bag | ( | int | initialCapacity | ) |
Definition at line 12 of file Bag.java.
References com.graphbuilder.struc.Bag.data.
void com.graphbuilder.struc.Bag.add | ( | Object | o | ) |
Definition at line 16 of file Bag.java.
References com.graphbuilder.struc.Bag.insert(), and com.graphbuilder.struc.Bag.size().
Referenced by com.graphbuilder.math.Expression.getTermNames().
boolean com.graphbuilder.struc.Bag.contains | ( | Object | o | ) |
Definition at line 117 of file Bag.java.
References com.graphbuilder.struc.Bag.indexOf().
Referenced by com.graphbuilder.math.Expression.getTermNames().
void com.graphbuilder.struc.Bag.ensureCapacity | ( | int | minCapacity | ) |
Definition at line 37 of file Bag.java.
References com.graphbuilder.struc.Bag.data, and com.graphbuilder.struc.Bag.size().
Referenced by com.graphbuilder.struc.Bag.insert().
Object com.graphbuilder.struc.Bag.get | ( | int | i | ) |
Definition at line 110 of file Bag.java.
References com.graphbuilder.struc.Bag.data, and com.graphbuilder.struc.Bag.size().
Referenced by com.graphbuilder.math.FuncNode.child(), and com.graphbuilder.math.Expression.getTermNames().
int com.graphbuilder.struc.Bag.getCapacity | ( | ) |
Definition at line 53 of file Bag.java.
References com.graphbuilder.struc.Bag.data.
Referenced by com.graphbuilder.math.FuncNode.insert().
int com.graphbuilder.struc.Bag.indexOf | ( | Object | o, | |
int | i, | |||
boolean | forward | |||
) | [private] |
Definition at line 57 of file Bag.java.
References com.graphbuilder.struc.Bag.data, and com.graphbuilder.struc.Bag.size().
Referenced by com.graphbuilder.struc.Bag.contains(), and com.graphbuilder.struc.Bag.remove().
void com.graphbuilder.struc.Bag.insert | ( | Object | o, | |
int | i | |||
) |
Definition at line 24 of file Bag.java.
References com.graphbuilder.struc.Bag.data, com.graphbuilder.struc.Bag.ensureCapacity(), and com.graphbuilder.struc.Bag.size().
Referenced by com.graphbuilder.struc.Bag.add(), and com.graphbuilder.math.FuncNode.insert().
Object com.graphbuilder.struc.Bag.remove | ( | int | i | ) |
Definition at line 97 of file Bag.java.
References com.graphbuilder.struc.Bag.data, and com.graphbuilder.struc.Bag.size().
int com.graphbuilder.struc.Bag.remove | ( | Object | o | ) |
Definition at line 90 of file Bag.java.
References com.graphbuilder.struc.Bag.indexOf().
Referenced by com.graphbuilder.math.FuncNode.remove().
int com.graphbuilder.struc.Bag.size | ( | ) |
Definition at line 20 of file Bag.java.
Referenced by com.graphbuilder.struc.Bag.add(), com.graphbuilder.struc.Bag.ensureCapacity(), com.graphbuilder.struc.Bag.get(), com.graphbuilder.struc.Bag.indexOf(), com.graphbuilder.struc.Bag.insert(), and com.graphbuilder.struc.Bag.remove().
Object [] com.graphbuilder.struc.Bag.data = null [protected] |
Definition at line 5 of file Bag.java.
Referenced by com.graphbuilder.struc.Bag.Bag(), com.graphbuilder.struc.Bag.ensureCapacity(), com.graphbuilder.struc.Bag.get(), com.graphbuilder.struc.Bag.getCapacity(), com.graphbuilder.struc.Bag.indexOf(), com.graphbuilder.struc.Bag.insert(), and com.graphbuilder.struc.Bag.remove().
int com.graphbuilder.struc.Bag.size = 0 [protected] |
Definition at line 6 of file Bag.java.
Referenced by com.graphbuilder.math.FuncNode.add(), com.graphbuilder.math.FuncNode.eval(), com.graphbuilder.math.Expression.getTermNames(), com.graphbuilder.math.FuncNode.numChildren(), and com.graphbuilder.math.FuncNode.remove().