Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5390 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
Oct 16, 2005, 2:25:22 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: renamed Array to tArray

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/array.h

    r5388 r5390  
    1616/*!
    1717  @file array.h
    18   @brief Contains the Array Class that handles arrays of classes.
     18  @brief Contains the tArray Class that handles arrays of classes.
    1919  this class creates a Array of a semi-Dynamic length.
    2020  beware, that after finalizing the array may not be resized again.
     
    2727using namespace std;
    2828
    29 //! Array Class that handles dynamic-type arrays.
    30 template<class T> class Array
     29//! tArray Class that handles dynamic-type arrays.
     30template<class T> class tArray
    3131{
    3232  public:
    33     Array ();
    34     ~Array();
     33    tArray ();
     34    ~tArray();
    3535
    3636    void finalizeArray ();
     
    6767*/
    6868template<class T>
    69 Array<T>::Array ()
    70 {
    71   PRINTF(5)("crating new Array\n");
     69tArray<T>::tArray ()
     70{
     71  PRINTF(5)("crating new tArray\n");
    7272  this->firstEntry = new Entry;
    7373  this->firstEntry->next =NULL;
     
    7878
    7979template<class T>
    80     const T Array<T>::getEntry(unsigned int number) const
     80    const T tArray<T>::getEntry(unsigned int number) const
    8181{
    8282  if (this->finalized && number < this->entryCount)
     
    8989*/
    9090template<class T>
    91 Array<T>::~Array()
     91tArray<T>::~tArray()
    9292{
    9393  PRINTF(5)("deleting array\n");
     
    112112*/
    113113template<class T>
    114 void Array<T>::finalizeArray ()
     114void tArray<T>::finalizeArray ()
    115115{
    116116  if (this->finalized)
     
    142142*/
    143143template<class T>
    144 void Array<T>::addEntry (T entry)
     144void tArray<T>::addEntry (T entry)
    145145{
    146146  if (!this->finalized)
     
    162162*/
    163163template<class T>
    164 void Array<T>::addEntry (T entry0, T entry1, T entry2)
     164void tArray<T>::addEntry (T entry0, T entry1, T entry2)
    165165{
    166166  this->addEntry(entry0);
     
    176176 */
    177177template<class T>
    178 int Array<T>::getIndex(T* entry) const
     178int tArray<T>::getIndex(T* entry) const
    179179{
    180180  if( unlikely(this->finalized == false))
     
    193193*/
    194194template<class T>
    195 void Array<T>::debug () const
     195void tArray<T>::debug () const
    196196{
    197197  PRINT(0)("entryCount=%i, address=%p\n", this->entryCount, this->array);
Note: See TracChangeset for help on using the changeset viewer.