From 045cfe28fe8960808c39d008fb1fd03f1a9c910b Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Thu, 28 Nov 2013 15:45:09 +0100 Subject: [PATCH] Renamed Utilities-InlineImpl.h to Utilities-Impl.h Implied that only Inlines were implemented there. Contains template implementations as well. --- .../{Utilities-InlineImpl.h => Utilities-Impl.h} | 0 Code/Misc/Utilities.h | 12 +++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) rename Code/Misc/{Utilities-InlineImpl.h => Utilities-Impl.h} (100%) diff --git a/Code/Misc/Utilities-InlineImpl.h b/Code/Misc/Utilities-Impl.h similarity index 100% rename from Code/Misc/Utilities-InlineImpl.h rename to Code/Misc/Utilities-Impl.h diff --git a/Code/Misc/Utilities.h b/Code/Misc/Utilities.h index 2294918e..cdceb894 100644 --- a/Code/Misc/Utilities.h +++ b/Code/Misc/Utilities.h @@ -27,6 +27,9 @@ namespace Utility template struct UniquePointer { public: + //! Creates an empty UniquePointer. + //UniquePointer(); + //! Assigns assignedInstance ownership to this UniquePonter, old owned instance will be deleted. //! If NULL is assigned is equivalent with clearing all responsibilities from this UniquePointer. UniquePointer( Type *assignedInstance = NULL ); @@ -40,7 +43,7 @@ namespace Utility //! Assigns assignedInstance ownership to this UniquePonter, old owned instance will be deleted. //! If NULL is assigned is equivalent with clearing all responsibilities from this UniquePointer. - UniquePointer & operator = ( Type *assignedInstance ); + UniquePointer & operator = ( Type *assignedInstance ); // potential ambiguous //! Transfers assignedInstance ownership from donor to this UniquePonter, old owned instance will be deleted. //! If donor had nothing, is equivalent with clearing all responsibilities from this UniquePointer. @@ -81,6 +84,9 @@ namespace Utility struct UniqueArray { //! Wrapper to safely transfer dynamic ownership/responsibility public: + //! Creates an empty UniqueArray. + //UniqueArray(); + //! Assigns assignedInstance ownership to this UniquePonter, old owned array will be deleted. //! If NULL is assigned is equivalent with clearing all responsibilities from this UniqueArray. UniqueArray( Type assignedArray[] = NULL ); @@ -94,7 +100,7 @@ namespace Utility //! Assigns assignedInstance ownership to this UniquePonter, old owned array will be deleted. //! If NULL is assigned is equivalent with clearing all responsibilities from this UniqueArray. - UniqueArray & operator = ( Type assignedArray[] ); + UniqueArray & operator = ( Type assignedArray[] ); // potential ambiguous //! Transfers assignedInstance ownership from donor to this UniquePonter, old owned array will be deleted. //! If donor had nothing, is equivalent with clearing all responsibilities from this UniqueArray. @@ -331,6 +337,6 @@ namespace Utility } } -#include "Utilities-InlineImpl.h" +#include "Utilities-Impl.h" #endif \ No newline at end of file