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

DArrayRep Class Template Reference

#include <DArray.h>

Inheritance diagram for DArrayRep::

PureRep RefCounter MatrixRep List of all members.

Public Methods

 DArrayRep (int height, int width)
 DArrayRep (int n)
 DArrayRep (const DArrayRep &)
 ~DArrayRep ()
DArrayRep<R>* clone () const
bool operator== (const DArrayRep &DA) const
MatrixRow<R>& operator[] (int i)
int getWidth () const
int getHeight () const
VectorOf<R> getRow (int i) const
VectorOf<R> getCol (int i) const
void assignCol (int i, const VectorOf< R > &vc)
void reSize (int newHeight, int newWidth)
void colInsBefore (int col, int colsNum)
void colInsAfter (int col, int colsNum)
void rowInsBefore (int col, int colsNum)
void rowInsAfter (int col, int colsNum)
void colDelBefore (int col, int colsNum, bool reAlloc)
void colDelAfter (int col, int colsNum, bool reAlloc)
void colDelRange (int col1, int col2, bool reAlloc)
void rowDelBefore (int row, int rowsNum, bool reAlloc)
void rowDelAfter (int row, int rowsNum, bool reAlloc)
void rowDelRange (int row1, int row2, bool reAlloc)
bool readFrom (istream &istr, Chars &errMesg)
virtual void write (ostream &ostr) const
virtual void read (istream &istr)

Private Methods

void makeArray (int mHeight, int mWidth)
void deleteArray ()
bool inBounds (int i) const

Private Attributes

int width
int height
int rowBegin
int colBegin
MatrixRow<R>* theArray

Friends

class  MatrixRep< R >
class  MatrixComputations< R >

template<class R> class DArrayRep


Constructor & Destructor Documentation

template<class R>
DArrayRep<R>::DArrayRep<R> ( int height,
int width ) [inline]
 

Definition at line 50 of file DArray.h.

template<class R>
DArrayRep<R>::DArrayRep<R> ( int n ) [inline]
 

Definition at line 59 of file DArray.h.

template<class R>
DArrayRep<R>::DArrayRep<R> ( const DArrayRep<R> & )
 

template<class R>
DArrayRep<R>::~DArrayRep<R> ( ) [inline]
 

Definition at line 70 of file DArray.h.


Member Function Documentation

template<class R>
DArrayRep< R > * DArrayRep<R>::clone<R> ( ) const [inline, virtual]
 

Returns a pointer to a copy of the object. Should be implemented as a member which gives a new `deep-copy' by each representation derived from this; normally, by making it new CopyConstrutor(*this) with CopyConstructor doing `deep-copy' (`' because it is enough for the copy constructor to do logical deep copy).

Reimplemented from PureRep.

Definition at line 72 of file DArray.h.

template<class R>
bool DArrayRep<R>::operator== ( const DArrayRep<R> & DA ) const
 

template<class R>
MatrixRow< R > & DArrayRep<R>::operator[]<R> ( int i ) [inline]
 

Definition at line 82 of file DArray.h.

template<class R>
int DArrayRep<R>::getWidth ( ) const [inline]
 

Definition at line 98 of file DArray.h.

template<class R>
int DArrayRep<R>::getHeight ( ) const [inline]
 

Definition at line 100 of file DArray.h.

template<class R>
VectorOf<R> DArrayRep<R>::getRow ( int i ) const
 

template<class R>
VectorOf<R> DArrayRep<R>::getCol ( int i ) const
 

template<class R>
void DArrayRep<R>::assignCol ( int i,
const VectorOf< R > & vc )
 

template<class R>
void DArrayRep<R>::reSize ( int newHeight,
int newWidth )
 

template<class R>
void DArrayRep<R>::colInsBefore ( int col,
int colsNum )
 

template<class R>
void DArrayRep<R>::colInsAfter ( int col,
int colsNum )
 

template<class R>
void DArrayRep<R>::rowInsBefore ( int col,
int colsNum )
 

template<class R>
void DArrayRep<R>::rowInsAfter ( int col,
int colsNum )
 

template<class R>
void DArrayRep<R>::colDelBefore ( int col,
int colsNum,
bool reAlloc )
 

template<class R>
void DArrayRep<R>::colDelAfter ( int col,
int colsNum,
bool reAlloc )
 

template<class R>
void DArrayRep<R>::colDelRange ( int col1,
int col2,
bool reAlloc )
 

template<class R>
void DArrayRep<R>::rowDelBefore ( int row,
int rowsNum,
bool reAlloc )
 

template<class R>
void DArrayRep<R>::rowDelAfter ( int row,
int rowsNum,
bool reAlloc )
 

template<class R>
void DArrayRep<R>::rowDelRange ( int row1,
int row2,
bool reAlloc )
 

template<class R>
bool DArrayRep<R>::readFrom ( istream & istr,
Chars & errMesg ) [inline]
 

Definition at line 138 of file DArray.h.

template<class R>
void DArrayRep<R>::write ( ostream & ostr ) const [inline, virtual]
 

Definition at line 168 of file DArray.h.

template<class R>
void DArrayRep<R>::read ( istream & istr ) [inline, virtual]
 

Definition at line 175 of file DArray.h.

template<class R>
void DArrayRep<R>::makeArray ( int mHeight,
int mWidth ) [private]
 

Referenced by DArrayRep(), and read().

template<class R>
void DArrayRep<R>::deleteArray ( ) [private]
 

Referenced by ~DArrayRep().

template<class R>
bool DArrayRep<R>::inBounds ( int i ) const [inline, private]
 

Definition at line 218 of file DArray.h.

Referenced by operator[]().


Friends And Related Function Documentation

template<class R>
friend class MatrixRep< R > [friend]
 

Definition at line 187 of file DArray.h.

template<class R>
friend class MatrixComputations< R > [friend]
 

Definition at line 188 of file DArray.h.


Member Data Documentation

template<class R>
int DArrayRep<R>::width [private]
 

Definition at line 196 of file DArray.h.

template<class R>
int DArrayRep<R>::height [private]
 

Definition at line 196 of file DArray.h.

template<class R>
int DArrayRep<R>::rowBegin [private]
 

Definition at line 199 of file DArray.h.

template<class R>
int DArrayRep<R>::colBegin [private]
 

Definition at line 199 of file DArray.h.

template<class R>
MatrixRow<R>* DArrayRep<R>::theArray [private]
 

Definition at line 204 of file DArray.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:49:50 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001