Home
last modified time | relevance | path

Searched refs:elementNum (Results 1 – 5 of 5) sorted by relevance

/commonlibrary/ets_utils/js_util_module/container/vector/
Djs_vector.ts101 private elementNum: number = 0; property in Vector
107 return this.elementNum;
113 this[this.elementNum++] = element;
117 if (index < 0 || index >= this.elementNum) {
123 for (let i: number = this.elementNum; i > index; i--) {
127 this.elementNum++;
130 for (let i: number = 0; i < this.elementNum; i++) {
141 for (let i: number = 0; i < this.elementNum; i++) {
155 if (index < 0 || index >= this.elementNum) {
162 if (index < 0 || index >= this.elementNum) {
[all …]
/commonlibrary/ets_utils/js_util_module/container/arraylist/
Djs_arraylist.ts98 private elementNum: number = 0;
105 return this.elementNum;
112 this[this.elementNum++] = element;
118 errorUtil.checkRangeError('index', index, 0, this.elementNum);
122 for (let i: number = this.elementNum; i > index; i--) {
126 this.elementNum++;
130 for (let i: number = 0; i < this.elementNum; i++) {
139 for (let i: number = 0; i < this.elementNum; i++) {
149 errorUtil.checkRangeError('index', index, 0, this.elementNum - 1);
151 for (let i: number = index; i < this.elementNum - 1; i++) {
[all …]
/commonlibrary/ets_utils/js_util_module/container/linkedlist/
Djs_linkedlist.ts117 private elementNum: number;
123 this.elementNum = 0;
128 return this.elementNum;
131 if (index >= 0 && index < this.elementNum) {
145 if (index >= 0 && index < this.elementNum) {
166 this.elementNum++;
172 if (this.elementNum === 0) {
178 this.elementNum++;
191 this.removeByIndex(this.elementNum - 1);
198 this.elementNum = 0;
[all …]
/commonlibrary/ets_utils/js_util_module/container/list/
Djs_list.ts108 private elementNum: number;
113 this.elementNum = 0;
118 return this.elementNum;
121 if (index >= 0 && index < this.elementNum) {
135 if (index >= 0 && index < this.elementNum) {
156 this.elementNum++;
162 this.elementNum = 0;
210 for (let i: number = 0; i < this.elementNum; i++) {
221 for (let i: number = this.elementNum - 1; i >= 0; i--) {
233 errorUtil.checkRangeError('index', index, 0, this.elementNum - 1);
[all …]
/commonlibrary/ets_utils/js_util_module/container/stack/
Djs_stack.ts87 private elementNum: number = 0;
94 return this.elementNum;
101 this[this.elementNum++] = item;
111 this.elementNum--;
132 return this.elementNum === 0;
143 return this.elementNum === this.capacity;
156 done = count >= stack.elementNum;