2005/5/9

     
 

class ObjectArrayImpl

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

ObjectArrayImpl< T > Class Template Reference
[SmartPointers and Garbage Collection]

#include <ObjectArrayBase.h>

Inheritance diagram for ObjectArrayImpl< T >:

acdk::lang::ObjectArrayBase acdk::lang::ObjectArrayBaseImpl acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

template<class T>
class ObjectArrayImpl< T >

template implementation of acdk::lang::Object Arrays This will be used via the ACDK_DECL_CLASS() macro.

Different to Java acdk::lang::Object arrays in ACDK are resizable


Public Types

typedef T * array_iterator

Public Member Functions

 ObjectArrayImpl (int size=0)
 ObjectArrayImpl (const acdk::lang::dmi::ClazzInfo *elemtype, int size)
const T & get (int idx) const
 return element at index idx

T & getref (int idx) const
void set (int idx, const T &value)
T & operator[] (int idx) const
void append (const T &value)
void insert (int idx, const T &value)
int find (IN(T) el)
 Find equals element (using el->equals()) If el == Nil find first element which also Nil.

int findFirst (IN(T) el)
 alias for findFirst(IN(T) el)

int findLast (IN(T) el)
 find the element (using equals()) from behind

int findSame (IN(T) el)
 find same object

removeEqualElement (IN(T) el)
removeSameElement (IN(T) el)
 remove element which is same instance

void concat (IN(RObjectArrayImpl< T >) other)
 append given other Array to this array

array_iterator begin ()
 STL style function.

array_iterator end ()
 STL style function.

virtual void readObject (IN(::acdk::io::RObjectReader) in)
pop_back ()
 STL style function.

popBack ()
 STL style function.

pop_front ()
 STL style function.

popFront ()
const T & back () const
 STL style function.

const T & front () const
 STL style function.

void push_front (const T &t)
 STL style function.

void pushFront (const T &t)
void push_back (const T &t)
 STL style function.

void pushBack (const T &t)
int size () const
 STL style function.

bool empty () const
 STL style function.

const T & peekBack (int idx)

Static Public Member Functions

acdk::lang::dmi::ClazzInfoclazzInfo ()
 return the ClazzInfo for this class will be re-implemented for each class by methods generated by acdkmc

::acdk::lang::RClass GetClass ()

Protected Member Functions

T * _getData () const


Member Typedef Documentation

template<class T>
typedef T* ObjectArrayImpl< T >::array_iterator
 

Reimplemented from acdk::lang::ObjectArrayBaseImpl.


Constructor & Destructor Documentation

template<class T>
ObjectArrayImpl< T >::ObjectArrayImpl int  size = 0  )  [inline]
 

template<class T>
ObjectArrayImpl< T >::ObjectArrayImpl const acdk::lang::dmi::ClazzInfo elemtype,
int  size
[inline]
 


Member Function Documentation

template<class T>
T* ObjectArrayImpl< T >::_getData  )  const [inline, protected]
 

template<class T>
void ObjectArrayImpl< T >::append const T &  value  )  [inline]
 

template<class T>
const T& ObjectArrayImpl< T >::back  )  const [inline]
 

STL style function.

template<class T>
array_iterator ObjectArrayImpl< T >::begin  )  [inline]
 

STL style function.

Reimplemented from acdk::lang::ObjectArrayBaseImpl.

template<class T>
acdk::lang::dmi::ClazzInfo * ObjectArrayImpl< T >::clazzInfo  )  [inline, static]
 

return the ClazzInfo for this class will be re-implemented for each class by methods generated by acdkmc

Reimplemented from acdk::lang::ObjectBase.

template<class T>
void ObjectArrayImpl< T >::concat IN(RObjectArrayImpl< T >)  other  )  [inline]
 

append given other Array to this array

template<class T>
bool ObjectArrayImpl< T >::empty  )  const [inline]
 

STL style function.

template<class T>
array_iterator ObjectArrayImpl< T >::end  )  [inline]
 

STL style function.

Reimplemented from acdk::lang::ObjectArrayBaseImpl.

template<class T>
int ObjectArrayImpl< T >::find IN(T)  el  )  [inline]
 

Find equals element (using el->equals()) If el == Nil find first element which also Nil.

Returns:
found index position or -1 of not found

template<class T>
int ObjectArrayImpl< T >::findFirst IN(T)  el  )  [inline]
 

alias for findFirst(IN(T) el)

template<class T>
int ObjectArrayImpl< T >::findLast IN(T)  el  )  [inline]
 

find the element (using equals()) from behind

Returns:
found index position or -1 if not found

template<class T>
int ObjectArrayImpl< T >::findSame IN(T)  el  )  [inline]
 

find same object

Returns:
found index position or -1 of not found

template<class T>
const T& ObjectArrayImpl< T >::front  )  const [inline]
 

STL style function.

template<class T>
const T& ObjectArrayImpl< T >::get int  idx  )  const [inline]
 

return element at index idx

template<class T>
acdk::lang::RClass ObjectArrayImpl< T >::GetClass  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

template<class T>
T& ObjectArrayImpl< T >::getref int  idx  )  const [inline]
 

template<class T>
void ObjectArrayImpl< T >::insert int  idx,
const T &  value
[inline]
 

template<class T>
T& ObjectArrayImpl< T >::operator[] int  idx  )  const [inline]
 

template<class T>
const T& ObjectArrayImpl< T >::peekBack int  idx  )  [inline]
 

template<class T>
T ObjectArrayImpl< T >::pop_back  )  [inline]
 

STL style function.

template<class T>
T ObjectArrayImpl< T >::pop_front  )  [inline]
 

STL style function.

template<class T>
T ObjectArrayImpl< T >::popBack  )  [inline]
 

STL style function.

template<class T>
T ObjectArrayImpl< T >::popFront  )  [inline]
 

template<class T>
void ObjectArrayImpl< T >::push_back const T &  t  )  [inline]
 

STL style function.

template<class T>
void ObjectArrayImpl< T >::push_front const T &  t  )  [inline]
 

STL style function.

template<class T>
void ObjectArrayImpl< T >::pushBack const T &  t  )  [inline]
 

template<class T>
void ObjectArrayImpl< T >::pushFront const T &  t  )  [inline]
 

template<class T>
virtual void ObjectArrayImpl< T >::readObject IN(::acdk::io::RObjectReader in  )  [inline, virtual]
 

template<class T>
T ObjectArrayImpl< T >::removeEqualElement IN(T)  el  )  [inline]
 

template<class T>
T ObjectArrayImpl< T >::removeSameElement IN(T)  el  )  [inline]
 

remove element which is same instance

Returns:
Nil if not found

template<class T>
void ObjectArrayImpl< T >::set int  idx,
const T &  value
[inline]
 

template<class T>
int ObjectArrayImpl< T >::size  )  const [inline]
 

STL style function.