8#ifndef META_OCEAN_TEST_TESTBASE_TEST_STACK_HEAP_VECTOR_H
9#define META_OCEAN_TEST_TESTBASE_TEST_STACK_HEAP_VECTOR_H
38 static constexpr size_t moveOffset_ = 1000;
41 static constexpr size_t copyOffset_ = 2000;
74 inline size_t value()
const;
105 static bool test(
const double testDuration);
150 template <
size_t tStackCapacity>
159 template <
size_t tStackCapacity>
168 template <
size_t tStackCapacity>
177 template <
size_t tStackCapacity>
186 template <
size_t tStackCapacity>
198 *
this = std::move(element);
213 if (
this != &element)
215 value_ = element.
value_ + moveOffset_;
216 element.value_ =
size_t(-1);
224 value_ = element.
value_ + copyOffset_;
This class implements a test element allowing to test copy vs.
Definition TestStackHeapVector.h:34
TestElement & operator=(TestElement &&element) noexcept
Move operator.
Definition TestStackHeapVector.h:211
size_t value() const
Returns the value of this element.
Definition TestStackHeapVector.h:206
size_t value_
The value of the element.
Definition TestStackHeapVector.h:95
TestElement()=default
Default constructor.
This class implements tests for StackHeapVector.
Definition TestStackHeapVector.h:27
static bool testPushBack(const double testDuration)
Tests push 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 testPerformance(const double testDuration)
Tests the performance of the stack heap vector.
static bool testConstructor(double testDuration)
Tests the constructor.
static bool testResize(const double testDuration)
Tests resize function.
static bool testAssign(const double testDuration)
Tests the assign function.
static bool testAssign(const double testDuration)
Tests the assign function.
static bool testConstructor(const double testDuration)
Tests the constructor.
static bool test(const double testDuration)
Invokes all tests.
static bool testPushBack(const double testDuration)
Tests push back function.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15