![]() |
OpenWalnut
1.5.0dev
|
#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... | |
Test WFlag.
Definition at line 75 of file WFlag_test.h.
|
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:
|
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:
|
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:
|
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:
|
inline |
An instantiation should never throw an exception, as well as tear down.
Definition at line 94 of file WFlag_test.h.
|
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:| bool WFlagTest::m_testTemporary |
A temporary holder for some value.
Definition at line 81 of file WFlag_test.h.
Referenced by setTemporary(), and testChangeCondition().