Zen
A cross-platform functional programming language
|
Base class for typedef definitions. More...
#include <Ast.hpp>
Public Member Functions | |
TypeDef (const AccessType::T &accessType, const z::string &name, const NativeType &ntype, const Ast::QualifiedType &type) | |
Default constructor. | |
const Ast::QualifiedType & | getTargetType () 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. |
Base class for typedef definitions.
TypeDef | ( | const AccessType::T & | accessType, |
const z::string & | name, | ||
const NativeType & | ntype, | ||
const Ast::QualifiedType & | type | ||
) | [inline] |
Default constructor.
accessType | The AccessType for this typedef definition |
name | Name of this typedef definition |
ntype | The NativeType of this typedef definition. |
type | The QualifiedType that this typedef refers to. |
const Ast::QualifiedType& getTargetType | ( | ) | const [inline] |
Returns the type that this typedef refers to.
void visit | ( | TypeSpec::Visitor & | visitor | ) | const [private, virtual] |