Skip to content

Commit c40622a

Browse files
author
nitrocaster
committed
Remove excess AStar/Dijkstra template parameters.
1 parent 476f078 commit c40622a

File tree

4 files changed

+5
-177
lines changed

4 files changed

+5
-177
lines changed

src/xrAICore/Navigation/a_star.h

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -46,46 +46,6 @@ template <
4646
bool euclidian_heuristics = true,
4747
typename _data_storage_base = CVertexPath<euclidian_heuristics>,
4848
template <typename _T> class _vertex = CEmptyClassTemplate,
49-
template <
50-
typename _1,
51-
typename _2
52-
>
53-
class _builder_allocator_constructor = CBuilderAllocatorConstructor,
54-
template <
55-
typename _1,
56-
typename _2,
57-
typename _3,
58-
template <
59-
typename _1,
60-
typename _2
61-
>
62-
class _4
63-
>
64-
class _manager_builder_allocator_constructor = CManagerBuilderAllocatorConstructor,
65-
template <
66-
typename _algorithm,
67-
typename _manager,
68-
typename _builder,
69-
typename _allocator,
70-
template <typename _T> class _vertex,
71-
template <
72-
typename _1,
73-
typename _2
74-
>
75-
class _builder_allocator_constructor = CBuilderAllocatorConstructor,
76-
template <
77-
typename _1,
78-
typename _2,
79-
typename _3,
80-
template <
81-
typename _1,
82-
typename _2
83-
>
84-
class _4
85-
>
86-
class _manager_builder_allocator_constructor = CManagerBuilderAllocatorConstructor
87-
>
88-
class _data_storage_constructor = CDataStorageConstructor,
8949
typename _iteration_type = u32
9050
> class CAStar : public CDijkstra <
9151
_dist_type,
@@ -95,9 +55,6 @@ template <
9555
euclidian_heuristics,
9656
_data_storage_base,
9757
AStar::_Vertex<_dist_type,_vertex>::_vertex,
98-
_builder_allocator_constructor,
99-
_manager_builder_allocator_constructor,
100-
_data_storage_constructor,
10158
_iteration_type
10259
>
10360
{
@@ -110,9 +67,6 @@ template <
11067
euclidian_heuristics,
11168
_data_storage_base,
11269
AStar::_Vertex<_dist_type,_vertex>::_vertex,
113-
_builder_allocator_constructor,
114-
_manager_builder_allocator_constructor,
115-
_data_storage_constructor,
11670
_iteration_type
11771
> inherited;
11872
typedef typename CDataStorage::CGraphVertex CGraphVertex;

src/xrAICore/Navigation/a_star_inline.h

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,46 +17,6 @@
1717
bool euclidian_heuristics,\
1818
typename _data_storage_base,\
1919
template <typename _T> class _vertex,\
20-
template <\
21-
typename _1,\
22-
typename _2\
23-
>\
24-
class _builder_allocator_constructor,\
25-
template <\
26-
typename _1,\
27-
typename _2,\
28-
typename _3,\
29-
template <\
30-
typename _1,\
31-
typename _2\
32-
>\
33-
class _4\
34-
>\
35-
class _manager_builder_allocator_constructor,\
36-
template <\
37-
typename _algorithm,\
38-
typename _manager,\
39-
typename _builder,\
40-
typename _allocator,\
41-
template <typename _T> class _vertex,\
42-
template <\
43-
typename _1,\
44-
typename _2\
45-
>\
46-
class _builder_allocator_constructor,\
47-
template <\
48-
typename _1,\
49-
typename _2,\
50-
typename _3,\
51-
template <\
52-
typename _1,\
53-
typename _2\
54-
>\
55-
class _4\
56-
>\
57-
class _manager_builder_allocator_constructor\
58-
>\
59-
class _data_storage_constructor,\
6020
typename _iteration_type\
6121
>
6222

@@ -68,9 +28,6 @@
6828
euclidian_heuristics,\
6929
_data_storage_base,\
7030
_vertex,\
71-
_builder_allocator_constructor,\
72-
_manager_builder_allocator_constructor,\
73-
_data_storage_constructor,\
7431
_iteration_type\
7532
>
7633

src/xrAICore/Navigation/dijkstra.h

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -19,46 +19,6 @@ template <
1919
bool euclidian_heuristics = true,
2020
typename _data_storage_base = CVertexPath<euclidian_heuristics>,
2121
template <typename _T> class _vertex = CEmptyClassTemplate,
22-
template <
23-
typename _1,
24-
typename _2
25-
>
26-
class _builder_allocator_constructor = CBuilderAllocatorConstructor,
27-
template <
28-
typename _1,
29-
typename _2,
30-
typename _3,
31-
template <
32-
typename _1,
33-
typename _2
34-
>
35-
class _4
36-
>
37-
class _manager_builder_allocator_constructor = CManagerBuilderAllocatorConstructor,
38-
template <
39-
typename _algorithm,
40-
typename _manager,
41-
typename _builder,
42-
typename _allocator,
43-
template <typename _T> class _vertex,
44-
template <
45-
typename _1,
46-
typename _2
47-
>
48-
class _builder_allocator_constructor = CBuilderAllocatorConstructor,
49-
template <
50-
typename _1,
51-
typename _2,
52-
typename _3,
53-
template <
54-
typename _1,
55-
typename _2
56-
>
57-
class _4
58-
>
59-
class _manager_builder_allocator_constructor = CManagerBuilderAllocatorConstructor
60-
>
61-
class _data_storage_constructor = CDataStorageConstructor,
6222
typename _iteration_type = u32
6323
> class CDijkstra
6424
{
@@ -87,15 +47,15 @@ template <
8747
};
8848

8949

90-
typedef _data_storage_constructor<
50+
typedef CDataStorageConstructor<
9151
_priority_queue,
9252
_vertex_manager,
9353
_data_storage_base,
9454
_vertex_allocator,
9555
_Vertex,
96-
_builder_allocator_constructor,
97-
_manager_builder_allocator_constructor
98-
> CDataStorage;
56+
CBuilderAllocatorConstructor,
57+
CManagerBuilderAllocatorConstructor
58+
> CDataStorage;
9959

10060
protected:
10161
typedef typename CDataStorage::CGraphVertex CGraphVertex;

src/xrAICore/Navigation/dijkstra_inline.h

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -16,47 +16,7 @@
1616
typename _vertex_allocator,\
1717
bool euclidian_heuristics,\
1818
typename _data_storage_base,\
19-
template <typename _T> class _vertex,\
20-
template <\
21-
typename _1,\
22-
typename _2\
23-
>\
24-
class _builder_allocator_constructor,\
25-
template <\
26-
typename _1,\
27-
typename _2,\
28-
typename _3,\
29-
template <\
30-
typename _1,\
31-
typename _2\
32-
>\
33-
class _4\
34-
>\
35-
class _manager_builder_allocator_constructor,\
36-
template <\
37-
typename _algorithm,\
38-
typename _manager,\
39-
typename _builder,\
40-
typename _allocator,\
41-
template <typename _T> class _vertex,\
42-
template <\
43-
typename _1,\
44-
typename _2\
45-
>\
46-
class _builder_allocator_constructor,\
47-
template <\
48-
typename _1,\
49-
typename _2,\
50-
typename _3,\
51-
template <\
52-
typename _1,\
53-
typename _2\
54-
>\
55-
class _4\
56-
>\
57-
class _manager_builder_allocator_constructor\
58-
>\
59-
class _data_storage_constructor,\
19+
template<typename _T> class _vertex,\
6020
typename _iteration_type\
6121
>
6222

@@ -68,9 +28,6 @@
6828
euclidian_heuristics,\
6929
_data_storage_base,\
7030
_vertex,\
71-
_builder_allocator_constructor,\
72-
_manager_builder_allocator_constructor,\
73-
_data_storage_constructor,\
7431
_iteration_type\
7532
>
7633

0 commit comments

Comments
 (0)