2005/5/9

     
 

class Vector

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::util::Vector Class Reference

#include <Vector.h>

Inheritance diagram for acdk::util::Vector:

acdk::util::AbstractList acdk::lang::Cloneable acdk::io::Serializable acdk::util::AbstractCollection acdk::util::List acdk::lang::Object acdk::util::Collection acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

API: Java<br/>.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.15
Date:
Date
2005/04/09 19:26:58


Public Member Functions

 Vector (int initcapac=10, int capacInc=0)
 Vector (IN(RCollection) col)
virtual ~Vector ()
virtual void ensureCapacity (int minCapacity)
virtual void setSize (int newSize)
virtual int capacity ()
virtual int size ()
virtual bool isEmpty ()
 reimplemented from Collection

virtual int indexOf (IN(acdk::lang::Object) object, int index)
virtual int indexOf (IN(acdk::lang::Object) o)
virtual bool contains (IN(acdk::lang::Object) object)
 reimplemented from Collection

virtual int lastIndexOf (IN(acdk::lang::Object) o)
virtual int lastIndexOf (IN(acdk::lang::Object) object, int index)
virtual acdk::lang::Object elementAt (int index)
virtual acdk::lang::Object firstElement ()
virtual acdk::lang::Object lastElement ()
virtual void setElementAt (IN(acdk::lang::Object) obj, int index) throw ( RArrayIndexOutOfBoundsException )
virtual acdk::lang::Object set (int index, IN(acdk::lang::Object) obj) throw ( RArrayIndexOutOfBoundsException )
virtual void removeElementAt (int index) throw ( RArrayIndexOutOfBoundsException )
virtual void insertElementAt (IN(acdk::lang::Object) obj, int index) throw ( RArrayIndexOutOfBoundsException )
virtual void addElement (IN(acdk::lang::Object) obj)
virtual bool removeElement (IN(acdk::lang::Object) obj)
virtual void removeAllElements ()
virtual acdk::lang::Object clone ()
virtual acdk::lang::Object clone (acdk::lang::sys::Allocator *alloc)
virtual RObjectArray toArray ()
 reimplemented from Collection

virtual RObjectArray toArray (IN(RObjectArray) a)
 reimplemented from Collection

virtual acdk::lang::Object get (int index)
virtual bool remove (IN(acdk::lang::Object) o)
 reimplemented from Collection

virtual bool add (IN(acdk::lang::Object) o)
 reimplemented from Collection

virtual void add (int index, IN(acdk::lang::Object) element)
virtual acdk::lang::Object remove (int index)
virtual void clear ()
 reimplemented from Collection

virtual bool containsAll (IN(RCollection) coll)
 reimplemented from Collection

virtual bool addAll (IN(RCollection) coll)
 reimplemented from Collection

virtual bool addAll (int index, IN(RCollection) coll)
virtual bool removeAll (IN(RCollection) coll)
 reimplemented from Collection

virtual bool retainAll (IN(RCollection) c)
 reimplemented from Collection

virtual RString toString ()
 return a string representation of this object Object::toString() return getName() by default

void trimToSize ()
void copyInto (IN(RObjectArray) array)

Static Public Member Functions

acdk::lang::Object create_instance ()

Protected Attributes

int _elementCount
int _capacityIncrement
int _modCount
RObjectArray _elementData


Constructor & Destructor Documentation

acdk::util::Vector::Vector (  int  initcapac = 10,
int  capacInc = 0
) 
 

acdk::util::Vector::Vector (  IN(RCollection)  col  ) 
 

virtual acdk::util::Vector::~Vector (   )  [virtual]
 


Member Function Documentation

virtual void acdk::util::Vector::add (  int  index,
IN(acdk::lang::Object)  element
)  [inline, virtual]
 

Reimplemented from acdk::util::AbstractList.

virtual bool acdk::util::Vector::add (  IN(acdk::lang::Object)  o  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual bool acdk::util::Vector::addAll (  int  index,
IN(RCollection)  coll
)  [virtual]
 

Reimplemented from acdk::util::AbstractList.

virtual bool acdk::util::Vector::addAll (  IN(RCollection)  coll  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual void acdk::util::Vector::addElement (  IN(acdk::lang::Object)  obj  )  [virtual]
 

virtual int acdk::util::Vector::capacity (   )  [inline, virtual]
 

virtual void acdk::util::Vector::clear (   )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual acdk::lang::Object acdk::util::Vector::clone (  acdk::lang::sys::Allocator *  alloc  )  [virtual]
 

Reimplemented from acdk::lang::Cloneable.

virtual acdk::lang::Object acdk::util::Vector::clone (   )  [inline, virtual]
 

Implements acdk::lang::Cloneable.

virtual bool acdk::util::Vector::contains (  IN(acdk::lang::Object)  object  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual bool acdk::util::Vector::containsAll (  IN(RCollection)  coll  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

void acdk::util::Vector::copyInto (  IN(RObjectArray)  array  ) 
 

acdk::lang::Object acdk::util::Vector::create_instance (   )  [inline, static]
 

Reimplemented from acdk::lang::Object.

virtual acdk::lang::Object acdk::util::Vector::elementAt (  int  index  )  [inline, virtual]
 

virtual void acdk::util::Vector::ensureCapacity (  int  minCapacity  )  [virtual]
 

virtual acdk::lang::Object acdk::util::Vector::firstElement (   )  [inline, virtual]
 

virtual acdk::lang::Object acdk::util::Vector::get (  int  index  )  [inline, virtual]
 

Implements acdk::util::AbstractList.

virtual int acdk::util::Vector::indexOf (  IN(acdk::lang::Object)  o  )  [inline, virtual]
 

Reimplemented from acdk::util::AbstractList.

virtual int acdk::util::Vector::indexOf (  IN(acdk::lang::Object)  object,
int  index
)  [virtual]
 

virtual void acdk::util::Vector::insertElementAt (  IN(acdk::lang::Object)  obj,
int  index
)  throw ( RArrayIndexOutOfBoundsException ) [virtual]
 

virtual bool acdk::util::Vector::isEmpty (   )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual acdk::lang::Object acdk::util::Vector::lastElement (   )  [inline, virtual]
 

virtual int acdk::util::Vector::lastIndexOf (  IN(acdk::lang::Object)  object,
int  index
)  [virtual]
 

virtual int acdk::util::Vector::lastIndexOf (  IN(acdk::lang::Object)  o  )  [inline, virtual]
 

Reimplemented from acdk::util::AbstractList.

virtual acdk::lang::Object acdk::util::Vector::remove (  int  index  )  [virtual]
 

Reimplemented from acdk::util::AbstractList.

virtual bool acdk::util::Vector::remove (  IN(acdk::lang::Object)  o  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual bool acdk::util::Vector::removeAll (  IN(RCollection)  coll  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual void acdk::util::Vector::removeAllElements (   )  [virtual]
 

virtual bool acdk::util::Vector::removeElement (  IN(acdk::lang::Object)  obj  )  [virtual]
 

virtual void acdk::util::Vector::removeElementAt (  int  index  )  throw ( RArrayIndexOutOfBoundsException ) [virtual]
 

virtual bool acdk::util::Vector::retainAll (  IN(RCollection)  c  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual acdk::lang::Object acdk::util::Vector::set (  int  index,
IN(acdk::lang::Object)  obj
)  throw ( RArrayIndexOutOfBoundsException ) [virtual]
 

Reimplemented from acdk::util::AbstractList.

virtual void acdk::util::Vector::setElementAt (  IN(acdk::lang::Object)  obj,
int  index
)  throw ( RArrayIndexOutOfBoundsException ) [virtual]
 

virtual void acdk::util::Vector::setSize (  int  newSize  )  [virtual]
 

virtual int acdk::util::Vector::size (   )  [inline, virtual]
 

Reimplemented from acdk::util::AbstractList.

virtual RObjectArray acdk::util::Vector::toArray (  IN(RObjectArray)  a  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual RObjectArray acdk::util::Vector::toArray (   )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual RString acdk::util::Vector::toString (   )  [virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::util::AbstractList.

void acdk::util::Vector::trimToSize (   ) 
 


Member Data Documentation

int acdk::util::Vector::_capacityIncrement [protected]
 

int acdk::util::Vector::_elementCount [protected]
 

RObjectArray acdk::util::Vector::_elementData [protected]
 

int acdk::util::Vector::_modCount [protected]
 

Reimplemented from acdk::util::AbstractList.