kdecore Library API Documentation

NETRArray< Z > Class Template Reference

Resizable array class. More...

#include <netwm_p.h>

List of all members.

Public Member Functions

 NETRArray ()
 ~NETRArray ()
Z & operator[] (int)
int size () const
void reset ()


Detailed Description

template<class Z>
class NETRArray< Z >

Resizable array class.

This resizable array is used to simplify the implementation. The existence of this class is to keep the implementation from depending on a separate framework/library.

Definition at line 39 of file netwm_p.h.


Constructor & Destructor Documentation

template<class Z>
NETRArray< Z >::NETRArray  ) 
 

Constructs an empty (size == 0) array.

template<class Z>
NETRArray< Z >::~NETRArray  ) 
 

Resizable array destructor.


Member Function Documentation

template<class Z>
Z& NETRArray< Z >::operator[] int   ) 
 

The [] operator does the work.

If the index is larger than the current size of the array, it is resized.

template<class Z>
int NETRArray< Z >::size  )  const [inline]
 

Returns the size of the array.

Definition at line 64 of file netwm_p.h.

template<class Z>
void NETRArray< Z >::reset  ) 
 

Resets the array (size == 0).


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for kdecore Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 14 09:16:13 2006 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003