Skip to content

Commit

Permalink
Remove excess AStar/Dijkstra template parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Dec 9, 2015
1 parent 476f078 commit c40622a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 177 deletions.
46 changes: 0 additions & 46 deletions src/xrAICore/Navigation/a_star.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,46 +46,6 @@ template <
bool euclidian_heuristics = true,
typename _data_storage_base = CVertexPath<euclidian_heuristics>,
template <typename _T> class _vertex = CEmptyClassTemplate,
template <
typename _1,
typename _2
>
class _builder_allocator_constructor = CBuilderAllocatorConstructor,
template <
typename _1,
typename _2,
typename _3,
template <
typename _1,
typename _2
>
class _4
>
class _manager_builder_allocator_constructor = CManagerBuilderAllocatorConstructor,
template <
typename _algorithm,
typename _manager,
typename _builder,
typename _allocator,
template <typename _T> class _vertex,
template <
typename _1,
typename _2
>
class _builder_allocator_constructor = CBuilderAllocatorConstructor,
template <
typename _1,
typename _2,
typename _3,
template <
typename _1,
typename _2
>
class _4
>
class _manager_builder_allocator_constructor = CManagerBuilderAllocatorConstructor
>
class _data_storage_constructor = CDataStorageConstructor,
typename _iteration_type = u32
> class CAStar : public CDijkstra <
_dist_type,
Expand All @@ -95,9 +55,6 @@ template <
euclidian_heuristics,
_data_storage_base,
AStar::_Vertex<_dist_type,_vertex>::_vertex,
_builder_allocator_constructor,
_manager_builder_allocator_constructor,
_data_storage_constructor,
_iteration_type
>
{
Expand All @@ -110,9 +67,6 @@ template <
euclidian_heuristics,
_data_storage_base,
AStar::_Vertex<_dist_type,_vertex>::_vertex,
_builder_allocator_constructor,
_manager_builder_allocator_constructor,
_data_storage_constructor,
_iteration_type
> inherited;
typedef typename CDataStorage::CGraphVertex CGraphVertex;
Expand Down
43 changes: 0 additions & 43 deletions src/xrAICore/Navigation/a_star_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,46 +17,6 @@
bool euclidian_heuristics,\
typename _data_storage_base,\
template <typename _T> class _vertex,\
template <\
typename _1,\
typename _2\
>\
class _builder_allocator_constructor,\
template <\
typename _1,\
typename _2,\
typename _3,\
template <\
typename _1,\
typename _2\
>\
class _4\
>\
class _manager_builder_allocator_constructor,\
template <\
typename _algorithm,\
typename _manager,\
typename _builder,\
typename _allocator,\
template <typename _T> class _vertex,\
template <\
typename _1,\
typename _2\
>\
class _builder_allocator_constructor,\
template <\
typename _1,\
typename _2,\
typename _3,\
template <\
typename _1,\
typename _2\
>\
class _4\
>\
class _manager_builder_allocator_constructor\
>\
class _data_storage_constructor,\
typename _iteration_type\
>

Expand All @@ -68,9 +28,6 @@
euclidian_heuristics,\
_data_storage_base,\
_vertex,\
_builder_allocator_constructor,\
_manager_builder_allocator_constructor,\
_data_storage_constructor,\
_iteration_type\
>

Expand Down
48 changes: 4 additions & 44 deletions src/xrAICore/Navigation/dijkstra.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,46 +19,6 @@ template <
bool euclidian_heuristics = true,
typename _data_storage_base = CVertexPath<euclidian_heuristics>,
template <typename _T> class _vertex = CEmptyClassTemplate,
template <
typename _1,
typename _2
>
class _builder_allocator_constructor = CBuilderAllocatorConstructor,
template <
typename _1,
typename _2,
typename _3,
template <
typename _1,
typename _2
>
class _4
>
class _manager_builder_allocator_constructor = CManagerBuilderAllocatorConstructor,
template <
typename _algorithm,
typename _manager,
typename _builder,
typename _allocator,
template <typename _T> class _vertex,
template <
typename _1,
typename _2
>
class _builder_allocator_constructor = CBuilderAllocatorConstructor,
template <
typename _1,
typename _2,
typename _3,
template <
typename _1,
typename _2
>
class _4
>
class _manager_builder_allocator_constructor = CManagerBuilderAllocatorConstructor
>
class _data_storage_constructor = CDataStorageConstructor,
typename _iteration_type = u32
> class CDijkstra
{
Expand Down Expand Up @@ -87,15 +47,15 @@ template <
};


typedef _data_storage_constructor<
typedef CDataStorageConstructor<
_priority_queue,
_vertex_manager,
_data_storage_base,
_vertex_allocator,
_Vertex,
_builder_allocator_constructor,
_manager_builder_allocator_constructor
> CDataStorage;
CBuilderAllocatorConstructor,
CManagerBuilderAllocatorConstructor
> CDataStorage;

protected:
typedef typename CDataStorage::CGraphVertex CGraphVertex;
Expand Down
45 changes: 1 addition & 44 deletions src/xrAICore/Navigation/dijkstra_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,7 @@
typename _vertex_allocator,\
bool euclidian_heuristics,\
typename _data_storage_base,\
template <typename _T> class _vertex,\
template <\
typename _1,\
typename _2\
>\
class _builder_allocator_constructor,\
template <\
typename _1,\
typename _2,\
typename _3,\
template <\
typename _1,\
typename _2\
>\
class _4\
>\
class _manager_builder_allocator_constructor,\
template <\
typename _algorithm,\
typename _manager,\
typename _builder,\
typename _allocator,\
template <typename _T> class _vertex,\
template <\
typename _1,\
typename _2\
>\
class _builder_allocator_constructor,\
template <\
typename _1,\
typename _2,\
typename _3,\
template <\
typename _1,\
typename _2\
>\
class _4\
>\
class _manager_builder_allocator_constructor\
>\
class _data_storage_constructor,\
template<typename _T> class _vertex,\
typename _iteration_type\
>

Expand All @@ -68,9 +28,6 @@
euclidian_heuristics,\
_data_storage_base,\
_vertex,\
_builder_allocator_constructor,\
_manager_builder_allocator_constructor,\
_data_storage_constructor,\
_iteration_type\
>

Expand Down

0 comments on commit c40622a

Please sign in to comment.