HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_RefMatrix< T > Class Template Reference

#include <GU_Detail.h>

Public Types

typedef int(* Comparator )(const T *, const T *)
 

Public Member Functions

 UT_RefMatrix (unsigned int mSz=0, unsigned int nSz=0)
 
 ~UT_RefMatrix ()
 
int64 getMemoryUsage (bool inclusive) const
 
 UT_RefMatrix (const UT_RefMatrix< T > &m)
 
void swap (UT_RefMatrix< T > &other)
 
unsigned int insertRow (unsigned int index)
 
unsigned int insertRow (const UT_Array< T > &r, unsigned int index)
 
unsigned int appendRow (const UT_Array< T > &r)
 
unsigned int insertCol (unsigned int index)
 
unsigned int insertCol (const UT_Array< T > &c, unsigned int index)
 
unsigned int appendCol (const UT_Array< T > &c)
 
int removeRow (unsigned int index)
 
int removeCol (unsigned int index)
 
void cycle (int rowshift, int colshift)
 
int operator== (const UT_RefMatrix< T > &m) const
 
UT_RefMatrix< T > & operator= (const UT_RefMatrix< T > &m)
 
const Toperator() (unsigned i, unsigned j) const
 
Toperator() (unsigned i, unsigned j)
 
const T safeGet (unsigned i, unsigned j) const
 
TsafeGet (unsigned i, unsigned j)
 
int find (const T &t, unsigned int *m, unsigned int *n) const
 
unsigned int rows () const
 
unsigned int cols () const
 
void resize (unsigned int mSz, unsigned int nSz)
 
int apply (int(*apply_func)(T &t, void *d), void *d)
 

Detailed Description

template<typename T>
class UT_RefMatrix< T >

Definition at line 63 of file GU_Detail.h.

Member Typedef Documentation

template<typename T>
typedef int(* UT_RefMatrix< T >::Comparator)(const T *, const T *)

Definition at line 30 of file UT_RefMatrix.h.

Constructor & Destructor Documentation

template<class T >
UT_RefMatrix< T >::UT_RefMatrix ( unsigned int  mSz = 0,
unsigned int  nSz = 0 
)
explicit

Definition at line 22 of file UT_RefMatrixImpl.h.

template<class T >
UT_RefMatrix< T >::~UT_RefMatrix ( )

Definition at line 38 of file UT_RefMatrixImpl.h.

template<class T>
UT_RefMatrix< T >::UT_RefMatrix ( const UT_RefMatrix< T > &  m)

Definition at line 30 of file UT_RefMatrixImpl.h.

Member Function Documentation

template<class T>
unsigned int UT_RefMatrix< T >::appendCol ( const UT_Array< T > &  c)

Definition at line 107 of file UT_RefMatrixImpl.h.

template<class T>
unsigned int UT_RefMatrix< T >::appendRow ( const UT_Array< T > &  r)

Definition at line 68 of file UT_RefMatrixImpl.h.

template<class T>
int UT_RefMatrix< T >::apply ( int(*)(T &t, void *d)  apply_func,
void d 
)

Definition at line 233 of file UT_RefMatrixImpl.h.

template<typename T>
unsigned int UT_RefMatrix< T >::cols ( ) const
inline

Definition at line 112 of file UT_RefMatrix.h.

template<class T >
void UT_RefMatrix< T >::cycle ( int  rowshift,
int  colshift 
)

Definition at line 155 of file UT_RefMatrixImpl.h.

template<class T>
int UT_RefMatrix< T >::find ( const T t,
unsigned int m,
unsigned int n 
) const

Definition at line 180 of file UT_RefMatrixImpl.h.

template<typename T>
int64 UT_RefMatrix< T >::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 36 of file UT_RefMatrix.h.

template<class T >
unsigned int UT_RefMatrix< T >::insertCol ( unsigned int  index)

Definition at line 86 of file UT_RefMatrixImpl.h.

template<class T>
unsigned int UT_RefMatrix< T >::insertCol ( const UT_Array< T > &  c,
unsigned int  index 
)

Definition at line 114 of file UT_RefMatrixImpl.h.

template<class T >
unsigned int UT_RefMatrix< T >::insertRow ( unsigned int  index)

Definition at line 53 of file UT_RefMatrixImpl.h.

template<class T>
unsigned int UT_RefMatrix< T >::insertRow ( const UT_Array< T > &  r,
unsigned int  index 
)

Definition at line 75 of file UT_RefMatrixImpl.h.

template<typename T>
const T& UT_RefMatrix< T >::operator() ( unsigned  i,
unsigned  j 
) const
inline

Definition at line 82 of file UT_RefMatrix.h.

template<typename T>
T& UT_RefMatrix< T >::operator() ( unsigned  i,
unsigned  j 
)
inline

Definition at line 86 of file UT_RefMatrix.h.

template<class T>
UT_RefMatrix< T > & UT_RefMatrix< T >::operator= ( const UT_RefMatrix< T > &  m)

Definition at line 212 of file UT_RefMatrixImpl.h.

template<class T>
int UT_RefMatrix< T >::operator== ( const UT_RefMatrix< T > &  m) const

Definition at line 223 of file UT_RefMatrixImpl.h.

template<class T >
int UT_RefMatrix< T >::removeCol ( unsigned int  index)

Definition at line 138 of file UT_RefMatrixImpl.h.

template<class T >
int UT_RefMatrix< T >::removeRow ( unsigned int  index)

Definition at line 124 of file UT_RefMatrixImpl.h.

template<class T >
void UT_RefMatrix< T >::resize ( unsigned int  mSz,
unsigned int  nSz 
)

Definition at line 191 of file UT_RefMatrixImpl.h.

template<typename T>
unsigned int UT_RefMatrix< T >::rows ( ) const
inline

Definition at line 111 of file UT_RefMatrix.h.

template<typename T>
const T UT_RefMatrix< T >::safeGet ( unsigned  i,
unsigned  j 
) const
inline

Definition at line 93 of file UT_RefMatrix.h.

template<typename T>
T& UT_RefMatrix< T >::safeGet ( unsigned  i,
unsigned  j 
)
inline

Definition at line 98 of file UT_RefMatrix.h.

template<class T>
void UT_RefMatrix< T >::swap ( UT_RefMatrix< T > &  other)

Definition at line 44 of file UT_RefMatrixImpl.h.


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