Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement uninitialized array #1614

Closed
elfenpiff opened this issue Sep 7, 2022 · 0 comments · Fixed by #1749 or #1774
Closed

implement uninitialized array #1614

elfenpiff opened this issue Sep 7, 2022 · 0 comments · Fixed by #1749 or #1774
Assignees
Labels
enhancement New feature globex good first issue Good for newcomers refactoring Refactor code without adding features
Milestone

Comments

@elfenpiff
Copy link
Contributor

Brief feature description

In containers like the vector, list, optional, string etc. we have a byte array which stores the actual type. This byte array, can be extracted and used in those containers. This would reduce bugs since we may forget to define alignment or size properties correctly.
Furthermore we would get rid of the axivion/clang-tidy exceptions which would lead to more readable and cleaner code.

There is already the Buffer container in iceoryx_hoofs/internal/concurrent/lockfree_queue/buffer.hpp which partly implements what is required.

The container should be moved to cxx/uninitialized_array.hpp and refactored so that it fits the universal requirements to be used in the remaining containers.

Extracted from: #1196

@elfenpiff elfenpiff added enhancement New feature good first issue Good for newcomers refactoring Refactor code without adding features globex labels Sep 7, 2022
@elfenpiff elfenpiff added this to the Medium prio milestone Sep 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 13, 2022
…nitialized_array

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 13, 2022
…nitializedArray

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 13, 2022
…nitializedArray

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 14, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 14, 2022
…urrent

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 14, 2022
…x_wrapper/

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 14, 2022
…x_wrapper/

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 14, 2022
…ressions

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
elfenpiff added a commit to ApexAI/iceoryx that referenced this issue Oct 14, 2022
Signed-off-by: Christian Eltzschig <me@elchris.org>
FerdinandSpitzschnueffler pushed a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
Signed-off-by: Christian Eltzschig <me@elchris.org>
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
…dd documentation

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
…nitialized_array

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
…nitializedArray

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Oct 17, 2022
…urrent

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
…dd documentation

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
Extend documentation, delete copy/move operations, forward to const
overloads, fix end() and tests

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
…tic_assert

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
Use aligned_storage in optional, use char array in posix call, add tests

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
…ss_rights.cpp

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit that referenced this issue Nov 1, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
…amespace iox

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
…amespace iox

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 1, 2022
…amespace iox

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 2, 2022
Move header file to iox folder, remove 's' from buffer and container
modules

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 3, 2022
Replace UninitializedArrays with ElementType char with char
array

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 4, 2022
Refactoring in UninitializedArray, variant and optional. Change gcc
version to 8 for ubuntu build.

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 4, 2022
Refactoring in UninitializedArray, variant and optional. Change gcc
version to 8 for ubuntu build.

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 4, 2022
Refactoring in UninitializedArray, variant and optional. Change gcc
version to 8 for ubuntu build.

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 7, 2022
…ve .data

Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 7, 2022
Signed-off-by: Marika Lehmann <marika.lehmann@apex.ai>
FerdinandSpitzschnueffler added a commit that referenced this issue Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature globex good first issue Good for newcomers refactoring Refactor code without adding features
Projects
None yet
2 participants