Zen
A cross-platform functional programming language

UserDefinedTypeSpec Class Reference

Base class for all user-defined types. More...

#include <Ast.hpp>

Inheritance diagram for UserDefinedTypeSpec:
ChildTypeSpec TypeSpec Node EnumDef MethodTypeSpec OutParam SharedDef StructDef TypeDefTypeSpec FunctionDef TypeDecl TypeDef

List of all members.

Public Types

enum  NativeType { ntNone, ntIntrinsic, ntSystem, ntQuery }
 

Some UDT's have special meaning and treated differently in native code.

More...

Public Member Functions

const NativeTypegetNativeType () const
 Returns the native type of this UDT.

Protected Member Functions

 UserDefinedTypeSpec (const AccessType::T &accessType, const z::string &name, const NativeType &ntype)
 Default constructor.

Private Attributes

const NativeType _ntype
 The UDT's native type.

Detailed Description

Base class for all user-defined types.

This class is the base class for all user-defined types such as struct's, function's, etc


Member Enumeration Documentation

enum NativeType

Some UDT's have special meaning and treated differently in native code.

Enumerator:
ntIntrinsic 

Normal UDT.

ntSystem 

This is an intrinsic type of the native language, such as int, long, etc.

ntQuery 

This is an intrinsic type of the Zen language, such as date, time, file, widget, etc.


Constructor & Destructor Documentation

UserDefinedTypeSpec ( const AccessType::T accessType,
const z::string name,
const NativeType ntype 
) [inline, protected]

Default constructor.

Parameters:
accessTypeThe AccessType for this UDT.
nameName of the UDT
ntypeThe NativeType of this UDT.

Member Function Documentation

const NativeType& getNativeType ( ) const [inline]

Returns the native type of this UDT.

Returns:
The UDT's native type

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