SPUC  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPUC::matrix< T > Singleton Reference

#include <spuc_typedefs.h>

Public Member Functions

 matrix ()
 
 matrix (int inrow, int incol)
 
 matrix (const matrix< T > &m)
 
 ~matrix ()
 
int num_cols () const
 
int num_rows () const
 
int size () const
 
int len () const
 
void reset ()
 
operator() (int R, int C) const
 
operator() (int index) const
 
operator[] (int index) const
 
T & operator() (int R, int C)
 
T & operator() (int index)
 
T & operator[] (int index)
 
void operator= (T t)
 
void operator= (const matrix< T > &m)
 
void operator= (const vector< T > &v)
 

Protected Member Functions

void resize (int r, int c)
 

Protected Attributes

int datasize
 
int rows
 
int cols
 
std::vector< T > data
 

Constructor & Destructor Documentation

template<class T>
SPUC::matrix< T >::matrix ( )
inline
template<class T>
SPUC::matrix< T >::matrix ( int  inrow,
int  incol 
)
inline
template<class T>
SPUC::matrix< T >::matrix ( const matrix< T > &  m)
inline
template<class T>
SPUC::matrix< T >::~matrix ( )
inline

Member Function Documentation

template<class T>
int SPUC::matrix< T >::len ( ) const
inline
template<class T>
int SPUC::matrix< T >::num_cols ( ) const
inline
template<class T>
int SPUC::matrix< T >::num_rows ( ) const
inline
template<class T>
T SPUC::matrix< T >::operator() ( int  R,
int  C 
) const
inline
template<class T>
T SPUC::matrix< T >::operator() ( int  index) const
inline
template<class T>
T& SPUC::matrix< T >::operator() ( int  R,
int  C 
)
inline
template<class T>
T& SPUC::matrix< T >::operator() ( int  index)
inline
template<class T>
void SPUC::matrix< T >::operator= ( t)
inline
template<class T>
void SPUC::matrix< T >::operator= ( const matrix< T > &  m)
inline
template<class T>
void SPUC::matrix< T >::operator= ( const vector< T > &  v)
inline
template<class T>
T SPUC::matrix< T >::operator[] ( int  index) const
inline
template<class T>
T& SPUC::matrix< T >::operator[] ( int  index)
inline
template<class T>
void SPUC::matrix< T >::reset ( void  )
inline
template<class T>
void SPUC::matrix< T >::resize ( int  r,
int  c 
)
inlineprotected
template<class T>
int SPUC::matrix< T >::size ( void  ) const
inline

Member Data Documentation

template<class T>
int SPUC::matrix< T >::cols
protected
template<class T>
std::vector<T> SPUC::matrix< T >::data
protected
template<class T>
int SPUC::matrix< T >::datasize
protected
template<class T>
int SPUC::matrix< T >::rows
protected

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