nemo::MatrixDimension Class Reference

Represents the dimension of a Matrix. More...

#include <Matrix.h>

List of all members.

Public Member Functions

const unsigned int & rows () const
const unsigned int & cols () const
 MatrixDimension (const MatrixDimension &o)
MatrixDimensionoperator= (const MatrixDimension &o)
bool operator== (const MatrixDimension &o) const
bool operator!= (const MatrixDimension &o) const

Friends

MatrixDimension dim (unsigned int rows, unsigned int cols)
 Neat factory method for MatrixDimension objects to be put into Matrix objects.
std::ostream & operator<< (std::ostream &o, const MatrixDimension &d)

Detailed Description

Represents the dimension of a Matrix.

It is actually nothing else than an pair of unsigned ints representing row and col dimension, but allows typesafe distinction between values and dimensions in Matrices.

Definition at line 28 of file Matrix.h.


Constructor & Destructor Documentation

nemo::MatrixDimension::MatrixDimension ( const MatrixDimension o  )  [inline]

Definition at line 40 of file Matrix.h.


Member Function Documentation

const unsigned int& nemo::MatrixDimension::cols (  )  const [inline]
Returns:
Number of columns

Definition at line 37 of file Matrix.h.

bool nemo::MatrixDimension::operator!= ( const MatrixDimension o  )  const [inline]

Definition at line 43 of file Matrix.h.

MatrixDimension& nemo::MatrixDimension::operator= ( const MatrixDimension o  )  [inline]

Definition at line 41 of file Matrix.h.

bool nemo::MatrixDimension::operator== ( const MatrixDimension o  )  const [inline]

Definition at line 42 of file Matrix.h.

const unsigned int& nemo::MatrixDimension::rows (  )  const [inline]
Returns:
Number of rows

Definition at line 33 of file Matrix.h.


Friends And Related Function Documentation

MatrixDimension dim ( unsigned int  rows,
unsigned int  cols 
) [friend]

Neat factory method for MatrixDimension objects to be put into Matrix objects.

Definition at line 57 of file Matrix.h.

std::ostream& operator<< ( std::ostream &  o,
const MatrixDimension d 
) [friend]

Definition at line 44 of file Matrix.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 25 12:49:59 2013 for NemoMath by  doxygen 1.6.3