Zen
A cross-platform functional programming language
|
Concrete AST Node representing a user-defined enum. More...
#include <Ast.hpp>
Public Member Functions | |
EnumDef (const AccessType::T &accessType, const z::string &name, const NativeType &ntype, const EnumMemberDefList &defList) | |
Default constructor. | |
const EnumMemberDefList & | getDefList () const |
Returns the enum-member list. | |
Private Member Functions | |
virtual void | visit (TypeSpec::Visitor &visitor) const |
Visitor pattern implementation. | |
Private Attributes | |
const EnumMemberDefList & | _defList |
Enum member list node. |
Concrete AST Node representing a user-defined enum.
EnumDef | ( | const AccessType::T & | accessType, |
const z::string & | name, | ||
const NativeType & | ntype, | ||
const EnumMemberDefList & | defList | ||
) | [inline] |
Default constructor.
accessType | The AccessType for this UDT. |
name | Name of the UDT |
ntype | The NativeType of this UDT. |
defList | List of enumeration members for this type. |
const EnumMemberDefList& getDefList | ( | ) | const [inline] |
Returns the enum-member list.
void visit | ( | TypeSpec::Visitor & | visitor | ) | const [private, virtual] |