8#ifndef META_OCEAN_TEST_TESTBASE_TEST_MOVE_BEHAVIOR_H
9#define META_OCEAN_TEST_TESTBASE_TEST_MOVE_BEHAVIOR_H
This class implements a recursive lock object.
Definition Lock.h:31
NonExceptObject & operator=(NonExceptObject &&object) noexcept
Move constructor.
NonExceptObject & operator=(const NonExceptObject &object)
Copy constructor.
NonExceptObject(NonExceptObject &&object) noexcept
Move constructor.
int member_
The member of this object;.
Definition TestMoveBehavior.h:203
NonExceptObject(const int member)
Crates a new object.
NonExceptObject(const NonExceptObject &object)
Copy constructor.
int member_
The member of this object;.
Definition TestMoveBehavior.h:158
Object(const int member)
Crates a new object.
Object & operator=(const Object &object)
Copy constructor.
Object(Object &&object)
Move constructor.
Object(const Object &object)
Copy constructor.
Object & operator=(Object &&object)
Move constructor.
OperationCounter()
Default conststructor.
size_t assignOperator_
The assignOperator counter.
Definition TestMoveBehavior.h:107
size_t copyConstructor() const
Returns the copyConstructor counter.
void increment(const bool constructor, const bool copyConstructor, const bool moveConstructor, const bool assignOperator, const bool moveOperator)
Increments individual operation counters.
size_t copyConstructor_
The copyConstructor counter.
Definition TestMoveBehavior.h:101
size_t assignOperator() const
Returns the assignOperator counter.
Lock lock_
The lock object.
Definition TestMoveBehavior.h:113
size_t constructor_
The constructor counter.
Definition TestMoveBehavior.h:98
size_t moveOperator_
The moveOperator counter.
Definition TestMoveBehavior.h:110
void reset()
Resets all counters.
size_t constructor() const
Returns the constructor counter.
size_t moveConstructor_
The moveConstructor counter.
Definition TestMoveBehavior.h:104
size_t moveConstructor() const
Returns the moveConstructor counter.
size_t moveOperator() const
Returns the moveOperator counter.
This class tests the move behavior of the underlying C++ std implementation.
Definition TestMoveBehavior.h:31
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Tests all lock functions.
std::vector< NonExceptObject > NonExceptObjects
Definition of a vector holding objects.
Definition TestMoveBehavior.h:214
static bool testNonExceptObject(const double testDuration)
Tests the behavior for the object with nonexcept keyword.
std::vector< Object > Objects
Definition of a vector holding objects.
Definition TestMoveBehavior.h:209
static bool testDefaultObject(const double testDuration)
Tests the behavior for the default object.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
Namespace of the Base Test library.
Definition TestBase.h:22
Namespace of the Test library.
Definition LineDetectorHough.h:28
The namespace covering the entire Ocean framework.
Definition Accessor.h:15