#include <container.hh>
Public Member Functions | |
| Vector (int initSize, bool ownerOfObjects) | |
| ~Vector () | |
| void | put (object::Object *newElement, int newPos=-1) |
| void | insert (object::Object *newElement, int pos) |
| void | remove (int pos) |
| object::Object * | get (int pos) |
| int | size () |
| void | clear () |
| void | sort () |
Protected Member Functions | |
| AbstractIterator * | createIterator () |
Private Attributes | |
| object::Object ** | array |
| int | numAlloc |
| int | numElements |
| bool | ownerOfObjects |
| lout::container::untyped::Vector::Vector | ( | int | initSize, | |
| bool | ownerOfObjects | |||
| ) |
References array, numAlloc, and numElements.
| void lout::container::untyped::Vector::clear | ( | ) |
| Collection0::AbstractIterator * lout::container::untyped::Vector::createIterator | ( | ) | [protected, virtual] |
| object::Object* lout::container::untyped::Vector::get | ( | int | pos | ) | [inline] |
References array, and numElements.
| void lout::container::untyped::Vector::insert | ( | object::Object * | newElement, | |
| int | pos | |||
| ) |
References array, numAlloc, numElements, and put().
| void lout::container::untyped::Vector::put | ( | object::Object * | newElement, | |
| int | newPos = -1 | |||
| ) |
| void lout::container::untyped::Vector::remove | ( | int | pos | ) |
References array, numElements, and ownerOfObjects.
| int lout::container::untyped::Vector::size | ( | ) | [inline] |
References numElements.
| void lout::container::untyped::Vector::sort | ( | ) |
Sort the elements in the vector. Assumes that all elements are Comparable's.
References array, lout::misc::Comparable::compareFun(), and numElements.
int lout::container::untyped::Vector::numAlloc [private] |
int lout::container::untyped::Vector::numElements [private] |
bool lout::container::untyped::Vector::ownerOfObjects [private] |
1.5.9