Skip to content

Commit 4d60038

Browse files
author
Julian LALU
committed
Rename array to vector
1 parent 4e4bd55 commit 4d60038

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+12062
-13986
lines changed

.codacy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ engines:
88
duplication:
99
enabled: true
1010
exclude_paths:
11-
- "test/**"
12-
- "src/core/containers/unique_pointer.h" # False positive only
13-
- "src/core/containers/array.h" # False positive only
14-
- "src/core/atomics.h" # False positive only
15-
- "src/core/os_windows/atomics_intel.h" # False positive only
16-
- "src/core/os_linux/atomics.h" # False positive only
17-
- "src/core/containers/optional.h" # False positive only
18-
- "src/core/containers/pair.h" # False positive only
19-
- "src/core/containers/tuple.h" # False positive only
11+
- "test/**"
12+
- "src/core/containers/unique_pointer.h" # False positive only
13+
- "src/core/containers/vector.h" # False positive only
14+
- "src/core/atomics.h" # False positive only
15+
- "src/core/os_windows/atomics_intel.h" # False positive only
16+
- "src/core/os_linux/atomics.h" # False positive only
17+
- "src/core/containers/optional.h" # False positive only
18+
- "src/core/containers/pair.h" # False positive only
19+
- "src/core/containers/tuple.h" # False positive only

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
It provides low-level C++ features that are close to the C++ STL implementation:
3434

35-
- **Containers:** array (std::vector), pair, tuple, optional, shared_pointer, unique_pointer, etc.
35+
- **Containers:** vector, pair, tuple, optional, shared_pointer, unique_pointer, etc.
3636
- **Debugging features:** conditional break, debugger attached checker, call stacks, etc.
3737
- **Memory:** dynamic allocations, slicing, constexpr allocations/constructions/destructions, etc.
3838
- **Strings:** UTF-8 strings, ASCII strings, platform-specific strings, etc.
Lines changed: 274 additions & 334 deletions
Large diffs are not rendered by default.

interface/core/iterators/random_access_iterator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace hud
2828

2929
/**
3030
* Forward declaration of random access iterator on container
31-
* Specialize for differente random accessible container types like array, c style array etc...
31+
* Specialize for differente random accessible container types like vector, c style array etc...
3232
*/
3333
template<typename type_t>
3434
requires(hud::is_pointer_v<type_t> || hud::is_bounded_array_v<type_t>)

interface/core/string.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef HUD_INC_OSLAYER_STRING_H
22
#define HUD_INC_OSLAYER_STRING_H
3-
#include "array.h"
3+
#include "vector.h"
44

55
namespace hud
66
{
@@ -27,7 +27,7 @@ namespace hud
2727

2828
/**
2929
string representation
30-
Internally it's just an array of bytes.
30+
Internally it's just an vector of bytes.
3131
*/
3232
class string
3333
{
@@ -39,7 +39,7 @@ namespace hud
3939
explicit constexpr string() noexcept = default;
4040

4141
private:
42-
array<u8> bytes_array; // array of bytes representing the string
42+
vector<u8> bytes_array; // vector of bytes representing the string
4343
};
4444
} // namespace hud
4545

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set( interface
2222
../interface/core/bits/bits.h
2323
../interface/core/character/character.h
2424
../interface/core/containers/aligned_buffer.h
25-
../interface/core/containers/array.h
25+
../interface/core/containers/vector.h
2626
../interface/core/containers/compressed_pair.h
2727
../interface/core/containers/compressed_tuple.h
2828
../interface/core/containers/hashmap.h

test/CMakeLists.txt

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,34 @@ set( src
44
allocator/aligned_heap_allocator.cpp
55
allocator/allocation.cpp
66
allocator/heap_allocator.cpp
7-
array/array_add.cpp
8-
array/array_assign_copy.cpp
9-
array/array_add_no_construct.cpp
10-
array/array_add_to_ref.cpp
11-
array/array_assignment.cpp
12-
array/array_clear_shrink.cpp
13-
array/array_clear.cpp
14-
array/array_comparison.cpp
15-
array/array_constructors.cpp
16-
array/array_copy_assign_operator.cpp
17-
array/array_copy_constructors.cpp
18-
array/array_destructor.cpp
19-
array/array_emplace_at.cpp
20-
array/array_emplace_at_to_ref.cpp
21-
array/array_emplace_back.cpp
22-
array/array_emplace_back_to_ref.cpp
23-
array/array_iteration.cpp
24-
array/array_misc.cpp
25-
array/array_move_assign_operator.cpp
26-
array/array_move_assign.cpp
27-
array/array_move_constructors.cpp
28-
array/array_remove_at.cpp
29-
array/array_reserve.cpp
30-
array/array_resize.cpp
31-
array/array_find.cpp
32-
array/array_contains.cpp
33-
array/array_shrink_to_fit.cpp
34-
array/array_swap.cpp
7+
vector/vector_add.cpp
8+
vector/vector_assign_copy.cpp
9+
vector/vector_add_no_construct.cpp
10+
vector/vector_add_to_ref.cpp
11+
vector/vector_assignment.cpp
12+
vector/vector_clear_shrink.cpp
13+
vector/vector_clear.cpp
14+
vector/vector_comparison.cpp
15+
vector/vector_constructors.cpp
16+
vector/vector_copy_assign_operator.cpp
17+
vector/vector_copy_constructors.cpp
18+
vector/vector_destructor.cpp
19+
vector/vector_emplace_at.cpp
20+
vector/vector_emplace_at_to_ref.cpp
21+
vector/vector_emplace_back.cpp
22+
vector/vector_emplace_back_to_ref.cpp
23+
vector/vector_iteration.cpp
24+
vector/vector_misc.cpp
25+
vector/vector_move_assign_operator.cpp
26+
vector/vector_move_assign.cpp
27+
vector/vector_move_constructors.cpp
28+
vector/vector_remove_at.cpp
29+
vector/vector_reserve.cpp
30+
vector/vector_resize.cpp
31+
vector/vector_find.cpp
32+
vector/vector_contains.cpp
33+
vector/vector_shrink_to_fit.cpp
34+
vector/vector_swap.cpp
3535
atomic/atomic_add.cpp
3636
atomic/atomic_assign.cpp
3737
atomic/atomic_cast.cpp

test/array/array_clear.cpp

Lines changed: 0 additions & 109 deletions
This file was deleted.

test/array/array_clear_shrink.cpp

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)