OpenWalnut  1.4.0
Public Member Functions
WTensorBaseTest Class Reference

Test class for WTensorBase. More...

#include <WTensorBase_test.h>

+ Inheritance diagram for WTensorBaseTest:

List of all members.

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.

Detailed Description

Test class for WTensorBase.

Notes:
We cannot test invalid template parameters here, as these should lead to compiler errors.

Definition at line 50 of file WTensorBase_test.h.


Member Function Documentation

The standard constructor should allocate enough memory and set all elements to zero.

Definition at line 59 of file WTensorBase_test.h.

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.

Test if the access operator correctly throws Exceptions only when the input indices are invalid.

Definition at line 378 of file WTensorBase_test.h.

Test if operator == works correctly.

Definition at line 756 of file WTensorBase_test.h.

Test if operator != works correctly.

Definition at line 902 of file WTensorBase_test.h.

The copy constructor should copy all values.

Definition at line 120 of file WTensorBase_test.h.

References WTensorBase< order, dim, Data_T >::m_data.

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.

Test the copy operator.

Definition at line 212 of file WTensorBase_test.h.

References WTensorBase< order, dim, Data_T >::m_data.

Test the std::vector version of operator [] for correct handling of various input vector sizes.

Definition at line 640 of file WTensorBase_test.h.


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