diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-13 16:59:48 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-13 16:59:48 +0800 |
commit | e828a57eba62ff2469c894d3e50ecc58f36d810b (patch) | |
tree | 94a03a8769b65336e4cfc38f8ce4fd70286b9563 /types.h | |
parent | 98fdeb2d99b58d8df510f337f9dc1e21b549c639 (diff) |
vector gc
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -296,17 +296,16 @@ class VecObj: public EvalObj {/*{{{*/ public: EvalObjVec vec; /** Construct a vector object */ - VecObj(); + VecObj(size_t size = 0, EvalObj *fill = NULL); + ~VecObj(); size_t get_size(); - EvalObj *get_obj(size_t idx); - /** Resize the vector */ - void resize(size_t new_size); /** Add a new element to the rear */ void push_back(EvalObj *new_elem); /** Fill the vector with obj */ void fill(EvalObj *obj); /** Replace an existing element in the vector */ void set(size_t idx, EvalObj *obj); + EvalObj *get(size_t idx); ReprCons *get_repr_cons(); };/*}}}*/ |