64 [[nodiscard]] std::vector<MathSize>
getValues()
const;
74 [[nodiscard]]
size_t size() const noexcept;
A vector with added thread safety.
Definition SafeVector.h:15
Statistics getStatistics() const
Calculate Statistics for values in this SafeVector.
Definition SafeVector.cpp:57
SafeVector()=default
Construct empty SafeVector.
mutex mutex_
Mutex for parallel access.
Definition SafeVector.h:23
SafeVector & operator=(const SafeVector &rhs) noexcept
Copy assignment operator.
Definition SafeVector.cpp:19
~SafeVector()=default
Destructor.
size_t size() const noexcept
Number of values in the SafeVector.
Definition SafeVector.cpp:61
std::vector< MathSize > values_
Vector of stored values.
Definition SafeVector.h:19
void addValue(MathSize value)
Add a value to the SafeVector.
Definition SafeVector.cpp:47
std::vector< MathSize > getValues() const
Get a vector with the stored values.
Definition SafeVector.cpp:52
Provides statistics calculation for vectors of values.
Definition Statistics.h:125