aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-13 16:59:48 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-13 16:59:48 +0800
commite828a57eba62ff2469c894d3e50ecc58f36d810b (patch)
tree94a03a8769b65336e4cfc38f8ce4fd70286b9563 /types.h
parent98fdeb2d99b58d8df510f337f9dc1e21b549c639 (diff)
vector gc
Diffstat (limited to 'types.h')
-rw-r--r--types.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/types.h b/types.h
index 1e1e8a7..a364e55 100644
--- a/types.h
+++ b/types.h
@@ -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();
};/*}}}*/