mFrame
載入中...
搜尋中...
無符合項目
Container.h
1
7#ifndef MFRAME_956664BF_5E02_4253_99E4_5145B33F691B
8#define MFRAME_956664BF_5E02_4253_99E4_5145B33F691B
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "./../lang/Interface.h"
16
17//----------------------------------------------------------------------------------------
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace ufm::util {
23 struct Container;
24} // namespace ufm::util
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
29
37 /* *************************************************************************************
38 * Method
39 */
44 virtual void clear(void) abstract;
45
52 virtual bool isEmpty(void) const abstract;
53
61 virtual int size(void) const abstract;
62};
63
64/* ***************************************************************************************
65 * End of file
66 */
67
68#endif /* MFRAME_956664BF_5E02_4253_99E4_5145B33F691B */
Definition Iterable.h:28
[Interface] 集合容器介面 此介面定義了集合容器的基本操作。集合容器用於存儲一組元素, 提供了對這些元素的訪問和操作方法。
Definition Container.h:36
virtual int size(void) const override
返回此集合中的元素數。
virtual void clear(void) override
從此集合中刪除所有元素(可選操作)。此方法返回後,集合將為空。
virtual bool isEmpty(void) const override
如果此集合不包含元素,則返回true。