OpenWalnut  1.4.0
Public Member Functions
WTensorBaseSymTest Class Reference

Test class for WTensorBaseSym. More...

#include <WTensorBase_test.h>

+ Inheritance diagram for WTensorBaseSymTest:

List of all members.

Public Member Functions

void testTensorBaseSymConstructor ()
 The standard constructor should allocate enough memory and set all elements to zero.
void testWTensorBaseSymCopyConstructor ()
 The copy constructor should copy all values.
void testWTensorBaseSymCopyOperatorSimple ()
 Test the copy operator.
void testWTensorBaseSymCopyOperatorSelfCopy ()
 Test if the copy operator handles assignments of variables to themselves correctly.
void testWTensorBaseSymArrayAccessErrorConditions ()
 Test if the access operator correctly throws Exceptions only when the input indices are invalid.
void testWTensorBaseSymArrayAccess ()
 Test if the array access operator returns the correct elements.
void testWTensorBaseSymAccessOperatorPermutations ()
 Test if operator [] correctly maps permutations of the same set of indices to the same array positions.
void testWTensorBaseSymVectorAccess ()
 Test the std::vector version of operator [] for correct handling of various input vector sizes.
void testWTensorBaseSymCompareOperator ()
 Test if operator == works correctly.
void testWTensorBaseSymCompareOperator2 ()
 Test if operator != works correctly.

Detailed Description

Test class for WTensorBaseSym.

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

Definition at line 985 of file WTensorBase_test.h.


Member Function Documentation

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

Definition at line 991 of file WTensorBase_test.h.

Test if operator [] correctly maps permutations of the same set of indices to the same array positions.

Definition at line 1561 of file WTensorBase_test.h.

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

Test if the array access operator returns the correct elements.

Definition at line 1457 of file WTensorBase_test.h.

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

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

Definition at line 1311 of file WTensorBase_test.h.

Test if operator == works correctly.

Definition at line 1737 of file WTensorBase_test.h.

Test if operator != works correctly.

Definition at line 1875 of file WTensorBase_test.h.

The copy constructor should copy all values.

Definition at line 1053 of file WTensorBase_test.h.

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

Test if the copy operator handles assignments of variables to themselves correctly.

Definition at line 1267 of file WTensorBase_test.h.

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

Test the copy operator.

Definition at line 1168 of file WTensorBase_test.h.

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

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

Definition at line 1632 of file WTensorBase_test.h.


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