OTest2
A C++ testing framework
|
Generic repeater interface. More...
#include <repeater.h>
Public Member Functions | |
Repeater (const Repeater &)=delete | |
Repeater & | operator= (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... | |
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.
|
delete |
OTest2::Repeater::Repeater | ( | ) |
Ctor.
Definition at line 24 of file repeater.cpp.
|
virtual |
Dtor.
Definition at line 28 of file repeater.cpp.
|
pure virtualnoexcept |
Check whether there is a next run prepared.
context_ | OTest2 context |
Implemented in OTest2::RepeaterValue< Value_ >.