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

ObjArray Class Reference

#include <ObjArray.h>

Inheritance diagram for ObjArray:

Object

Collaboration diagram for ObjArray:

List of all members.

Public Members

 ObjArray ()
 ObjArray (Int size, Int alloc = kFirstObjAlloc)
 ObjArray (const ObjArray &array)
 ~ObjArray ()
ObjectPtr operator[] (Int i) const
Int NumItems () const
ObjArray& operator>> (Action<ObjectPtr> &a)
ObjArray& operator= (const ObjArray &array)
ObjectPtr Top ()
Void Pop ()
Void Push (ObjectPtr objPtr)
Void Set (Int i, ObjectPtr objPtr)
Void Append (ObjectPtr objPtr)
Void Prepend (ObjectPtr objPtr)
Void Insert (Int i, ObjectPtr objPtr)
Void Delete (Int i)
Void Clear ()
Void Print (ostream &s) const
Void Parse (istream &s)
ObjectPtr Clone () const
Void Free ()
Void SetSize (Int newSize)
Void Add (Int n)
Void Shrink (Int n)
Void Insert (Int i, Int n)
Void Delete (Int i, Int n)
Void ShrinkWrap ()
ObjectPtrRef ()

Protected Members

Void Grow ()
ObjectPtritem
SInt32 items
SInt32 allocated


Detailed Description

Definition at line 23 of file ObjArray.h.


Constructor & Destructor Documentation

ObjArray::ObjArray () [inline]

Definition at line 89 of file ObjArray.h.

ObjArray::ObjArray (Int size, Int alloc = kFirstObjAlloc)

Definition at line 19 of file ObjArray.cc.

ObjArray::ObjArray (const ObjArray & array)

Definition at line 28 of file ObjArray.cc.

ObjArray::~ObjArray ()

Definition at line 44 of file ObjArray.cc.


Member Function Documentation

Void ObjArray::Add (Int n)

Definition at line 194 of file ObjArray.cc.

Void ObjArray::Append (ObjectPtr objPtr) [inline]

Definition at line 132 of file ObjArray.h.

Void ObjArray::Clear ()

Definition at line 145 of file ObjArray.cc.

ObjectPtr ObjArray::Clone () const [virtual]

Reimplemented from Object.

Definition at line 161 of file ObjArray.cc.

Void ObjArray::Delete (Int i, Int n)

Definition at line 221 of file ObjArray.cc.

Void ObjArray::Delete (Int i) [inline]

Definition at line 152 of file ObjArray.h.

Void ObjArray::Free () [virtual]

Reimplemented from Object.

Definition at line 155 of file ObjArray.cc.

Void ObjArray::Grow () [protected]

Definition at line 256 of file ObjArray.cc.

Void ObjArray::Insert (Int i, Int n) [inline]

Definition at line 205 of file ObjArray.cc.

Void ObjArray::Insert (Int i, ObjectPtr objPtr) [inline]

Definition at line 205 of file ObjArray.cc.

Int ObjArray::NumItems () const [inline]

Definition at line 93 of file ObjArray.h.

Void ObjArray::Parse (istream & s) [virtual]

Reimplemented from Object.

Definition at line 104 of file ObjArray.cc.

Void ObjArray::Pop () [inline]

Definition at line 118 of file ObjArray.h.

Void ObjArray::Prepend (ObjectPtr objPtr) [inline]

Definition at line 140 of file ObjArray.h.

Void ObjArray::Print (ostream & s) const [virtual]

Reimplemented from Object.

Definition at line 87 of file ObjArray.cc.

Void ObjArray::Push (ObjectPtr objPtr) [inline]

Definition at line 110 of file ObjArray.h.

ObjectPtr * ObjArray::Ref () [inline]

Definition at line 157 of file ObjArray.h.

Void ObjArray::Set (Int i, ObjectPtr objPtr) [inline]

Definition at line 124 of file ObjArray.h.

Void ObjArray::SetSize (Int newSize)

Definition at line 168 of file ObjArray.cc.

Void ObjArray::Shrink (Int n)

Definition at line 199 of file ObjArray.cc.

Void ObjArray::ShrinkWrap ()

Definition at line 237 of file ObjArray.cc.

ObjectPtr ObjArray::Top () [inline]

Definition at line 105 of file ObjArray.h.

ObjArray & ObjArray::operator= (const ObjArray & array)

Definition at line 66 of file ObjArray.cc.

ObjArray & ObjArray::operator>> (Action<ObjectPtr>& a)

Definition at line 52 of file ObjArray.cc.

ObjectPtr ObjArray::operator[] (Int i) const [inline]

Definition at line 98 of file ObjArray.h.


Member Data Documentation

SInt32 ObjArray::allocated [protected]

Definition at line 82 of file ObjArray.h.

ObjectPtr * ObjArray::item [protected]

Definition at line 80 of file ObjArray.h.

SInt32 ObjArray::items [protected]

Definition at line 81 of file ObjArray.h.


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