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

Stack of framework commands. More...

#include <commandstack.h>

Classes

struct  Impl
 

Public Member Functions

 CommandStack (const CommandStack &)=delete
 
CommandStackoperator= (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...
 

Detailed Description

Stack of framework commands.

Definition at line 30 of file commandstack.h.

Constructor & Destructor Documentation

◆ CommandStack() [1/2]

OTest2::CommandStack::CommandStack ( const CommandStack )
delete

◆ CommandStack() [2/2]

OTest2::CommandStack::CommandStack ( )

Ctor.

Definition at line 58 of file commandstack.cpp.

◆ ~CommandStack()

OTest2::CommandStack::~CommandStack ( )

Dtor.

Definition at line 63 of file commandstack.cpp.

Member Function Documentation

◆ empty()

bool OTest2::CommandStack::empty ( ) const

Check whether the stack is empty.

Definition at line 90 of file commandstack.cpp.

◆ operator=()

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

◆ popCommand()

void OTest2::CommandStack::popCommand ( )

Pop a command from the top of the stack.

Definition at line 85 of file commandstack.cpp.

◆ pushCommand()

void OTest2::CommandStack::pushCommand ( CommandPtr  command_)

Push a command into the stack.

Parameters
command_The command

Definition at line 67 of file commandstack.cpp.

◆ replaceCommand()

void OTest2::CommandStack::replaceCommand ( CommandPtr  command_)

Replace a command at the top of the stack.

Parameters
command_The new command

Definition at line 73 of file commandstack.cpp.

◆ topCommand()

CommandPtr OTest2::CommandStack::topCommand ( ) const

Get the top command.

Returns
The command

Definition at line 80 of file commandstack.cpp.


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