com.graphbuilder.struc.Bag Class Reference

List of all members.

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)

Detailed Description

Definition at line 3 of file Bag.java.


Constructor & Destructor Documentation

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.


Member Function Documentation

void com.graphbuilder.struc.Bag.add ( Object  o  ) 
boolean com.graphbuilder.struc.Bag.contains ( Object  o  ) 
void com.graphbuilder.struc.Bag.ensureCapacity ( int  minCapacity  ) 
Object com.graphbuilder.struc.Bag.get ( int  i  ) 
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]
void com.graphbuilder.struc.Bag.insert ( Object  o,
int  i 
)
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().


Member Data Documentation

Object [] com.graphbuilder.struc.Bag.data = null [protected]
int com.graphbuilder.struc.Bag.size = 0 [protected]

The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1