typedef enum {
READ_FROM_PAST,
+ READ_FROM_PROMISE,
READ_FROM_FUTURE,
READ_FROM_NONE,
} read_from_type_t;
const ModelAction * get_read_from_past(int i) const;
int get_read_from_past_size() const;
+ void add_read_from_promise(const ModelAction *reader);
+ const Promise * get_read_from_promise() const;
+
bool add_future_value(struct future_value fv);
struct future_value get_future_value() const;
bool read_from_past_empty() const;
bool increment_read_from_past();
+ bool read_from_promise_empty() const;
+ bool increment_read_from_promise();
bool future_value_empty() const;
bool increment_future_value();
read_from_type_t read_from_status;
std::vector< const ModelAction *, ModelAlloc< const ModelAction * > > read_from_past;
unsigned int read_from_past_idx;
+ std::vector< const ModelAction *, ModelAlloc<const ModelAction *> > read_from_promises;
+ int read_from_promise_idx;
+
std::vector< struct future_value, ModelAlloc<struct future_value> > future_values;
std::vector< promise_t, ModelAlloc<promise_t> > promises;
int future_index;