![]() |
Zen
A cross-platform functional programming language
|
A type with const and ref qualifiers. More...
#include <Ast.hpp>
Public Types | |
|
typedef z::list< const QualifiedType * > | List |
| Default list of QualifiedType nodes To be used wherever required by any of the other nodes. | |
Public Member Functions | |
| QualifiedType (const bool &isConst, const TypeSpec &type, const bool &isRef) | |
| Constructor for QualifiedType. | |
| const bool & | isConst () const |
| Returns whether this is a const type specifier. | |
| const bool & | isRef () const |
| Returns whether this is a ref type specifier. | |
| const TypeSpec & | getTypeSpec () const |
| Returns the type specifier. | |
Private Attributes | |
| bool | _isConst |
| Whether this is a const type. | |
| const TypeSpec & | _type |
| The TypeSpec being qualified. | |
| bool | _isRef |
| Whether this is a reference type. | |
A type with const and ref qualifiers.
This class represents a TypeSpec along with its qualifiers. For example, if 'int' is a type, 'const int&' will be the type qualified with const and ref.
| QualifiedType | ( | const bool & | isConst, |
| const TypeSpec & | type, | ||
| const bool & | isRef | ||
| ) | [inline] |
Constructor for QualifiedType.
| isConst | Specifies whether this QualifiedType has a const qualifier |
| type | The typespec of this QualifiedType |
| isRef | Specifies whether this QualifiedType has a ref qualifier |
| const TypeSpec& getTypeSpec | ( | ) | const [inline] |
Returns the type specifier.
| const bool& isConst | ( | ) | const [inline] |
Returns whether this is a const type specifier.
| const bool& isRef | ( | ) | const [inline] |
Returns whether this is a ref type specifier.