|
OTest2
A C++ testing framework
|
Semantic stack. More...
#include <semanticstack.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| SemanticStack (const SemanticStack &)=delete | |
| SemanticStack & | operator= (const SemanticStack &)=delete |
| SemanticStack () | |
| Ctor. More... | |
| ~SemanticStack () | |
| Dtor. More... | |
| void | push (bool value_) |
| Push a value. More... | |
| bool | top () const |
| Get top value. More... | |
| void | setTop (bool value_) |
| Set top value. More... | |
| void | pop () |
| Pop top value. More... | |
| void | popAnd () |
| AND last two values and replace them by the result. More... | |
| bool | isFinished () const |
| Returns true if just one value is in the stack (result of the entire test). More... | |
Semantic stack.
This is a stack of return values. The stack is used to return values from cases and suites.
Definition at line 31 of file semanticstack.h.
|
delete |
| OTest2::SemanticStack::SemanticStack | ( | ) |
Ctor.
Definition at line 56 of file semanticstack.cpp.
| OTest2::SemanticStack::~SemanticStack | ( | ) |
Dtor.
Definition at line 61 of file semanticstack.cpp.
| bool OTest2::SemanticStack::isFinished | ( | ) | const |
Returns true if just one value is in the stack (result of the entire test).
Definition at line 93 of file semanticstack.cpp.
|
delete |
| void OTest2::SemanticStack::pop | ( | ) |
Pop top value.
Definition at line 81 of file semanticstack.cpp.
| void OTest2::SemanticStack::popAnd | ( | ) |
AND last two values and replace them by the result.
Definition at line 86 of file semanticstack.cpp.
| void OTest2::SemanticStack::push | ( | bool | value_ | ) |
Push a value.
Definition at line 65 of file semanticstack.cpp.
| void OTest2::SemanticStack::setTop | ( | bool | value_ | ) |
Set top value.
Definition at line 75 of file semanticstack.cpp.
| bool OTest2::SemanticStack::top | ( | ) | const |
Get top value.
Definition at line 70 of file semanticstack.cpp.
1.8.17