OTest2
A C++ testing framework
|
Stack of framework commands. More...
#include <commandstack.h>
Classes | |
struct | Impl |
Public Member Functions | |
CommandStack (const CommandStack &)=delete | |
CommandStack & | operator= (const CommandStack &)=delete |
CommandStack () | |
Ctor. More... | |
~CommandStack () | |
Dtor. More... | |
void | pushCommand (CommandPtr command_) |
Push a command into the stack. More... | |
void | replaceCommand (CommandPtr command_) |
Replace a command at the top of the stack. More... | |
CommandPtr | topCommand () const |
Get the top command. More... | |
void | popCommand () |
Pop a command from the top of the stack. More... | |
bool | empty () const |
Check whether the stack is empty. More... | |
Stack of framework commands.
Definition at line 30 of file commandstack.h.
|
delete |
OTest2::CommandStack::CommandStack | ( | ) |
Ctor.
Definition at line 58 of file commandstack.cpp.
OTest2::CommandStack::~CommandStack | ( | ) |
Dtor.
Definition at line 63 of file commandstack.cpp.
bool OTest2::CommandStack::empty | ( | ) | const |
Check whether the stack is empty.
Definition at line 90 of file commandstack.cpp.
|
delete |
void OTest2::CommandStack::popCommand | ( | ) |
Pop a command from the top of the stack.
Definition at line 85 of file commandstack.cpp.
void OTest2::CommandStack::pushCommand | ( | CommandPtr | command_ | ) |
Push a command into the stack.
command_ | The command |
Definition at line 67 of file commandstack.cpp.
void OTest2::CommandStack::replaceCommand | ( | CommandPtr | command_ | ) |
Replace a command at the top of the stack.
command_ | The new command |
Definition at line 73 of file commandstack.cpp.
CommandPtr OTest2::CommandStack::topCommand | ( | ) | const |