X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Finternal%2Fevent%2Fcommon%2Ftype-info-impl.h;h=37c43ed15fb95a196ac3ea2f07fc553f8e46199a;hb=33a8477946185463936981476e9772d40c37fd72;hp=fbdf04dcc246bbfb4a31a202124ee884d3344c5b;hpb=da4ad1b400618f4663547453326cffa8a6c789cc;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/common/type-info-impl.h b/dali/internal/event/common/type-info-impl.h index fbdf04d..37c43ed 100644 --- a/dali/internal/event/common/type-info-impl.h +++ b/dali/internal/event/common/type-info-impl.h @@ -1,8 +1,9 @@ #ifndef DALI_INTERNAL_TYPE_INFO_H #define DALI_INTERNAL_TYPE_INFO_H +#define USE_INDEXED_MAP_CONTAINER_AT_TYPE_INFO /// For safety. If some problem occured, just remove this define. /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +23,11 @@ #include // INTERNAL INCLUDES +#ifdef USE_INDEXED_MAP_CONTAINER_AT_TYPE_INFO +#include +#include +#endif + #include #include #include @@ -380,15 +386,27 @@ private: int32_t componentIndex = Property::INVALID_COMPONENT_INDEX; }; - using ConnectionPair = std::pair; - using ActionPair = std::pair; - using RegisteredPropertyPair = std::pair; - using PropertyDefaultValuePair = std::pair; - + using ActionPair = std::pair; + using ConnectionPair = std::pair; +#ifdef USE_INDEXED_MAP_CONTAINER_AT_TYPE_INFO + using RegisteredPropertyPair = std::pair; + using PropertyDefaultValuePair = std::pair; +#else + using RegisteredPropertyPair = std::pair; + using PropertyDefaultValuePair = std::pair; +#endif + +#ifdef USE_INDEXED_MAP_CONTAINER_AT_TYPE_INFO + using ActionContainer = Dali::Internal::IndexedConstStringMap; + using ConnectorContainer = Dali::Internal::IndexedConstStringMap; + using RegisteredPropertyContainer = Dali::Internal::IndexedIntegerMap; + using PropertyDefaultValueContainer = Dali::Internal::IndexedIntegerMap; +#else using ActionContainer = std::vector; using ConnectorContainer = std::vector; using RegisteredPropertyContainer = std::vector; using PropertyDefaultValueContainer = std::vector; +#endif /** * Append properties from registeredProperties onto indices.