mFrame
載入中...
搜尋中...
無符合項目
Array.h
1
7#ifndef MFRAME_2F39A480_5C64_4E09_A926_7560E6BFF274
8#define MFRAME_2F39A480_5C64_4E09_A926_7560E6BFF274
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Interface.h"
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace ufm::util {
23 template <typename E>
24 struct Array;
25} // namespace ufm::util
26
27/* ***************************************************************************************
28 * Class/Interface/Struct/Enum
29 */
30
39template <typename E = void*>
41 /* *****************************************************************************************
42 * Method
43 */
51 virtual int length(void) const abstract;
52
61 virtual int indexOf(E& element) const abstract;
62
72 virtual E& get(int index) const abstract;
73
84 virtual bool set(E const& e, int index) abstract;
85
93 virtual int elementSize(void) const abstract;
94
95 /* *************************************************************************************
96 * Static Method
97 */
98};
99
100/* ***************************************************************************************
101 * End of file
102 */
103
104#endif /* MFRAME_2F39A480_5C64_4E09_A926_7560E6BFF274 */
Definition Iterable.h:28
[Interface] 通用陣列介面
Definition Array.h:40
virtual int length(void) const override
取得陣列長度
virtual bool set(E const &e, int index) override
設置指定索引的元素值
virtual E & get(int index) const override
取得指定索引的元素
virtual int elementSize(void) const override
取得元素大小
virtual int indexOf(E &element) const override
搜尋元素位置