Skip to content

Commit d571822

Browse files
committed
curve: Refactor and move curve containers to subfolder.
1 parent ad747a6 commit d571822

21 files changed

Lines changed: 46 additions & 44 deletions

libopenage/curve/CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
add_sources(libopenage
2-
array.cpp
32
base_curve.cpp
43
continuous.cpp
54
discrete.cpp
65
discrete_mod.cpp
7-
element_wrapper.cpp
86
interpolated.cpp
9-
iterator.cpp
107
keyframe.cpp
118
keyframe_container.cpp
12-
map.cpp
13-
map_filter_iterator.cpp
14-
queue.cpp
15-
queue_filter_iterator.cpp
169
segmented.cpp
1710
)
1811

12+
add_subdirectory("container")
1913
add_subdirectory("tests")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
add_sources(libopenage
2+
array.cpp
3+
element_wrapper.cpp
4+
iterator.cpp
5+
map.cpp
6+
map_filter_iterator.cpp
7+
queue.cpp
8+
queue_filter_iterator.cpp
9+
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024-2024 the openage authors. See copying.md for legal info.
1+
// Copyright 2024-2025 the openage authors. See copying.md for legal info.
22

33

44
#include "array.h"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <array>
66

7-
#include "curve/iterator.h"
7+
#include "curve/container/iterator.h"
88
#include "curve/keyframe_container.h"
99
#include "event/evententity.h"
1010

libopenage/curve/element_wrapper.cpp renamed to libopenage/curve/container/element_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024-2024 the openage authors. See copying.md for legal info.
1+
// Copyright 2024-2025 the openage authors. See copying.md for legal info.
22

33
#include "element_wrapper.h"
44

libopenage/curve/element_wrapper.h renamed to libopenage/curve/container/element_wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024-2024 the openage authors. See copying.md for legal info.
1+
// Copyright 2024-2025 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017-2018 the openage authors. See copying.md for legal info.
1+
// Copyright 2017-2025 the openage authors. See copying.md for legal info.
22

33
#include "iterator.h"
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017-2024 the openage authors. See copying.md for legal info.
1+
// Copyright 2017-2025 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017-2018 the openage authors. See copying.md for legal info.
1+
// Copyright 2017-2025 the openage authors. See copying.md for legal info.
22

33
#include "map.h"
44

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017-2024 the openage authors. See copying.md for legal info.
1+
// Copyright 2017-2025 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

@@ -7,8 +7,8 @@
77
#include <unordered_map>
88
#include <utility>
99

10-
#include "curve/map_filter_iterator.h"
11-
#include "curve/element_wrapper.h"
10+
#include "curve/container/element_wrapper.h"
11+
#include "curve/container/map_filter_iterator.h"
1212
#include "time/time.h"
1313
#include "util/fixed_point.h"
1414

@@ -21,7 +21,6 @@ namespace openage::curve {
2121
*/
2222
template <typename key_t, typename val_t>
2323
class UnorderedMap {
24-
2524
/**
2625
* Data holder. Maps keys to map elements.
2726
* Map elements themselves store when they are valid.

0 commit comments

Comments
 (0)