| Home :: @root | classes |
class Matrix | ^ |
********************************************************************** Represents a matrix of values.
- Source:
- matrix.h:16
- Author:
- Robert C. Duvall
- Version:
- unknown
Contents | ^ |
Entity Type Scope Short Description ~Matrix destructor public automatically generated Matrix constructor public Create an empty matrix Assumes ItemType has default constructor defined Matrix constructor public Create a matrix from the given data Note, no error checking! Matrix constructor public Create a matrix from another Assumes ItemType has operator= defined equals method public Compare with another matrix for equality Assumes ItemType has operator== defined getHeight method public Return height (i.e., number of rows) of matrix getValueAt method public Get value at [x,y] in const context getValueAt method public Get value at [x,y] in assignable context getWidth method 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 setValueAt method 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.