Public Types | Public Member Functions | Public Attributes | Private Types | Private Attributes | Friends
math3d::matrix< T > Class Template Reference

#include <math3d.h>

List of all members.

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)
matrixoperator= (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)

Detailed Description

template<class T>
class math3d::matrix< T >

Definition at line 257 of file math3d.h.


Member Typedef Documentation

template<class T>
typedef super::const_iterator math3d::matrix< T >::const_iterator

Definition at line 270 of file math3d.h.

template<class T>
typedef super::iterator math3d::matrix< T >::iterator

Definition at line 269 of file math3d.h.

template<class T>
typedef std::vector<T> math3d::matrix< T >::super [private]

Definition at line 260 of file math3d.h.


Constructor & Destructor Documentation

template<class T>
math3d::matrix< T >::matrix ( ) [inline, explicit]

Definition at line 272 of file math3d.h.

template<class T>
math3d::matrix< T >::matrix ( int  w,
int  h 
) [inline]

Definition at line 274 of file math3d.h.

template<class T>
math3d::matrix< T >::matrix ( int  w,
int  h,
const T &  v 
) [inline]

Definition at line 276 of file math3d.h.

template<class T>
math3d::matrix< T >::matrix ( const matrix< T > &  m) [inline]

Definition at line 278 of file math3d.h.


Member Function Documentation

template<class T>
super::reference math3d::matrix< T >::at ( const size_t  r,
const size_t  c 
) [inline]

Definition at line 293 of file math3d.h.

template<class T>
super::const_reference math3d::matrix< T >::at ( size_t  r,
size_t  c 
) const [inline]

Definition at line 297 of file math3d.h.

template<class T>
iterator math3d::matrix< T >::begin ( ) [inline]

Definition at line 324 of file math3d.h.

template<class T>
const_iterator math3d::matrix< T >::begin ( ) const [inline]

Definition at line 328 of file math3d.h.

template<class T>
iterator math3d::matrix< T >::end ( ) [inline]

Definition at line 332 of file math3d.h.

template<class T>
const_iterator math3d::matrix< T >::end ( ) const [inline]

Definition at line 336 of file math3d.h.

template<class T>
bool math3d::matrix< T >::operator!= ( const matrix< T > &  m) const [inline]

Definition at line 354 of file math3d.h.

template<class T>
super::reference math3d::matrix< T >::operator() ( size_t  r,
size_t  c 
) [inline]

Definition at line 284 of file math3d.h.

template<class T>
super::const_reference math3d::matrix< T >::operator() ( size_t  r,
size_t  c 
) const [inline]

Definition at line 288 of file math3d.h.

template<class T>
template<typename S >
matrix<T>& math3d::matrix< T >::operator*= ( const S &  s) [inline]

Definition at line 372 of file math3d.h.

template<class T>
template<typename S >
matrix<T>& math3d::matrix< T >::operator/= ( const S &  s) [inline]

Definition at line 380 of file math3d.h.

template<class T>
matrix& math3d::matrix< T >::operator= ( const matrix< T > &  m) [inline]

Definition at line 359 of file math3d.h.

template<class T>
bool math3d::matrix< T >::operator== ( const matrix< T > &  m) const [inline]

Definition at line 341 of file math3d.h.

template<class T>
void math3d::matrix< T >::resize ( int  w,
int  h 
) [inline]

Definition at line 312 of file math3d.h.

template<class T>
size_t math3d::matrix< T >::size ( ) const [inline]

Definition at line 319 of file math3d.h.

template<class T>
const T* math3d::matrix< T >::to_ptr ( ) const [inline]

Definition at line 302 of file math3d.h.

template<class T>
T* math3d::matrix< T >::to_ptr ( ) [inline]

Definition at line 307 of file math3d.h.


Friends And Related Function Documentation

template<class T>
std::ostream& operator<< ( std::ostream &  s,
const matrix< T > &  m 
) [friend]

Definition at line 387 of file math3d.h.


Member Data Documentation

template<class T>
const int& math3d::matrix< T >::height

Definition at line 267 of file math3d.h.

template<class T>
int math3d::matrix< T >::height_ [private]

Definition at line 262 of file math3d.h.

template<class T>
const int& math3d::matrix< T >::width

Definition at line 266 of file math3d.h.

template<class T>
int math3d::matrix< T >::width_ [private]

Definition at line 261 of file math3d.h.


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


trac_ik_lib
Author(s): Patrick Beeson, Barrett Ames
autogenerated on Thu Apr 25 2019 03:39:22