another change to the Reflection API

From: Yuri Tsoglin <yurit@cadence.com>
Date: Thu Sep 04 2014 - 09:25:27 PDT
Hi,

Since we already had a ballot on the updated Reflection API chapter:
http://www.eda-twiki.org/twiki/pub/P1647/DownLoads/reflection_api_2014-07-08_pm.pdf
I am raising this here separately.

In the document above, we have added these two methods:

rf_scalar.get_set_of_values(): set
Returns a set that contains all the legal values of this scalar type, similar to using the set_of_values()
operator. If this type is the real type, or if it is an unbounded integer type without a subrange, an
exception is issued.

rf_scalar.get_full_set_of_values(): set
Returns a set that contains all possible values of this scalar type, similar to using the
full_set_of_values() operator. If this type is the real type, or if it is an unbounded integer type without
a subrange, an exception is issued.

I propose now to make them methods of rf_numeric (instead of rf_scalar), and remove the note about the real type.
This is because, in accordance with the other changes we're working on right now (on the new 'set' type), the operators set_of_values() and full_set_of_values() only apply to numeric types, and not to other scalar types (e.g. enumerated).

If we agree, we will make this change as well, as part of the 'set' type updates.

Thanks,
Yuri.




[cid:image002.jpg@01CFC874.DF3333B0]

Yuri Tsoglin | e Language team, Specman RnD

P: 972.3.9004305 M: 972.54.6468177 F: 972.3.9004001 www.cadence.com<http://www.cadence.com>







-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



image001.gif
image002.jpg
Received on Thu Sep 4 09:26:46 2014

This archive was generated by hypermail 2.1.8 : Thu Sep 04 2014 - 09:27:06 PDT