![]() |
Zen
A cross-platform functional programming language
|
Concrete AST Node representing a list of struct's. Used in experimental feature implementing subtypes. More...
#include <Ast.hpp>
Public Types | |
|
typedef z::list< const StructDef * > | List |
| Default list of StructDef nodes. | |
Public Member Functions | |
| StructDefList () | |
| Default constructor. | |
| const List & | getList () const |
| Returns a reference to the struct list. | |
| const Ast::StructDef & | addSubType (const Ast::StructDef &subType) |
| Adds a subtype struct to the list. | |
| const StructDef * | hasSubType (const z::string &name) const |
| Checks if struct subtype exists. | |
Private Attributes | |
| List | _list |
| struct subtype list | |
Concrete AST Node representing a list of struct's. Used in experimental feature implementing subtypes.
| const Ast::StructDef& addSubType | ( | const Ast::StructDef & | subType | ) | [inline] |
Adds a subtype struct to the list.
| subType | The subtype to add |
| const List& getList | ( | ) | const [inline] |
Returns a reference to the struct list.
Checks if struct subtype exists.
| name | Name of subtype to be checked |