glbarcode++
 
Loading...
Searching...
No Matches
glbarcode::Matrix< T > Class Template Reference

#include </home/evins/glbarcode/glbarcode/Matrix.hpp>

Public Member Functions

 Matrix ()
 
 Matrix (int nx, int ny)
 
 Matrix (const Matrix< T > &src)
 
 Matrix (const Matrix< T > &src, int x0, int y0, int nx, int ny)
 
 ~Matrix ()
 
Matrixoperator= (const Matrix &src)
 
T * operator[] (int i) const
 
void resize (int nx, int ny)
 
int nx () const
 
int ny () const
 
Matrix< T > subMatrix (int x0, int y0, int nx, int ny)
 
void setSubMatrix (int x0, int y0, Matrix< T > &a)
 
void fill (T val)
 

Detailed Description

template<class T>
class glbarcode::Matrix< T >

Simple 2D Matrix implementation

Constructor & Destructor Documentation

◆ Matrix() [1/4]

template<class T >
glbarcode::Matrix< T >::Matrix ( )
inline

Default constructor.

◆ Matrix() [2/4]

template<class T >
glbarcode::Matrix< T >::Matrix ( int  nx,
int  ny 
)
inline

Sized constructor.

◆ Matrix() [3/4]

template<class T >
glbarcode::Matrix< T >::Matrix ( const Matrix< T > &  src)
inline

Copy constructor.

◆ Matrix() [4/4]

template<class T >
glbarcode::Matrix< T >::Matrix ( const Matrix< T > &  src,
int  x0,
int  y0,
int  nx,
int  ny 
)
inline

Submatrix copy constructor.

◆ ~Matrix()

template<class T >
glbarcode::Matrix< T >::~Matrix ( )
inline

Destructor.

Member Function Documentation

◆ fill()

template<class T >
void glbarcode::Matrix< T >::fill ( val)
inline

Fill matrix with single value

◆ nx()

template<class T >
int glbarcode::Matrix< T >::nx ( ) const
inline

Get accessor for "nx" parameter.

Returns
Value of "nx" parameter

◆ ny()

template<class T >
int glbarcode::Matrix< T >::ny ( ) const
inline

Get accessor for "ny" parameter.

Returns
Value of "ny" parameter

◆ operator=()

template<class T >
Matrix & glbarcode::Matrix< T >::operator= ( const Matrix< T > &  src)
inline

Copy assignment "=" operator

◆ operator[]()

template<class T >
T * glbarcode::Matrix< T >::operator[] ( int  i) const
inline

Indirection "[]" operator

◆ resize()

template<class T >
void glbarcode::Matrix< T >::resize ( int  nx,
int  ny 
)
inline

Resize (destroys old content)

◆ setSubMatrix()

template<class T >
void glbarcode::Matrix< T >::setSubMatrix ( int  x0,
int  y0,
Matrix< T > &  a 
)
inline

Set sub-matrix

◆ subMatrix()

template<class T >
Matrix< T > glbarcode::Matrix< T >::subMatrix ( int  x0,
int  y0,
int  nx,
int  ny 
)
inline

Extract sub-matrix from this matrix


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