Zen
A cross-platform functional programming language

RootTypeSpec Class Reference

Base node class typespecs that do not have a parent type. More...

#include <Ast.hpp>

Inheritance diagram for RootTypeSpec:
TypeSpec Node Unit

List of all members.

Protected Member Functions

 RootTypeSpec (const AccessType::T &accessType, const z::string &name)
 The constructor for the type without an initial parent.

Private Member Functions

virtual z::string getFullName (const z::string &sep) const
 Returns the full name of the type, which is the same as short name for root type.

Detailed Description

Base node class typespecs that do not have a parent type.

There is only one concrete class derived from this, Unit. All other TypeSpec-derived classes must have a parent TypeSpec.


Constructor & Destructor Documentation

RootTypeSpec ( const AccessType::T accessType,
const z::string name 
) [inline, protected]

The constructor for the type without an initial parent.

The parent member must be set after instantion , but before use, using setParent()

Parameters:
accessTypeSpecifies the AccessType for this type, for example, whether it is a public or a private type.
nameThe name of the type.

Member Function Documentation

virtual z::string getFullName ( const z::string sep) const [inline, private, virtual]

Returns the full name of the type, which is the same as short name for root type.

Parameters:
sepSeparator between name elements (unused)
Returns:
The full name.

Implements TypeSpec.


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