| |
LCS-2016-018c |
| |
3 {03-Jan-2017} 2 {04-Jan-2017} 1 {04-Jan-2017} |
| |
04-Jan-2017 |
| |
Voting |
| |
Jim Lewis |
| |
Main.JimLewis |
| |
Attributes for Enumerated Types |
| |
Attributes for Enumerated Types |
| |
LCS-2016-018 - Attributes for Enumerated Types LCS-2016-018b - Algorithm to create object attributes |
| P |
Kind: | Type. |
| Prefix: | Any prefix P that is appropriate for an object with type or subtype T, or an alias thereof, or that denotes any type or subtype T. |
|
| Result: | The base type of T. | |
| Restrictions: | This attribute is allowed only as the prefix of the name of another attribute; for example, T'BASE'LEFT. | |
| P |
Kind: | Value. |
| Prefix: | Any prefix P that is appropriate for an object with a scalar type or subtype T, or an alias thereof, or that denotes any scalar type or subtype T. |
|
| Result type: | Same type as T. | |
| Result: | The left bound of T. | |
| P |
Kind: | Value. |
| Prefix: | Any prefix P that is appropriate for an object with a scalar type or subtype T, or an alias thereof, or that denotes any scalar type or subtype T. |
|
| Result type: | Same type as T. | |
| Result: | The right bound of T. | |
| P |
Kind: | Value. |
| Prefix: | Any prefix P that is appropriate for an object with a scalar type or subtype T, or an alias thereof, or that denotes any scalar type or subtype T. |
|
| Result type: | Same type as T. | |
| Result: | The upper bound of T. | |
| P |
Kind: Value. | |
| Prefix: | Any prefix P that is appropriate for an object with a scalar type or subtype T, or an alias thereof, or that denotes any scalar type or subtype T. |
|
| Result type: | Same type as T. | |
| Result: | The lower bound of T. | |
| T'LENGTH | Kind: | Pure function |
| Prefix: | Any prefix P that is appropriate for an object with a discrete or physical type or subtype T, or an alias thereof, or that denotes any discrete or physical type or subtype T. | |
| Result type: | _universal_integer_. | |
| Result: | T'LENGTH = maximum(0, T'POS(T'HIGH) - T'POS(T'LOW) + 1) | |
| T'RANGE | Kind: | Range |
| Prefix: | Any prefix P that is appropriate for an object with a scalar type or subtype T, or an alias thereof, or that denotes any scalar type or subtype T. | |
| Result type: | The type of T. | |
| Result: | The range T'LEFT to T'RIGHT if the range of T is ascending, or the range T'LEFT downto T'RIGHT if the range of T is descending. |
|
| T'REVERSE_RANGE | Kind: | Range |
| Prefix: | Any prefix P that is appropriate for an object with a scalar type or subtype T, or an alias thereof, or that denotes any scalar type or subtype T. | |
| Result type: | The type of T. | |
| Result: | The range T'RIGHT downto T'LEFT if the range of T is ascending, or the range T'RIGHT to T'LEFT if the range of T is descending. |
|
| T'POS_RANGE | Kind: | Range |
| Prefix: | Any prefix P that is appropriate for an object with a discrete or physical type or subtype T, or an alias thereof, or that denotes any discrete or physical type or subtype T. | |
| Result type: | INTEGER. | |
| Result: | The range T'POS(T'LEFT) to T'POS(T'RIGHT) if the range of T is ascending, or the range T'POS(T'LEFT) downto T'POS(T'RIGHT) if the range of T is descending. |
|
| T'POS_REVERSE_RANGE | Kind: | Range |
| Prefix: | Any prefix P that is appropriate for an object with a discrete or physical type or subtype T, or an alias thereof, or that denotes any discrete or physical type or subtype T. | |
| Result type: | INTEGER. | |
| Result: | The range T'POS(T'RIGHT) downto T'POS(T'LEFT) if the range of T is ascending, or the range T'POS(T'RIGHT) to T'POS(T'LEFT) if the range of T is descending. |
|
| P |
Kind: | Value. |
| Prefix: | Any prefix P that is appropriate for an object with a scalar type or subtype T, or an alias thereof, or that denotes any scalar type or subtype T. |
|
| Result type: | Type BOOLEAN | |
| Result: | It is TRUE if T is defined with an ascending range; FALSE otherwise. |
| O'IMAGE | Kind: | Pure function. |
| Prefix: | Any prefix O that is appropriate a scalar type or subtype, or an alias thereof | |
| Shorthand for: | O'SUBTYPE'IMAGE(O) | |
| O'POS | Kind: | Pure function. |
| Prefix: | Any prefix O that is appropriate a discrete or physical type or subtype, or an alias thereof | |
| Shorthand for: | O'SUBTYPE'POS(O) | |
| O'SUCC | Kind: | Pure function. |
| Prefix: | Any prefix O that is appropriate a discrete or physical type or subtype, or an alias thereof | |
| Shorthand for: | O'SUBTYPE'SUCC(O) | |
| O'PRED | Kind: | Pure function. |
| Prefix: | Any prefix O that is appropriate a discrete or physical type or subtype, or an alias thereof | |
| Shorthand for: | O'SUBTYPE'PRED(O) | |
| O'LEFTOF | Kind: | Pure function. |
| Prefix: | Any prefix O that is appropriate a discrete or physical type or subtype, or an alias thereof | |
| Shorthand for: | O'SUBTYPE'LEFTOF(O) | |
| O'RIGHTOF | Kind: | Pure function. |
| Prefix: | Any prefix O that is appropriate a discrete or physical type or subtype, or an alias thereof | |
| Shorthand for: | O'SUBTYPE'RIGHTOF(O) | |
| Ascending range | Descending range | ||
| P |
= | P |
P |
| P |
= | P |
P |