8#ifndef META_OCEAN_TEST_TESTBASE_TEST_STACK_HEAP_VECTOR_H
9#define META_OCEAN_TEST_TESTBASE_TEST_STACK_HEAP_VECTOR_H
39 static constexpr size_t moveOffset_ = 1000;
42 static constexpr size_t copyOffset_ = 2000;
75 inline size_t value()
const;
250 template <
size_t tStackCapacity>
259 template <
size_t tStackCapacity>
268 template <
size_t tStackCapacity>
277 template <
size_t tStackCapacity>
286 template <
size_t tStackCapacity>
295 template <
size_t tStackCapacity>
304 template <
size_t tStackCapacity>
313 template <
size_t tStackCapacity>
322 template <
size_t tStackCapacity>
331 template <
size_t tStackCapacity>
340 template <
size_t tStackCapacity>
349 template <
size_t tStackCapacity>
358 template <
size_t tStackCapacity>
367 template <
size_t tStackCapacity>
376 template <
size_t tStackCapacity>
385 template <
size_t tStackCapacity>
394 template <
size_t tStackCapacity>
403 template <
size_t tStackCapacity>
412 template <
size_t tStackCapacity>
424 *
this = std::move(element);
439 if (
this != &element)
441 value_ = element.
value_ + moveOffset_;
442 element.value_ =
size_t(-1);
450 value_ = element.
value_ + copyOffset_;
This class implements a test element allowing to test copy vs.
Definition TestStackHeapVector.h:35
TestElement & operator=(TestElement &&element) noexcept
Move operator.
Definition TestStackHeapVector.h:437
size_t value() const
Returns the value of this element.
Definition TestStackHeapVector.h:432
size_t value_
The value of the element.
Definition TestStackHeapVector.h:96
TestElement()=default
Default constructor.
This class implements tests for StackHeapVector.
Definition TestStackHeapVector.h:28
static bool testCopyAssignment(const double testDuration)
Tests the copy assignment operator.
static bool testSizeConstructor(const double testDuration)
Tests the size-only constructor.
static bool testPushBack(const double testDuration)
Tests push back function.
static bool testEmplaceBack(const double testDuration)
Tests emplace back function.
static bool testCopyAssignment(const double testDuration)
Tests the copy assignment operator.
static bool testPopBack(const double testDuration)
Tests pop back function.
static bool testMoveAssignment(const double testDuration)
Tests the move assignment operator.
static bool testEmplaceBack(const double testDuration)
Tests emplace back function.
static bool testPerformance(const double testDuration)
Tests the performance of the stack heap vector.
static bool testResize(const double testDuration)
Tests resize function.
static bool testMoveConstructor(const double testDuration)
Tests the move constructor from another StackHeapVector.
static bool testPerformance(const double testDuration)
Tests the performance of the stack heap vector.
static bool testReserve(const double testDuration)
Tests reserve function.
static bool testSizeConstructor(const double testDuration)
Tests the size-only constructor.
static bool testCopyConstructorFromVector(const double testDuration)
Tests the copy constructor from std::vector.
static bool testMoveConstructorFromVector(const double testDuration)
Tests the move constructor from std::vector.
static bool testCopyConstructorFromVector(const double testDuration)
Tests the copy constructor from std::vector.
static bool testResize(const double testDuration)
Tests resize function.
static bool testDefaultConstructor(const double testDuration)
Tests the default constructor.
static bool testInitializerListConstructor(const double testDuration)
Tests the initializer list constructor.
static bool testDefaultConstructor(const double testDuration)
Tests the default constructor.
static bool testCopyConstructor(const double testDuration)
Tests the copy constructor from another StackHeapVector.
static bool testMoveConstructor(const double testDuration)
Tests the move constructor from another StackHeapVector.
static bool testSizeElementConstructor(const double testDuration)
Tests the size and element constructor.
static bool testAssign(const double testDuration)
Tests the assign function.
static bool testAssign(const double testDuration)
Tests the assign function.
static bool testPopBack(const double testDuration)
Tests pop back function.
static bool testMoveAssignment(const double testDuration)
Tests the move assignment operator.
static bool testEquality(const double testDuration)
Tests the equality operator.
static bool testFrontBack(const double testDuration)
Tests front and back functions.
static bool testCopyConstructor(const double testDuration)
Tests the copy constructor from another StackHeapVector.
static bool testMoveConstructorFromVector(const double testDuration)
Tests the move constructor from std::vector.
static bool testReserve(const double testDuration)
Tests reserve function.
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Invokes all tests.
static bool testEquality(const double testDuration)
Tests the equality operator.
static bool testSizeElementConstructor(const double testDuration)
Tests the size and element constructor.
static bool testInitializerListConstructor(const double testDuration)
Tests the initializer list constructor.
static bool testPushBack(const double testDuration)
Tests push back function.
static bool testFrontBack(const double testDuration)
Tests front and back functions.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
The namespace covering the entire Ocean framework.
Definition Accessor.h:15