| << TypeRange |
| TypeApplication >> |
|
The value must be a vector typed value, i.e., indexed with ints.
The element type for each element is defined. The length is fixed.
A more efficient data structure than ValueVector may be used in the future if it is known in advance that the number of elements is fixed.
In CRL2 file syntax, this type is called
[ TYPE1, TYPE2, ..., TYPEn ]
Where TYPEi are the types of the corresponding element. Currently all the elements are optional. This will be extended soon.
Immediate super class: TypeCompound
Immediate sub class: TypeApplication
| VectorType | elements |
| int | Object:: | class_id |
| int | Object:: | heap_sig |
| int | Object:: | ref_count |
| UserData | Object:: | user_data |
| CrlTypeTuple | () | |||
| CrlTypeTuple | (TypeTuple const &) | |||
| void | operator= | (TypeTuple const &) | ||
| void | append | (Type *) | ||
| VectorType const * | elements | () const | ||
| VectorType * | elements | () | ||
| bool | empty | () const | ||
| int | nentries | () const | ||
| bool | non_empty | () const | ||
| Type * | nth | (int) const | ||
| void | set_elements | (VectorType const *) |
| C++: | CrlVectorType const * CrlTypeTuple::elements () const |
| C: | CrlVectorType const * crl_type_tuple_get_elements_const (crl_type_tuple_t const * self) |
Reader of slot 'elements': Type of the entries.
This returns To write this slot, use set_elements().
This reader is NULL safe; for this == NULL, it returns NULL.
#endif |
| C++: | CrlVectorType * CrlTypeTuple::elements () |
| C: | CrlVectorType * crl_type_tuple_get_elements (crl_type_tuple_t * self) |
Reader of slot 'elements': Type of the entries.
The pointer this returns can be used for writing the slot directly.
Another way to write this slot is set_elements().
This reader is NULL safe; for this == NULL, it returns NULL.
#endif |
| C++: | void CrlTypeTuple::set_elements (CrlVectorType const *) |
| C: | void crl_type_tuple_set_elements (crl_type_tuple_t * self, CrlVectorType const *) |
Writer of slot 'elements': Type of the entries.
To read this slot, use set_elements().
This writer must not be invoked with this == NULL.
#endif |
| C++: | CrlTypeTuple::CrlTypeTuple () |
| C: | crl_type_tuple_t * crl_type_tuple_new (void) |
#endif |
| C++: | CrlTypeTuple::CrlTypeTuple (CrlTypeTuple const &) |
| C: | crl_type_tuple_t * crl_type_tuple_new_copy (crl_type_tuple_t const *) |
#endif |
| C++: | void CrlTypeTuple::operator= (CrlTypeTuple const &) |
| C: | void crl_type_tuple_assign (crl_type_tuple_t * self, crl_type_tuple_t const *) |
#endif |
| C++: | int CrlTypeTuple::nentries () const |
| C: | int crl_type_tuple_nentries (crl_type_tuple_t const * self) |
Currently quite limited access to substructures:
NULL safe: if this == NULL, returns 0
#endif |
| C++: | bool CrlTypeTuple::empty () const |
| C: | crl_bool_t crl_type_tuple_empty (crl_type_tuple_t const * self) |
NULL safe: if this == NULL, returns true
#endif |
| C++: | bool CrlTypeTuple::non_empty () const |
| C: | crl_bool_t crl_type_tuple_non_empty (crl_type_tuple_t const * self) |
NULL safe: if this == NULL, returns false
#endif |
| C++: | CrlType * CrlTypeTuple::nth (int) const |
| C: | crl_type_t * crl_type_tuple_nth (crl_type_tuple_t const * self, int) |
NULL safe and index protected. Returns NULL if something does not exist.
#endif |
| C++: | void CrlTypeTuple::append (CrlType *) |
| C: | void crl_type_tuple_append (crl_type_tuple_t * self, crl_type_t *) |
#endif |
| CrlVectorType const * | crl_erwin_ptr_const_of | (CrlTypeTuple const * x) | ||
| CrlVectorType const * | crl_erwin_ptr_const_of | (CrlTypeTuple const & x) | ||
| CrlVectorType * | crl_erwin_ptr_of | (CrlTypeTuple * x) | ||
| CrlVectorType * | crl_erwin_ptr_of | (CrlTypeTuple & x) | ||
| CrlTypeTuple:: | CrlTypeTuple | () | ||
| CrlTypeTuple:: | CrlTypeTuple | (TypeTuple const &) | ||
| void | CrlTypeTuple:: | operator= | (TypeTuple const &) | |
| TypeTuple * | CrlObject:: | as_TypeTuple | () | |
| TypeTuple const * | CrlObject:: | as_TypeTuple | () const | |
| TypeTuple * | CrlObject:: | cast_TypeTuple | () | |
| TypeTuple const * | CrlObject:: | cast_TypeTuple | () const |
| Generated by erwin-cgen | © AbsInt Angewandte Informatik GmbH |