OTest2
A C++ testing framework
Public Member Functions | List of all members
OTest2::Repeater Class Referenceabstract

Generic repeater interface. More...

#include <repeater.h>

Inheritance diagram for OTest2::Repeater:
Inheritance graph
[legend]

Public Member Functions

 Repeater (const Repeater &)=delete
 
Repeateroperator= (const Repeater &)=delete
 
 Repeater ()
 Ctor. More...
 
virtual ~Repeater ()
 Dtor. More...
 
virtual bool hasNextRun (const Context &context_) const noexcept=0
 Check whether there is a next run prepared. More...
 

Detailed Description

Generic repeater interface.

This class is used as a parent of user data controlling repeating of the test object.

The repeater interface has just a boolean getter checking whether next run is prepared.

The actual implementation must implement a static method:

static std::shared_ptr<ActuralRepeaterClass> createNext(
    const Context& context_,
    std::shared_ptr<ActuralRepeaterClass> current_,
    ... other parameters ...);

The method returns new or recycled instance of the repeater object or null pointer if there is no next expected run.

Definition at line 48 of file repeater.h.

Constructor & Destructor Documentation

◆ Repeater() [1/2]

OTest2::Repeater::Repeater ( const Repeater )
delete

◆ Repeater() [2/2]

OTest2::Repeater::Repeater ( )

Ctor.

Definition at line 24 of file repeater.cpp.

◆ ~Repeater()

OTest2::Repeater::~Repeater ( )
virtual

Dtor.

Definition at line 28 of file repeater.cpp.

Member Function Documentation

◆ hasNextRun()

virtual bool OTest2::Repeater::hasNextRun ( const Context context_) const
pure virtualnoexcept

Check whether there is a next run prepared.

Parameters
context_OTest2 context
Returns
true if there is next run

Implemented in OTest2::RepeaterValue< Value_ >.

◆ operator=()

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

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