OpenWalnut
1.4.0
|
Test class for WTensorBase. More...
#include <WTensorBase_test.h>
Public Member Functions | |
void | testTensorBaseConstructor () |
The standard constructor should allocate enough memory and set all elements to zero. | |
void | testWTensorBaseCopyConstructor () |
The copy constructor should copy all values. | |
void | testWTensorBaseCopyOperatorSimple () |
Test the copy operator. | |
void | testWTensorBaseCopyOperatorSelfCopy () |
Test if the copy operator handles assignments of variables to themselves correctly. | |
void | testWTensorBaseArrayAccessErrorConditions () |
Test if the access operator correctly throws Exceptions only when the input indices are invalid. | |
void | testWTensorBaseArrayAccess () |
Test if the array access operator returns the correct elements. | |
void | testWTensorBaseVectorAccess () |
Test the std::vector version of operator [] for correct handling of various input vector sizes. | |
void | testWTensorBaseCompareOperator () |
Test if operator == works correctly. | |
void | testWTensorBaseCompareOperator2 () |
Test if operator != works correctly. |
Test class for WTensorBase.
Definition at line 50 of file WTensorBase_test.h.
void WTensorBaseTest::testTensorBaseConstructor | ( | ) | [inline] |
The standard constructor should allocate enough memory and set all elements to zero.
Definition at line 59 of file WTensorBase_test.h.
void WTensorBaseTest::testWTensorBaseArrayAccess | ( | ) | [inline] |
Test if the array access operator returns the correct elements.
Definition at line 523 of file WTensorBase_test.h.
References WTensorBase< order, dim, Data_T >::m_data.
void WTensorBaseTest::testWTensorBaseArrayAccessErrorConditions | ( | ) | [inline] |
Test if the access operator correctly throws Exceptions only when the input indices are invalid.
Definition at line 378 of file WTensorBase_test.h.
void WTensorBaseTest::testWTensorBaseCompareOperator | ( | ) | [inline] |
Test if operator == works correctly.
Definition at line 756 of file WTensorBase_test.h.
void WTensorBaseTest::testWTensorBaseCompareOperator2 | ( | ) | [inline] |
Test if operator != works correctly.
Definition at line 902 of file WTensorBase_test.h.
void WTensorBaseTest::testWTensorBaseCopyConstructor | ( | ) | [inline] |
The copy constructor should copy all values.
Definition at line 120 of file WTensorBase_test.h.
References WTensorBase< order, dim, Data_T >::m_data.
void WTensorBaseTest::testWTensorBaseCopyOperatorSelfCopy | ( | ) | [inline] |
Test if the copy operator handles assignments of variables to themselves correctly.
Definition at line 334 of file WTensorBase_test.h.
References WTensorBase< order, dim, Data_T >::m_data.
void WTensorBaseTest::testWTensorBaseCopyOperatorSimple | ( | ) | [inline] |
Test the copy operator.
Definition at line 212 of file WTensorBase_test.h.
References WTensorBase< order, dim, Data_T >::m_data.
void WTensorBaseTest::testWTensorBaseVectorAccess | ( | ) | [inline] |
Test the std::vector version of operator [] for correct handling of various input vector sizes.
Definition at line 640 of file WTensorBase_test.h.