xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Vector.xcs
浏览该文件的文档.
1
6@Declare
7class Vector<_V>{
8
13 Vector(int presize);
14
19 int size();
20
25 void addAll(_V []val);
26
31 void add(_V val);
32
38 void insert(int pos, _V val);
39
44 _V get(int pos);
45
46
52 void remove(int pos);
53
60 void removeRange(int pos, int size);
61
62
68 _V [] toArray(_V [] array);
69
74 void clear();
75
81 void finalize();
82};
vector容器
Definition Vector.xcs:7
void finalize()
析构处理 @caution 注意 重写finalize时必须使用 super.finalize(); 否则会造成泄露
void addAll(_V []val)
插入数据数组
Vector(int presize)
构造
void add(_V val)
插入数据
void insert(int pos, _V val)
在指定位置插入数据
_V [] toArray(_V [] array)
将容器内容转到数组
void clear()
清空容器
void removeRange(int pos, int size)
从指定位置删除指定长度的数据
int size()
获取容器内数据数量