#include <ArrayTypeInfo.hh>
Inheritance diagram for ArrayTypeInfo:


Public Member Functions | |
| ArrayTypeInfo () | |
| ArrayTypeInfo (const TypeInfo &initElementTypeInfo, const ScalarTypeInfo &initBound) | |
| Main constructor. | |
| ArrayTypeInfo (const ArrayTypeInfo &that) | |
| ~ArrayTypeInfo () | |
| bool | operator== (const TypeInfo &that) const |
| This is here for testing. | |
| TypeInfo * | clone () const |
| Clone this TypeInfo. | |
| bool | isCompositeType () const |
| bool | isConstrained () const |
| bool | isUnconstrained () const |
| bool | isCharacterType () const |
| Returns true if this is an enumeration type whose elements all belong to the character enumeration. | |
| int | numDimensions () const |
| ArrayTypeInfo & | operator= (const ArrayTypeInfo &) |
| const TypeInfo & | getElementTypeInfo (const RValue &index=defaultIndex()) const |
| const ScalarTypeInfo & | getIndexTypeInfo (const RValue &index=defaultIndex()) const |
| virtual RValue * | create (const SubElementFactory *) const |
| This method is used to create an object of the appropriate type given that we are the typeInfo. | |
| string | getSubFieldName (const string &prefix, int d) const |
| Returns the field name of a subelement in a composite type. | |
| const TypeInfo & | getFieldInfo (int fieldIndex) const |
| void | constructFields (vector< RValue * > &elements, const SubElementFactory *subElementFactory, int numElements=-1) const |
| virtual int | storageIndex (int elementIndex) const |
| Value | value (const string &initValue) const |
| const RValue & | left (const RValue &dimension=defaultIndex()) const |
| Array type attributes. | |
| const RValue & | right (const RValue &dimension=defaultIndex()) const |
| For scalar types returns the right element of the range. | |
| virtual const ScalarTypeInfo & | range (const RValue &index=defaultIndex()) const |
| virtual const ScalarTypeInfo & | reverse_range (const RValue &index=defaultIndex()) const |
| UniversalInteger | length (const RValue &index=defaultIndex()) const |
| The 'length attribute. | |
Private Member Functions | |
| Value | valueFromAggregate (const string &initValue) const |
| When the initialization string passed in is in the form of an aggregate, this method is used to do the processing. | |
| Value | valueFromString (const string &initValue) const |
| When the initialization string passed in is in the form of a string, this method is used to do the processing. | |
Private Attributes | |
| const ScalarTypeInfo * | myIndexTypeInfo |
| const TypeInfo * | myElementTypeInfo |
Friends | |
| class | CompositeLiteral |
|
|
|
|
||||||||||||
|
Main constructor. Does not take ownership |
|
|
|
|
|
|
|
|
Clone this TypeInfo.
Reimplemented from TypeInfo. |
|
||||||||||||||||
|
Implements CompositeTypeInfo. |
|
|
This method is used to create an object of the appropriate type given that we are the typeInfo. The arguments are the (possibly not fully constructed) parent and the kind of object that we want for any subelements. For scalar types these arguments are completely ignored. Reimplemented from TypeInfo. |
|
|
Implements CompositeTypeInfo. |
|
|
Reimplemented from TypeInfo. |
|
|
Implements CompositeTypeInfo. |
|
||||||||||||
|
Returns the field name of a subelement in a composite type. Record types return the name of a field; array types return "<prefix>(fieldNumber)". Reimplemented from TypeInfo. |
|
|
Returns true if this is an enumeration type whose elements all belong to the character enumeration.
Reimplemented from TypeInfo. |
|
|
Reimplemented from TypeInfo. |
|
|
Reimplemented from CompositeTypeInfo. |
|
|
Reimplemented from CompositeTypeInfo. |
|
|
Array type attributes.
Reimplemented from TypeInfo. |
|
|
The 'length attribute.
Reimplemented from TypeInfo. |
|
|
|
|
|
|
|
|
This is here for testing.
Reimplemented from TypeInfo. |
|
|
Reimplemented from TypeInfo. |
|
|
Reimplemented from TypeInfo. |
|
|
For scalar types returns the right element of the range. For array types, returns the right element of the index passed in. Reimplemented from TypeInfo. |
|
|
Reimplemented from CompositeTypeInfo. |
|
|
Reimplemented from TypeInfo. |
|
|
When the initialization string passed in is in the form of an aggregate, this method is used to do the processing.
|
|
|
When the initialization string passed in is in the form of a string, this method is used to do the processing.
|
|
|
|
|
|
|
|
|
|
1.4.6