• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

GArray< TYPE > Class Template Reference

Dynamic array for general types. More...

#include <GContainer.h>

Inheritance diagram for GArray< TYPE >:

Inheritance graph
[legend]

List of all members.


Public Member Functions

 GArray (int lo, int hi)
 GArray (int hi)
 GArray ()
GArray & operator= (const GArray &r)

Detailed Description

template<class TYPE>
class GArray< TYPE >

Dynamic array for general types.

Template class GArray<TYPE># implements an array of elements of type TYPE#. This template class must be able to access the following functions. {itemize} a default constructor TYPE::TYPE()#, a copy constructor TYPE::TYPE(const TYPE &)#, and optionally a destructor TYPE::~TYPE()#. {itemize} This class only implement constructors. See class {GArrayTemplate} for a description of all access methods.

Definition at line 570 of file GContainer.h.


Constructor & Destructor Documentation

template<class TYPE>
GArray< TYPE >::GArray (  )  [inline]

Constructs an empty array.

The valid subscript range is initially empty. Member function touch# and resize# provide convenient ways to enlarge the subscript range.

Definition at line 576 of file GContainer.h.

template<class TYPE>
GArray< TYPE >::GArray ( int  hi  )  [inline]

Constructs an array with subscripts in range 0 to hibound#.

The subscript range can be subsequently modified with member functions touch# and resize#.

Definition at line 581 of file GContainer.h.

template<class TYPE>
GArray< TYPE >::GArray ( int  lo,
int  hi 
) [inline]

Constructs an array with subscripts in range lobound# to hibound#.

The subscript range can be subsequently modified with member functions touch# and resize#.

Definition at line 586 of file GContainer.h.


Member Function Documentation

template<class TYPE>
GArray& GArray< TYPE >::operator= ( const GArray< TYPE > &  r  )  [inline]

Definition at line 589 of file GContainer.h.


The documentation for this class was generated from the following file:
  • GContainer.h

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal