OpenWalnut  1.4.0
Public Member Functions
WValueSetTest Class Reference

UnitTests the WValueSet class. More...

#include <WValueSet_test.h>

+ Inheritance diagram for WValueSetTest:

List of all members.

Public Member Functions

void testInstantiation (void)
 An instantiation should never throw an exception.
void testGetNumberOfValues (void)
 The number of values retrieved is correct.
void testRawSize (void)
 The raw size is the size of the number of integral elements inside this ValueSet.
void testGetScalar (void)
 This function should return the i-th value if the value set is scalar.
void testReadOnlyRawAccess (void)
 Raw Access should provide data access to the underlying array.
void testGetWValue (void)
 This function should return the i-th WValue with of the used dimension (prerequisite the ValueSet has order 1)
void testSubArrayInstantiation ()
 A subarray should never exceed the valuesets boundaries and should not have a length of 0.
void testSubArrayAccess ()
 A subarray should return the correct elements.

Detailed Description

UnitTests the WValueSet class.

Definition at line 39 of file WValueSet_test.h.


Member Function Documentation

void WValueSetTest::testGetNumberOfValues ( void  ) [inline]

The number of values retrieved is correct.

Definition at line 57 of file WValueSet_test.h.

References WValueSet< T >::size().

void WValueSetTest::testGetScalar ( void  ) [inline]

This function should return the i-th value if the value set is scalar.

Definition at line 90 of file WValueSet_test.h.

void WValueSetTest::testGetWValue ( void  ) [inline]

This function should return the i-th WValue with of the used dimension (prerequisite the ValueSet has order 1)

Definition at line 121 of file WValueSet_test.h.

References WValueSet< T >::getWValue(), and WValueSet< T >::size().

void WValueSetTest::testInstantiation ( void  ) [inline]

An instantiation should never throw an exception.

Definition at line 45 of file WValueSet_test.h.

void WValueSetTest::testRawSize ( void  ) [inline]

The raw size is the size of the number of integral elements inside this ValueSet.

Definition at line 75 of file WValueSet_test.h.

References WValueSet< T >::rawSize().

void WValueSetTest::testReadOnlyRawAccess ( void  ) [inline]

Raw Access should provide data access to the underlying array.

Definition at line 106 of file WValueSet_test.h.

References WValueSet< T >::rawData().

A subarray should return the correct elements.

Definition at line 169 of file WValueSet_test.h.

A subarray should never exceed the valuesets boundaries and should not have a length of 0.

Definition at line 152 of file WValueSet_test.h.


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