Public Member Functions | Private Member Functions | Private Attributes
karto::Matrix Class Reference

#include <Karto.h>

List of all members.

Public Member Functions

void Clear ()
kt_int32u GetColumns () const
kt_int32u GetRows () const
 Matrix (kt_int32u rows, kt_int32u columns)
kt_doubleoperator() (kt_int32u row, kt_int32u column)
const kt_doubleoperator() (kt_int32u row, kt_int32u column) const
virtual ~Matrix ()

Private Member Functions

void Allocate ()
void RangeCheck (kt_int32u row, kt_int32u column) const

Private Attributes

kt_int32u m_Columns
kt_doublem_pData
kt_int32u m_Rows

Detailed Description

Defines a general Matrix class.

Definition at line 2628 of file Karto.h.


Constructor & Destructor Documentation

karto::Matrix::Matrix ( kt_int32u  rows,
kt_int32u  columns 
) [inline]

Constructs a matrix of size rows x columns

Definition at line 2634 of file Karto.h.

virtual karto::Matrix::~Matrix ( ) [inline, virtual]

Destructor

Definition at line 2647 of file Karto.h.


Member Function Documentation

void karto::Matrix::Allocate ( ) [inline, private]

Allocate space for the matrix

Definition at line 2712 of file Karto.h.

void karto::Matrix::Clear ( ) [inline]

Set all entries to 0

Definition at line 2656 of file Karto.h.

Gets the number of columns of the matrix

Returns:
nubmer of columns

Definition at line 2677 of file Karto.h.

kt_int32u karto::Matrix::GetRows ( ) const [inline]

Gets the number of rows of the matrix

Returns:
nubmer of rows

Definition at line 2668 of file Karto.h.

kt_double& karto::Matrix::operator() ( kt_int32u  row,
kt_int32u  column 
) [inline]

Returns a reference to the entry at (row,column)

Parameters:
row
column
Returns:
reference to entry at (row,column)

Definition at line 2688 of file Karto.h.

const kt_double& karto::Matrix::operator() ( kt_int32u  row,
kt_int32u  column 
) const [inline]

Returns a const reference to the entry at (row,column)

Parameters:
row
column
Returns:
const reference to entry at (row,column)

Definition at line 2701 of file Karto.h.

void karto::Matrix::RangeCheck ( kt_int32u  row,
kt_int32u  column 
) const [inline, private]

Checks if (row,column) is a valid entry into the matrix

Parameters:
row
column

Definition at line 2739 of file Karto.h.


Member Data Documentation

Definition at line 2754 of file Karto.h.

Definition at line 2756 of file Karto.h.

Definition at line 2753 of file Karto.h.


The documentation for this class was generated from the following file:


open_karto
Author(s):
autogenerated on Tue May 2 2017 02:41:15