1 Star 0 Fork 86

Fuchen/pythonvm

forked from hinus/pythonvm 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
arrayList.hpp 635 Bytes
一键复制 编辑 原始数据 按行查看 历史
hinus 提交于 2018-10-05 11:54 +08:00 . key word args
#ifndef ARRAY_LIST_HPP
#define ARRAY_LIST_HPP
#include <stdio.h>
class OopClosure;
template <typename T>
class ArrayList {
private:
int _length;
T* _array;
int _size;
void expand();
public:
ArrayList(int n = 8);
void add(T t);
void insert(int index, T t);
T get(int index);
void set(int index, T t);
int size();
int length();
int index(T t);
T* value() { return _array; }
T pop();
void delete_index(int index);
void* operator new(size_t size);
void oops_do(OopClosure* closure);
};
class HiObject;
typedef ArrayList<HiObject*>* ObjList;
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/foocoder/pythonvm.git
git@gitee.com:foocoder/pythonvm.git
foocoder
pythonvm
pythonvm
master

搜索帮助