Home :: @root classes

class Matrix

^ 
********************************************************************** Represents a matrix of values.

Source:
matrix.h:16
Author:
Robert C. Duvall
Version:
unknown

Contents

^ 
EntityTypeScopeShort Description
~Matrixdestructor publicautomatically generated
Matrixconstructor public Create an empty matrix Assumes ItemType has default constructor defined
Matrixconstructor public Create a matrix from the given data Note, no error checking!
Matrixconstructor public Create a matrix from another Assumes ItemType has operator= defined
equalsmethod public Compare with another matrix for equality Assumes ItemType has operator== defined
getHeightmethod public Return height (i.e., number of rows) of matrix
getValueAtmethod public Get value at [x,y] in const context
getValueAtmethod public Get value at [x,y] in assignable context
getWidthmethod public Return width (i.e., number of columns) of matrix
operator =operator public Copy contents of another matrix into this one Assumes ItemType has operator= defined
setValueAtmethod public Set value at [x,y] to given value Assumes ItemType has operator= defined

destructor ~Matrix

? ^  > 
automatically generated
Source:
matrix.h
Code:
public ~ Matrix ( )

constructor Matrix

? ^  < > 
Create an empty matrix Assumes ItemType has default constructor defined
Source:
matrix.h:24
Code:
public Matrix ( unsigned int width = 0 ,
unsigned int height = 0 ,
const ItemType & value = ItemType ( ) )

constructor Matrix

? ^  < > 
Create a matrix from the given data Note, no error checking!
Source:
matrix.h:31
Code:
public Matrix ( unsigned int width ,
unsigned int height ,
const ItemType * values )

constructor Matrix

? ^  < > 
Create a matrix from another Assumes ItemType has operator= defined
Source:
matrix.h:36
Code:
public Matrix ( const Matrix & other )

method equals

? ^  < > 
Compare with another matrix for equality Assumes ItemType has operator== defined
Source:
matrix.h:47
Code:
public bool equals ( const Matrix & other ) const

method getHeight

? ^  < > 
Return height (i.e., number of rows) of matrix
Source:
matrix.h:67
Code:
public unsigned int getHeight ( ) const

method getValueAt

? ^  < > 
Get value at [x,y] in const context
Source:
matrix.h:58
Code:
public ItemType getValueAt ( unsigned int x ,
unsigned int y ) const

method getValueAt

? ^  < > 
Get value at [x,y] in assignable context
Source:
matrix.h:62
Code:
public ItemType & getValueAt ( unsigned int x ,
unsigned int y )

method getWidth

? ^  < > 
Return width (i.e., number of columns) of matrix
Source:
matrix.h:71
Code:
public unsigned int getWidth ( ) const

operator =

? ^  < > 
Copy contents of another matrix into this one Assumes ItemType has operator= defined
Source:
matrix.h:41
Code:
public Matrix & operator = ( const Matrix & other )

method setValueAt

? ^  < > 
Set value at [x,y] to given value Assumes ItemType has operator= defined
Source:
matrix.h:54
Code:
public void setValueAt ( unsigned int x ,
unsigned int y ,
const ItemType & value )

Created Thu Oct 10 01:13:47 2002.
This documentation was generated automatically by
ccdoc v0.8 r26 2001/11/28 bin_opt_suncc_solaris-2.8.
Click here to submit a bug report or feature request.
Click here to return to the top of the page.