Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

NArray Class Reference

#include <NArray.h>

Inheritance diagram for NArray:

NBaseArray InstArray

Collaboration diagram for NArray:

List of all members.


Public Members

 NArray ()
 NArray (Int size, Int alloc = kFirstNAllocation)
T& operator[] (Int i)
Indexing operator.

const T& operator[] (Int i) const
Indexing operator.

Void Append (const T &t)
Append single item to array.

T& Last ()
Return last item in array.

T& Top ()
Return top of stack.

Void Push (const T &t)
Push item onto stack.

const T& Item (Int i) const
T& Item (Int i)
Void ClearTo (const T &t)
Clear the array using t.

Void Append (const TNArray &a)
T* Ref () const
Return pointer to array.

T* Detach ()
As above, but the array no longer owns the data.


Detailed Description

Definition at line 92 of file NArray.h.


Constructor & Destructor Documentation

NArray::NArray ()

Definition at line 101 of file NArray.h.

NArray::NArray (Int size, Int alloc = kFirstNAllocation)

Definition at line 102 of file NArray.h.


Member Function Documentation

Void NArray::Append (const TNArray & a) [inline]

Parameters:
a   Append array to array

Definition at line 120 of file NArray.h.

Void NArray::Append (const T & t) [inline]

Append single item to array.

Reimplemented in InstArray.

Void NArray::ClearTo (const T & t)

Clear the array using t.

T * NArray::Detach () [inline]

As above, but the array no longer owns the data.

T & NArray::Item (Int i) [inline]

Reimplemented in InstArray.

Definition at line 116 of file NArray.h.

const T & NArray::Item (Int i) const [inline]

Reimplemented in InstArray.

Definition at line 114 of file NArray.h.

T & NArray::Last () [inline]

Return last item in array.

Reimplemented in InstArray.

Void NArray::Push (const T & t) [inline]

Push item onto stack.

Reimplemented in InstArray.

T * NArray::Ref () const [inline]

Return pointer to array.

T & NArray::Top () [inline]

Return top of stack.

Reimplemented in InstArray.

const T & NArray::operator[] (Int i) const [inline]

Indexing operator.

Reimplemented in InstArray.

T & NArray::operator[] (Int i) [inline]

Indexing operator.

Reimplemented in InstArray.


The documentation for this class was generated from the following file:
Generated at Sat Aug 5 00:16:34 2000 for Class Library by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000