Zen
A cross-platform functional programming language

TypeDef Class Reference

Base class for typedef definitions. More...

#include <Ast.hpp>

Inheritance diagram for TypeDef:
TypeDefTypeSpec UserDefinedTypeSpec ChildTypeSpec TypeSpec Node

List of all members.

Public Member Functions

 TypeDef (const AccessType::T &accessType, const z::string &name, const NativeType &ntype, const Ast::QualifiedType &type)
 Default constructor.
const Ast::QualifiedTypegetTargetType () const
 Returns the type that this typedef refers to.

Private Member Functions

virtual void visit (TypeSpec::Visitor &visitor) const
 Visitor pattern implementation.

Private Attributes

const Ast::QualifiedType_type
 The referred type.

Detailed Description

Base class for typedef definitions.


Constructor & Destructor Documentation

TypeDef ( const AccessType::T accessType,
const z::string name,
const NativeType ntype,
const Ast::QualifiedType type 
) [inline]

Default constructor.

Parameters:
accessTypeThe AccessType for this typedef definition
nameName of this typedef definition
ntypeThe NativeType of this typedef definition.
typeThe QualifiedType that this typedef refers to.

Member Function Documentation

const Ast::QualifiedType& getTargetType ( ) const [inline]

Returns the type that this typedef refers to.

Returns:
The referred type
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