Skip to content

Commit

Permalink
Merge pull request #2125 from elBoberido/iox-1815-remove-determinism-…
Browse files Browse the repository at this point in the history
…annotation

iox-#1815 Remove 'deterministic' tags
  • Loading branch information
elBoberido authored Dec 5, 2023
2 parents 88a96c8 + 6920022 commit efe0200
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 171 deletions.
114 changes: 0 additions & 114 deletions doc/design/determinism.md

This file was deleted.

16 changes: 0 additions & 16 deletions iceoryx_hoofs/buffer/include/iox/stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,47 +42,31 @@ class stack final // NOLINT(cppcoreguidelines-pro-type-member-init, hicpp-member
public:
static_assert(is_storable_in_iox_stack_t<T>::value, "T has to be move constructible");

/// @deterministic
stack() noexcept = default;

/// @deterministic
stack(const stack& rhs) noexcept;

/// @deterministic
stack(stack&& rhs) noexcept;

/// @deterministic
stack& operator=(const stack& rhs) noexcept;

/// @deterministic
stack& operator=(stack&& rhs) noexcept;

/// @deterministic
~stack() noexcept;

/// @brief returns the last pushed element when the stack contains elements
/// otherwise a nullopt
/// @deterministic
optional<T> pop() noexcept;

/// @brief pushed an element into the stack by forwarding all arguments
/// to the constructor of T
/// @param[in] args arguments which will be perfectly forwarded to the constructor of T
/// @return true if the push was successful, otherwise false
/// @deterministic
template <typename... Targs>
bool push(Targs&&... args) noexcept;

/// @brief calls the destructor of all contained elements in reverse creation order and empties the stack
/// @deterministic
void clear() noexcept;

/// @brief returns the stack size
/// @deterministic
uint64_t size() const noexcept;

/// @brief returns the stack capacity
/// @deterministic
static constexpr uint64_t capacity() noexcept;

private:
Expand Down
8 changes: 0 additions & 8 deletions iceoryx_hoofs/container/include/iox/uninitialized_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class UninitializedArray final
using iterator = ElementType*;
using const_iterator = const ElementType*;

/// @deterministic
// The (empty) user-defined constructor is required.
// Use of "= default" leads to value-initialization of class members.
// AXIVION Next Construct AutosarC++19_03-A12.6.1 : This is a low-level building block which is supposed to provide uninitialized memory
Expand All @@ -99,34 +98,27 @@ class UninitializedArray final
/// @param[in] index position of the element to return
/// @return reference to the element
/// @note out of bounds access leads to undefined behavior
/// @deterministic
constexpr ElementType& operator[](const uint64_t index) noexcept;

/// @brief returns a const reference to the element stored at index
/// @param[in] index position of the element to return
/// @return const reference to the element
/// @note out of bounds access leads to undefined behavior
/// @deterministic
constexpr const ElementType& operator[](const uint64_t index) const noexcept;

/// @brief returns an iterator to the beginning of the UninitializedArray
/// @deterministic
iterator begin() noexcept;

/// @brief returns a const iterator to the beginning of the UninitializedArray
/// @deterministic
const_iterator begin() const noexcept;

/// @brief returns an iterator to the end of the UninitializedArray
/// @deterministic
iterator end() noexcept;

/// @brief returns a const iterator to the end of the UninitializedArray
/// @deterministic
const_iterator end() const noexcept;

/// @brief returns the array capacity
/// @deterministic
static constexpr uint64_t capacity() noexcept;

private:
Expand Down
Loading

0 comments on commit efe0200

Please sign in to comment.