From 1538a049b8d5480830c1a0edf300406a9f1b9735 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 19 Nov 2024 00:32:32 +0800 Subject: [PATCH] Added Iterator in Map<> --- inc/hgl/SourceCodeLocation.h | 1 - inc/hgl/type/Map.h | 4 ++++ inc/hgl/type/object/Object.h | 5 +---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/hgl/SourceCodeLocation.h b/inc/hgl/SourceCodeLocation.h index 58d0964..d42b0a4 100644 --- a/inc/hgl/SourceCodeLocation.h +++ b/inc/hgl/SourceCodeLocation.h @@ -10,5 +10,4 @@ namespace hgl }; #define HGL_SOURCE_CODE_LOCATION __FILE__,__FUNCTION__,__LINE__ - }//namespace hgl diff --git a/inc/hgl/type/Map.h b/inc/hgl/type/Map.h index e1b2d4d..8a3b826 100644 --- a/inc/hgl/type/Map.h +++ b/inc/hgl/type/Map.h @@ -144,6 +144,10 @@ namespace hgl template class Map:public MapTemplate > { + public: + + using Iterator=KeyValue; + public: Map()=default; diff --git a/inc/hgl/type/object/Object.h b/inc/hgl/type/object/Object.h index 45efdc2..4092557 100644 --- a/inc/hgl/type/object/Object.h +++ b/inc/hgl/type/object/Object.h @@ -1,6 +1,7 @@ #pragma once #include #include +#include namespace hgl { @@ -33,10 +34,6 @@ namespace hgl virtual ~Object()=default; virtual void Deinitailize()=0; - - virtual bool CheckType() - { - } };//class Object template class DefaultObjectManager;