OTest2
A C++ testing framework
Classes | Public Member Functions | List of all members
OTest2::SemanticStack Class Reference

Semantic stack. More...

#include <semanticstack.h>

Classes

struct  Impl
 

Public Member Functions

 SemanticStack (const SemanticStack &)=delete
 
SemanticStackoperator= (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SemanticStack() [1/2]

OTest2::SemanticStack::SemanticStack ( const SemanticStack )
delete

◆ SemanticStack() [2/2]

OTest2::SemanticStack::SemanticStack ( )

Ctor.

Definition at line 56 of file semanticstack.cpp.

◆ ~SemanticStack()

OTest2::SemanticStack::~SemanticStack ( )

Dtor.

Definition at line 61 of file semanticstack.cpp.

Member Function Documentation

◆ isFinished()

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.

◆ operator=()

SemanticStack& OTest2::SemanticStack::operator= ( const SemanticStack )
delete

◆ pop()

void OTest2::SemanticStack::pop ( )

Pop top value.

Definition at line 81 of file semanticstack.cpp.

◆ popAnd()

void OTest2::SemanticStack::popAnd ( )

AND last two values and replace them by the result.

Definition at line 86 of file semanticstack.cpp.

◆ push()

void OTest2::SemanticStack::push ( bool  value_)

Push a value.

Definition at line 65 of file semanticstack.cpp.

◆ setTop()

void OTest2::SemanticStack::setTop ( bool  value_)

Set top value.

Definition at line 75 of file semanticstack.cpp.

◆ top()

bool OTest2::SemanticStack::top ( ) const

Get top value.

Definition at line 70 of file semanticstack.cpp.


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