#include <math3d.h>
Public Types | |
| typedef super::const_iterator | const_iterator |
| typedef super::iterator | iterator |
Public Member Functions | |
| super::reference | at (const size_t r, const size_t c) |
| super::const_reference | at (size_t r, size_t c) const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| matrix () | |
| matrix (int w, int h) | |
| matrix (int w, int h, const T &v) | |
| matrix (const matrix< T > &m) | |
| bool | operator!= (const matrix< T > &m) const |
| super::reference | operator() (size_t r, size_t c) |
| super::const_reference | operator() (size_t r, size_t c) const |
| template<typename S > | |
| matrix< T > & | operator*= (const S &s) |
| template<typename S > | |
| matrix< T > & | operator/= (const S &s) |
| matrix & | operator= (const matrix< T > &m) |
| bool | operator== (const matrix< T > &m) const |
| void | resize (int w, int h) |
| size_t | size () const |
| const T * | to_ptr () const |
| T * | to_ptr () |
Public Attributes | |
| const int & | height |
| const int & | width |
Private Types | |
| typedef std::vector< T > | super |
Private Attributes | |
| int | height_ |
| int | width_ |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const matrix< T > &m) |
| typedef super::const_iterator math3d::matrix< T >::const_iterator |
| typedef super::iterator math3d::matrix< T >::iterator |
typedef std::vector<T> math3d::matrix< T >::super [private] |
| math3d::matrix< T >::matrix | ( | ) | [inline, explicit] |
| math3d::matrix< T >::matrix | ( | int | w, |
| int | h | ||
| ) | [inline] |
| math3d::matrix< T >::matrix | ( | int | w, |
| int | h, | ||
| const T & | v | ||
| ) | [inline] |
| math3d::matrix< T >::matrix | ( | const matrix< T > & | m | ) | [inline] |
| super::reference math3d::matrix< T >::at | ( | const size_t | r, |
| const size_t | c | ||
| ) | [inline] |
| super::const_reference math3d::matrix< T >::at | ( | size_t | r, |
| size_t | c | ||
| ) | const [inline] |
| iterator math3d::matrix< T >::begin | ( | ) | [inline] |
| const_iterator math3d::matrix< T >::begin | ( | ) | const [inline] |
| iterator math3d::matrix< T >::end | ( | ) | [inline] |
| const_iterator math3d::matrix< T >::end | ( | ) | const [inline] |
| bool math3d::matrix< T >::operator!= | ( | const matrix< T > & | m | ) | const [inline] |
| super::reference math3d::matrix< T >::operator() | ( | size_t | r, |
| size_t | c | ||
| ) | [inline] |
| super::const_reference math3d::matrix< T >::operator() | ( | size_t | r, |
| size_t | c | ||
| ) | const [inline] |
| matrix<T>& math3d::matrix< T >::operator*= | ( | const S & | s | ) | [inline] |
| matrix<T>& math3d::matrix< T >::operator/= | ( | const S & | s | ) | [inline] |
| matrix& math3d::matrix< T >::operator= | ( | const matrix< T > & | m | ) | [inline] |
| bool math3d::matrix< T >::operator== | ( | const matrix< T > & | m | ) | const [inline] |
| void math3d::matrix< T >::resize | ( | int | w, |
| int | h | ||
| ) | [inline] |
| size_t math3d::matrix< T >::size | ( | ) | const [inline] |
| const T* math3d::matrix< T >::to_ptr | ( | ) | const [inline] |
| T* math3d::matrix< T >::to_ptr | ( | ) | [inline] |
| std::ostream& operator<< | ( | std::ostream & | s, |
| const matrix< T > & | m | ||
| ) | [friend] |
| const int& math3d::matrix< T >::height |
int math3d::matrix< T >::height_ [private] |
| const int& math3d::matrix< T >::width |
int math3d::matrix< T >::width_ [private] |