Inheritance diagram for class svt_pattern_data:
Data object that stores an individual name/value pair.
Public Member Functions | |
| function void | add_supp_data ( string name, bit [1023:0] value, svt_pattern_data :: type_enum typ = svt_pattern_data::UNDEF ) |
| function void | add_supp_string ( string name, string value ) |
| function svt_pattern_data | copy ( svt_pattern_data to = null ) |
| function bit [1023:0] | get_any_val ( ) |
| function real | get_real_val ( ) |
| function realtime | get_realtime_val ( ) |
| function string | get_string_val ( ) |
| function bit | get_supp_data_value ( string name, ref bit [1023:0] value ) |
| function bit | get_supp_string ( string name, ref string value ) |
| function time | get_time_val ( ) |
| function bit | has_keyword ( string keyword ) |
| function bit | match ( bit [1023:0] match_value, bit is_found_value ) |
| function void | new ( string name, bit [1023:0] value, int array_ix = 0, int positive_match = 1, svt_pattern_data :: type_enum typ = UNDEF, string owner = "", svt_pattern_data :: display_control_enum display_control = REL_DISP, svt_pattern_data :: how_enum display_how = REF, svt_pattern_data :: how_enum ownership_how = DEEP ) |
| function string | psdisplay ( string prefix = "" ) |
| function void | set_any_val ( bit [1023:0] value ) |
| function void | set_real_val ( real value ) |
| function void | set_realtime_val ( realtime value ) |
| function void | set_string_val ( string value ) |
Public Attributes | |
| svt_pattern_data :: align_enum | alignment |
| int | array_ix |
| svt_pattern_data :: display_control_enum | display_control |
| svt_pattern_data :: how_enum | display_how |
| string | enum_type = ""; |
| int unsigned | field_width = 0; |
| string | keywords [$] |
| string | name |
| string | owner |
| svt_pattern_data :: how_enum | ownership_how |
| bit | positive_match = 1; |
| int unsigned | supported_methods_flag = 0; |
| svt_pattern_data | supp_data [$] |
| string | title |
| svt_pattern_data :: type_enum | typ |
| bit [1023:0] | value |
| int | width |
Member Typedefs | |
| typedef enum | align_enum |
| typedef struct | create_struct |
| typedef enum | display_control_enum |
| typedef struct | get_set_struct |
| typedef enum | how_enum |
| typedef enum | type_enum |
|
||
|
||
|
||||||
|
|
||
Utility method for returning value as a bit vector. Valid for fields which are not of type OBJECT or GRAPHIC.
Return values - The bit vector value. |
|
||
Utility method for returning value as a real. Only valid if the field is of type REAL.
Return values - The real value. |
|
||
Utility method for returning value as a realtime. Only valid if the field is of type REALTIME.
Return values - The real value. |
|
||
Utility method for returning value as a string. Only valid if the field is of type STRING.
Return values - The string value. |
|
||
|
||
Utility method for accessing supplemental data as a string. Only valid if the supplemental data is of type STRING.
name - Name of the supplemental data whose value is to be retrieved. value - Retrieved string value. Return values - Indicates whether named supplemental data of type string was found (1) or not (0). |
|
||
Utility method for returning value as a time. Only valid if the field is of type TIME.
Return values - The real value. |
|
||
Method to look for a specific keyword in the keyword list.
keyword - The keyword to look for.
Return values - Indication of whether the keyword was found (1) or not (0). |
|
||
Method to do the value match, taking into account positive_match.
match_value - The value that should be matched against.
is_found_value - Indicates whether the match_value is real, representing a found value, or if the field could not be found. If is_found_value == 0, then the success of the match relies entirely on whether we are doing a positive or negative match. In this situation a positive match will always return 0, a negative match will always return 1. If is_found_value == 1, then the success of the match relies entirely on whether the match_value compares with this.value.
Return values - Indication of whether the value match passed (1) or failed (0). |
|
||||
CONSTRUCTOR: Creates a new instance of the svt_pattern_data class.
name - The pattern data name.
value - The pattern data value.
array_ix - Index associated with the value when the value is in an array.
positive_match - Indicates whether match (positive_match == 1) or mismatch (positive_match == 0) is desired.
typ - Type portion of the new name/value pair.
owner - Class name where the property is defined
display_control - Controls whether the property should be displayed in all RELEVANT display situations, or if it should only be displayed in COMPLETE display situations.
display_how - Controls whether this pattern is displayed, and if so whether it should be displayed via reference or deep display.
ownership_how - Indicates what type of relationship exists between this object and the containing object, and therefore how the various operations should function relative to this contained object. | ||||
|
|
||||||
Returns a simple string description of the pattern.
Return values - The simple string description. | ||||||
|
|
||
Utility method for setting a field value using a bit vector. Only valid if the fields which are not of type OBJECT or GRAPHIC.
value - The bit vector value. |
|
||
Utility method for setting a real field value. Only valid if the field is of type REAL.
value - The real value. |
|
||
Utility method for setting a real field value. Only valid if the field is of type REALTIME.
value - The real value. |
|
||
Utility method for setting a string field value. Only valid if the field is of type STRING.
value - The string value. |
|
|
Alignment used in short display.
|
|
|
The pattern array_ix.
|
|
|
Display control
|
|
|
Display depth
|
|
|
Type string which can be used in enumerated operrations. Empty string indicates "not set".
|
|
|
Field bit width used by common data class operations. 0 indicates "not set".
|
|
|
Additional situational keywords
|
|
|
The pattern data name.
|
|
|
Class name where the property is defined
|
|
|
Object access depth
|
|
|
Indicates whether the name/value pairs should be the same as (positive_match = 1) or different from (positive_match = 0) the actual svt_data values when the pattern match occurs.
|
|
|
Flag indicating which common data class operations are to be supported automatically for this field. 0 indicates "not set".
|
|
|
Supplemental data about this pattern_data instance, potentially situational.
|
|
|
Title used in short display.
|
|
|
Property type
|
|
|
The pattern data value.
|
|
|
Width used in short display.
|
|
|
|
|
|
|