OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols > Class Template Reference

A class used for a test with different data storage, we use column major order. More...

#include <WMatrixFixed_test.h>

+ Collaboration diagram for WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >:

Public Member Functions

ValueT & operator() (size_t row, size_t col) throw ()
 Returns a reference to the component of an row and column in order to provide access to the component. More...
 
const ValueT & operator() (size_t row, size_t col) const throw ()
 Returns a const reference to the component of an row and column in order to provide access to the component. More...
 
template<typename RHSValueT , ValueStoreTemplate RHSValueStoreT>
ValueStore< ValueT, Rows, Cols > & operator= (RHSValueStoreT< RHSValueT, Rows, Cols > const &rhs)
 Replaces the values in this array. More...
 

Public Attributes

boost::array< ValueT, Rows *Cols > m_values
 The value array. Stored column-major. More...
 

Detailed Description

template<typename ValueT, size_t Rows, size_t Cols>
class WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >

A class used for a test with different data storage, we use column major order.

Definition at line 358 of file WMatrixFixed_test.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename ValueT , size_t Rows, size_t Cols>
ValueT& WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >::operator() ( size_t  row,
size_t  col 
)
throw (
)
inline

Returns a reference to the component of an row and column in order to provide access to the component.

It does not check for validity of the indices.

Parameters
rowthe row, staring with 0
colthe column, starting with 0
Returns
A reference to the component of an row and column.

Definition at line 370 of file WMatrixFixed_test.h.

References WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >::m_values.

◆ operator()() [2/2]

template<typename ValueT , size_t Rows, size_t Cols>
const ValueT& WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >::operator() ( size_t  row,
size_t  col 
) const
throw (
)
inline

Returns a const reference to the component of an row and column in order to provide access to the component.

It does not check for validity of the indices.

Parameters
rowthe row, staring with 0
colthe column, starting with 0
Returns
A const reference to the component of an row and column.

Definition at line 385 of file WMatrixFixed_test.h.

References WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >::m_values.

◆ operator=()

template<typename ValueT , size_t Rows, size_t Cols>
template<typename RHSValueT , ValueStoreTemplate RHSValueStoreT>
ValueStore< ValueT, Rows, Cols >& WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >::operator= ( RHSValueStoreT< RHSValueT, Rows, Cols > const &  rhs)
inline

Replaces the values in this array.

Template Parameters
RHSValueTthe value type. This is casted to ValueT.
RHSValueStoreTThe value store given
Parameters
rhsthe values to set.
Returns
this

Definition at line 400 of file WMatrixFixed_test.h.

Member Data Documentation

◆ m_values

template<typename ValueT , size_t Rows, size_t Cols>
boost::array< ValueT, Rows * Cols > WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >::m_values

The value array. Stored column-major.

Definition at line 413 of file WMatrixFixed_test.h.

Referenced by WMatrixFixedTest::DifferentStorageType< ValueT, Rows, Cols >::operator()().


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