kviewshell
GArray< TYPE > Class Template Reference
Dynamic array for general types. More...
#include <GContainer.h>
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
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.
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.
Member Function Documentation
Definition at line 589 of file GContainer.h.
The documentation for this class was generated from the following file: