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.

Definition at line 520 of file netwm.cpp.

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

Resizable array destructor.

Definition at line 528 of file netwm.cpp.


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.

Definition at line 542 of file netwm.cpp.

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).

Definition at line 534 of file netwm.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdecore Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Jul 22 10:16:26 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003