laz2/sc-core — Issue #19: libsc: Implement macroces for defining class, which represents object-tuple in sc-memory
Author: laz2
Created: 2011-12-14 14:17:08+00:00
State: open

E.g.:

class scp_program
{
public:

SC_TUPLE_DEFINE_CONSTRUCTORS(scp_program);
SC_TUPLE_DEFINE_GETTERS_SETTERS(vars, VAR_);
SC_TUPLE_DEFINE_GETTERS_SETTERS(prms, PRM_);
SC_TUPLE_DEFINE_GETTERS_SETTERS(consts, CONST_);
SC_TUPLE_DEFINE_GETTERS_SETTERS(init_op, INIT_);

private:

sc_session *s_;
sc_addr sign_;

};