template <class T> class skTAList : public skAList

This template class is used to provide type-safety to the list

Inheritance:

skTAList < skAList


Public Methods

skTAList()
default constructor
skTAList(const skTAList<T>&)
Copy constructor - does a deep copy
skTAList(USize initial_size, USize growth_increment)
Constructor specifying the size and growth increment for the list
virtual ~skTAList()
Destructor deletes all the contained objects by calling clearAndDestroy
void insert(T *, USize index)
inserts the object *before* the given index
void prepend(T *)
puts the object at the start of the list
void append(T *)
puts the object at the end of the list
void remove(T *)
removes the given object from the list, but does not delete it
void removeAndDestroy(T *)
removes the given object from the list and deletes it
T* operator[](USize n) const
retrieves the object at the nth position in the list
int index(const T *) const
returns the index of the item in the list, or -1 if not found
bool contains(const T *) const
returns true if the list contains the given object
skTAList <T> & operator=(const skTAList<T>& l)
assignment operator - clears and destroys this list, and then does a deep copy

Protected Methods

void deleteItem(void *)
this method calls delete on the object casted to the correct type, this ensures the destructor is called

Inherited from skAList:

Public Methods

void clearAndDestroy()
void clear()
USize entries() const
void deleteElt(USize n)
void test() const
void growTo(USize size)

Protected Fields

void** m_Array
USize m_ArraySize
USize m_Entries
USize m_GrowthIncrement

Protected Methods

int findElt(const void * i) const
void grow()

Documentation

This template class is used to provide type-safety to the list
skTAList()
default constructor

skTAList(const skTAList<T>&)
Copy constructor - does a deep copy

skTAList(USize initial_size, USize growth_increment)
Constructor specifying the size and growth increment for the list

virtual ~skTAList()
Destructor deletes all the contained objects by calling clearAndDestroy

void insert(T *, USize index)
inserts the object *before* the given index

void prepend(T *)
puts the object at the start of the list

void append(T *)
puts the object at the end of the list

void remove(T *)
removes the given object from the list, but does not delete it

void removeAndDestroy(T *)
removes the given object from the list and deletes it

T* operator[](USize n) const
retrieves the object at the nth position in the list

int index(const T *) const
returns the index of the item in the list, or -1 if not found

bool contains(const T *) const
returns true if the list contains the given object

skTAList <T> & operator=(const skTAList<T>& l)
assignment operator - clears and destroys this list, and then does a deep copy

void deleteItem(void *)
this method calls delete on the object casted to the correct type, this ensures the destructor is called


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de