From 5c12997ac0434b494f28751790d52c2a805c3e31 Mon Sep 17 00:00:00 2001 From: nitrocaster Date: Thu, 10 Dec 2015 12:04:41 +0300 Subject: [PATCH] Move function implementations to class definitions. --- .../builder_allocator_constructor.h | 20 +++---- .../builder_allocator_constructor_inline.h | 36 ------------- .../Navigation/data_storage_constructor.h | 2 +- .../manager_builder_allocator_constructor.h | 13 ++--- ...ger_builder_allocator_constructor_inline.h | 53 ------------------- src/xrAICore/xrAICore.vcxproj | 2 - src/xrAICore/xrAICore.vcxproj.filters | 6 --- 7 files changed, 19 insertions(+), 113 deletions(-) delete mode 100644 src/xrAICore/Navigation/builder_allocator_constructor_inline.h delete mode 100644 src/xrAICore/Navigation/manager_builder_allocator_constructor_inline.h diff --git a/src/xrAICore/Navigation/builder_allocator_constructor.h b/src/xrAICore/Navigation/builder_allocator_constructor.h index 1b2712cc085..e615bab2024 100644 --- a/src/xrAICore/Navigation/builder_allocator_constructor.h +++ b/src/xrAICore/Navigation/builder_allocator_constructor.h @@ -20,17 +20,19 @@ class BuilderAllocatorDataStorage : public: typedef typename _path_builder::template CDataStorage<_vertex> CDataStorageBase; typedef typename _vertex_allocator::template CDataStorage< - typename _path_builder::template CDataStorage< - _vertex - >::CGraphVertex - > CDataStorageAllocator; + typename _path_builder::template CDataStorage<_vertex>::CGraphVertex> CDataStorageAllocator; typedef typename CDataStorageBase::CGraphVertex CGraphVertex; typedef typename CGraphVertex::_index_type _index_type; public: - IC BuilderAllocatorDataStorage(const u32 vertex_count); - virtual ~BuilderAllocatorDataStorage(); - IC void init (); + BuilderAllocatorDataStorage(const u32 vertex_count) : + CDataStorageBase(vertex_count), + CDataStorageAllocator() + {} + virtual ~BuilderAllocatorDataStorage() {} + void init() + { + CDataStorageBase::init(); + CDataStorageAllocator::init(); + } }; - -#include "xrAICore/Navigation/builder_allocator_constructor_inline.h" \ No newline at end of file diff --git a/src/xrAICore/Navigation/builder_allocator_constructor_inline.h b/src/xrAICore/Navigation/builder_allocator_constructor_inline.h deleted file mode 100644 index 32d54cc1344..00000000000 --- a/src/xrAICore/Navigation/builder_allocator_constructor_inline.h +++ /dev/null @@ -1,36 +0,0 @@ -//////////////////////////////////////////////////////////////////////////// -// Module : builder_allocator_constructor_inline.h -// Created : 21.03.2002 -// Modified : 28.02.2004 -// Author : Dmitriy Iassenev -// Description : Builder allocator constructor inline functions -//////////////////////////////////////////////////////////////////////////// - -#pragma once - -#define TEMPLATE_SPECIALIZATION \ - template