X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fhelpers%2Fround-robin-container-view.h;h=5a5f07c5fd046507b2dc09f3352258bcd359a9f0;hb=21f841ba0703a6fbf442ab097451560b7b6efe1b;hp=b5f97df190f3722035efad2a6b33e5a4d2bf0179;hpb=d0b0cfa4a44953be9af9128885eb6ef5d83a214e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/helpers/round-robin-container-view.h b/dali-toolkit/internal/helpers/round-robin-container-view.h index b5f97df..5a5f07c 100644 --- a/dali-toolkit/internal/helpers/round-robin-container-view.h +++ b/dali-toolkit/internal/helpers/round-robin-container-view.h @@ -3,7 +3,7 @@ #define DALI_TOOLKIT_INTERNAL_ROUND_ROBIN_CONTAINER_VIEW_H /* - * 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. @@ -56,6 +56,14 @@ public: } /** + * @brief Clear all elements. + */ + void Clear() + { + mElements.clear(); + } + + /** * @brief Reset the position of the iterator returned by GetNext() to the first element. */ void Reset() @@ -86,6 +94,15 @@ public: return mElements.cend(); } + /** + * @brief Returns the element count. + * @return The element count + */ + size_t GetElementCount() const + { + return mElements.size(); + } + // default members ~RoundRobinContainerView() = default;