OpenSceneGraph
Public Types | Public Member Functions | Protected Attributes | List of all members
osg::TemplateMatrix< T, RowN, ColN > Class Template Reference
Inheritance diagram for osg::TemplateMatrix< T, RowN, ColN >:
Inheritance graph
[legend]

Public Types

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

Public Member Functions

 TemplateMatrix ()
 
 ~TemplateMatrix ()
 
value_typeoperator() (int row, int col)
 
value_type operator() (int row, int col) const
 
TemplateMatrixoperator= (const TemplateMatrix &rhs)
 
void set (const TemplateMatrix &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::TemplateMatrix< 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

◆ TemplateMatrix()

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

◆ ~TemplateMatrix()

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

Member Function Documentation

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

◆ operator=()

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ ptr() [1/2]

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

◆ ptr() [2/2]

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

◆ reset()

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

◆ set() [1/2]

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

◆ set() [2/2]

template<typename T, unsigned int RowN, unsigned int ColN>
void osg::TemplateMatrix< 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::TemplateMatrix< T, RowN, ColN >::_mat[row_count][col_count]
protected

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