comparison LightClone/Source/ArrayList.h @ 19:51718795f019

Adding event handling & drag and drop to GuiInterface
author koryspansel
date Thu, 15 Sep 2011 12:13:40 -0700
parents ee1c2510096d
children b4dc5d674e22
comparison
equal deleted inserted replaced
18:33cb6979ac51 19:51718795f019
80 80
81 return eCode; 81 return eCode;
82 } 82 }
83 83
84 /* 84 /*
85 * Remove
86 */
87 ErrorCode Remove(Type& kItem)
88 {
89 for(uint32 i = 0; i < nSize; ++i)
90 {
91 if(pList[i] == kItem)
92 {
93 --nSize;
94
95 for(; i < nSize; ++i)
96 pList[i] = pList[i + 1];
97
98 return Error_Success;
99 }
100 }
101
102 return Error_Fail;
103 }
104
105 /*
85 * Clear 106 * Clear
86 */ 107 */
87 void Clear() 108 void Clear()
88 { 109 {
89 nSize = 0; 110 nSize = 0;
90 } 111 }
91 112
92 /* 113 /*
93 * GetSize 114 * Size
94 */ 115 */
95 uint32 GetSize() const 116 uint32 Size() const
96 { 117 {
97 return nSize; 118 return nSize;
98 } 119 }
99 120
100 /* 121 /*