aboutsummaryrefslogtreecommitdiff
path: root/model.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-15 13:53:59 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-15 13:53:59 +0800
commit8aeb7f59e1da79411c02d1c502d4e7331733e2a0 (patch)
tree3e1013a0b3875870d73b232d867a7fba1bad97e0 /model.h
parent56689aa5d8d337148fcebf672ded423b7411bdfe (diff)
...
Diffstat (limited to 'model.h')
-rw-r--r--model.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/model.h b/model.h
index ba40137..fd88f7d 100644
--- a/model.h
+++ b/model.h
@@ -48,14 +48,13 @@ class FrameObj {
};
+class ObjEntry;
class Pair;
class ReprCons;
/** @class EvalObj
* Objects that represents a value in evaluation
*/
class EvalObj : public FrameObj {
- private:
- size_t gc_cnt;
protected:
/**
* Report the type of the EvalObj, which can avoid the use of
@@ -63,6 +62,7 @@ class EvalObj : public FrameObj {
*/
int otype;
public:
+ ObjEntry *gc_obj;
/**
* Construct an EvalObj
* @param otype the type of the EvalObj (CLS_PAIR_OBJ for a
@@ -101,9 +101,6 @@ class EvalObj : public FrameObj {
virtual bool is_true();
/** External representation construction */
virtual ReprCons *get_repr_cons() = 0;
- bool gc_dec();
- void gc_inc();
- size_t gc_get_cnt();
};
typedef std::set<EvalObj*> EvalObjSet;