Zen
A cross-platform functional programming language

EnumDef Class Reference

Concrete AST Node representing a user-defined enum. More...

#include <Ast.hpp>

Inheritance diagram for EnumDef:
UserDefinedTypeSpec ChildTypeSpec TypeSpec Node

List of all members.

Public Member Functions

 EnumDef (const AccessType::T &accessType, const z::string &name, const NativeType &ntype, const EnumMemberDefList &defList)
 Default constructor.
const EnumMemberDefListgetDefList () 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.

Detailed Description

Concrete AST Node representing a user-defined enum.


Constructor & Destructor Documentation

EnumDef ( const AccessType::T accessType,
const z::string name,
const NativeType ntype,
const EnumMemberDefList defList 
) [inline]

Default constructor.

Parameters:
accessTypeThe AccessType for this UDT.
nameName of the UDT
ntypeThe NativeType of this UDT.
defListList of enumeration members for this type.

Member Function Documentation

const EnumMemberDefList& getDefList ( ) const [inline]

Returns the enum-member list.

Returns:
A reference to the enum member list
void visit ( TypeSpec::Visitor visitor) const [private, virtual]

Visitor pattern implementation.

Parameters:
visitorThe visitor object.

Implements TypeSpec.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines