CSIM: csimList< T, inc > Class Template Reference

csimList< T, inc > Class Template Reference

#include <csimlist.h>

List of all members.


Detailed Description

template<class T, int inc>
class csimList< T, inc >

Template class for storing an array of pointers.

Public Member Functions

  • csimList (void)
    The constructor initializes the empty list.
  • void add (T *el)
    Add a pointer to the list.
  • void destroy (void)
    Delete all the objects whos pointers are stored in the list and free the memory occupied by the array.
  • void destroy_arrays (void)
    Delete all the objects whos pointers are stored in the list and free the memory occupied by the array.
  • void clear (void)
    Free the memory occupied by the array. Note: the objects whos pointers are stored are not deleted.
  • ~csimList ()
    Free the memory occupied by the array. Note: the objects whos pointers are stored are not deleted.

 
(C) 2003, Thomas Natschläger last modified 07/10/2006