// Returns copy of this type, but with variable raplaced to const ScType asConst() const { return ScType((mRealType & ~sc_type_var) | sc_type_const); }
ScType ScMemoryContext::getElementType(ScAddr const & addr) const { check_expr(isValid()); sc_type type = 0; return (sc_memory_get_element_type(mContext, addr.mRealAddr, &type) == SC_RESULT_OK) ? ScType(type) : ScType(0); }