openscenegraph
Public Types | Public Member Functions | Protected Attributes | List of all members
osg::MatrixTemplate< T, RowN, ColN > Class Template Reference

#include <Uniform>

Public Types

enum  { col_count = ColN }
 
enum  { row_count = RowN }
 
enum  { value_count = ColN * RowN }
 
typedef T value_type
 

Public Member Functions

 MatrixTemplate ()
 
 ~MatrixTemplate ()
 
value_typeoperator() (int row, int col)
 
value_type operator() (int row, int col) const
 
MatrixTemplateoperator= (const MatrixTemplate &rhs)
 
void set (const MatrixTemplate &rhs)
 
void set (value_type const *const ptr)
 
value_typeptr ()
 
const value_typeptr () const
 
value_typeoperator[] (int i)
 
value_type operator[] (int i) const
 
void reset ()
 

Protected Attributes

value_type _mat [row_count][col_count]
 

Member Typedef Documentation

◆ value_type

template<typename T , unsigned int RowN, unsigned int ColN>
typedef T osg::MatrixTemplate< T, RowN, ColN >::value_type

Member Enumeration Documentation

◆ anonymous enum

template<typename T , unsigned int RowN, unsigned int ColN>
anonymous enum
Enumerator
col_count 

◆ anonymous enum

template<typename T , unsigned int RowN, unsigned int ColN>
anonymous enum
Enumerator
row_count 

◆ anonymous enum

template<typename T , unsigned int RowN, unsigned int ColN>
anonymous enum
Enumerator
value_count 

Constructor & Destructor Documentation

◆ MatrixTemplate()

template<typename T , unsigned int RowN, unsigned int ColN>
osg::MatrixTemplate< T, RowN, ColN >::MatrixTemplate ( )
inline

◆ ~MatrixTemplate()

template<typename T , unsigned int RowN, unsigned int ColN>
osg::MatrixTemplate< T, RowN, ColN >::~MatrixTemplate ( )
inline

Member Function Documentation

◆ operator()() [1/2]

template<typename T , unsigned int RowN, unsigned int ColN>
value_type & osg::MatrixTemplate< T, RowN, ColN >::operator() ( int  row,
int  col 
)
inline

◆ operator()() [2/2]

template<typename T , unsigned int RowN, unsigned int ColN>
value_type osg::MatrixTemplate< T, RowN, ColN >::operator() ( int  row,
int  col 
) const
inline

◆ operator=()

template<typename T , unsigned int RowN, unsigned int ColN>
MatrixTemplate & osg::MatrixTemplate< T, RowN, ColN >::operator= ( const MatrixTemplate< T, RowN, ColN > &  rhs)
inline

◆ operator[]() [1/2]

template<typename T , unsigned int RowN, unsigned int ColN>
value_type & osg::MatrixTemplate< T, RowN, ColN >::operator[] ( int  i)
inline

◆ operator[]() [2/2]

template<typename T , unsigned int RowN, unsigned int ColN>
value_type osg::MatrixTemplate< T, RowN, ColN >::operator[] ( int  i) const
inline

◆ ptr() [1/2]

template<typename T , unsigned int RowN, unsigned int ColN>
value_type * osg::MatrixTemplate< T, RowN, ColN >::ptr ( )
inline

◆ ptr() [2/2]

template<typename T , unsigned int RowN, unsigned int ColN>
const value_type * osg::MatrixTemplate< T, RowN, ColN >::ptr ( ) const
inline

◆ reset()

template<typename T , unsigned int RowN, unsigned int ColN>
void osg::MatrixTemplate< T, RowN, ColN >::reset ( )
inline

◆ set() [1/2]

template<typename T , unsigned int RowN, unsigned int ColN>
void osg::MatrixTemplate< T, RowN, ColN >::set ( const MatrixTemplate< T, RowN, ColN > &  rhs)
inline

◆ set() [2/2]

template<typename T , unsigned int RowN, unsigned int ColN>
void osg::MatrixTemplate< T, RowN, ColN >::set ( value_type const *const  ptr)
inline

Member Data Documentation

◆ _mat

template<typename T , unsigned int RowN, unsigned int ColN>
value_type osg::MatrixTemplate< T, RowN, ColN >::_mat[row_count][col_count]
protected

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