OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
WFlagTest Class Reference

Test WFlag. More...

#include <WFlag_test.h>

+ Inheritance diagram for WFlagTest:
+ Collaboration diagram for WFlagTest:

Public Member Functions

void setTemporary ()
 Helper function which simply sets the value above to true. More...
 
void testInstantiation (void)
 An instantiation should never throw an exception, as well as tear down. More...
 
void testWaitNotify ()
 Test whether notification is working. More...
 
void testChangeCondition ()
 Test whether change condition is fired. More...
 
void testChangeFlagAndReset ()
 Test whether change flag is set and reset. More...
 
void testCopyConstruction ()
 Test whether copy construction/cloning is working. More...
 

Public Attributes

bool m_testTemporary
 A temporary holder for some value. More...
 

Detailed Description

Test WFlag.

Definition at line 75 of file WFlag_test.h.

Member Function Documentation

◆ setTemporary()

void WFlagTest::setTemporary ( )
inline

Helper function which simply sets the value above to true.

It is used to test some conditions here.

Definition at line 86 of file WFlag_test.h.

References m_testTemporary.

Referenced by testChangeCondition().

+ Here is the caller graph for this function:

◆ testChangeCondition()

void WFlagTest::testChangeCondition ( )
inline

Test whether change condition is fired.

Definition at line 130 of file WFlag_test.h.

References WFlag< T >::get(), m_testTemporary, WFlag< T >::set(), setTemporary(), and WCondition::subscribeSignal().

+ Here is the call graph for this function:

◆ testChangeFlagAndReset()

void WFlagTest::testChangeFlagAndReset ( )
inline

Test whether change flag is set and reset.

Definition at line 162 of file WFlag_test.h.

References WFlag< T >::changed(), and WFlag< T >::get().

+ Here is the call graph for this function:

◆ testCopyConstruction()

void WFlagTest::testCopyConstruction ( )
inline

Test whether copy construction/cloning is working.

Definition at line 185 of file WFlag_test.h.

References WFlag< T >::changed(), WFlag< T >::get(), WFlag< T >::getCondition(), WFlag< T >::getValueChangeCondition(), and WFlag< T >::set().

+ Here is the call graph for this function:

◆ testInstantiation()

void WFlagTest::testInstantiation ( void  )
inline

An instantiation should never throw an exception, as well as tear down.

Definition at line 94 of file WFlag_test.h.

◆ testWaitNotify()

void WFlagTest::testWaitNotify ( )
inline

Test whether notification is working.

Definition at line 105 of file WFlag_test.h.

References Callable::finished, Callable::flag, and Callable::threadMain().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_testTemporary

bool WFlagTest::m_testTemporary

A temporary holder for some value.

Definition at line 81 of file WFlag_test.h.

Referenced by setTemporary(), and testChangeCondition().


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