#include <Type.h>
Inheritance diagram for FunctionType:

Public Member Functions | |
| FunctionType (constTypePtr return_type, constFunctionTypePtr arguments) | |
| string | toString () const |
| bool | isBasetype () const |
| constTypePtr | matchFlex (constTypePtr type, unsigned int number=0) const |
| int | match (constTypePtr expected) const |
| bool | equals (constTypePtr expected) const |
| bool | canCast (constTypePtr to) const |
| TypePtr | clone () const |
| constTypePtr | unflex (constTypePtr type, unsigned int number=0) const |
| std::ostream & | toStream (std::ostream &str) const |
| FunctionType (constTypePtr returntype=Type::Unspec, bool as_const =false) | |
| FunctionType (bytecodeistream &str) | |
| ~FunctionType () | |
| constTypePtr | returnType () const |
| void | concat (constTypePtr t) |
| int | parameterCount () const |
| constTypePtr | parameterType (unsigned int parameter_number) const |
| constTupleTypePtr | parameters () const |
Private Member Functions | |
| REP_BODY (FunctionType) | |
Private Attributes | |
| const constTypePtr | m_returntype |
| TupleTypePtr | m_arguments |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
check, if the type can be casted (at runtime considered to be - similar to dynamic_cast) to another type Reimplemented from Type. |
|
|
clone this type Reimplemented from Type. |
|
|
|
|
|
check equality of the types, without any assumptions like any == unspec Reimplemented from Type. |
|
|
Reimplemented from Type. |
|
|
check match with expected type <0: no match, ==0: full match, >0: propagated match Reimplemented from Type. |
|
||||||||||||
|
Reimplemented from Type. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
write out to stream Reimplemented from Type. |
|
|
Converts a type code to its YCP notation. Reimplemented from Type. |
|
||||||||||||
|
replace any 'FlexT' (number == 0) or 'NFlexT' (number != 0) with 'type' Reimplemented from Type. |
|
|
|
|
|
|
1.4.6