Zen
A cross-platform functional programming language

DictList Class Reference

Concrete AST class for dictionary containers. More...

#include <Ast.hpp>

Inheritance diagram for DictList:
ListBase< DictItem > Node

List of all members.

Public Member Functions

 DictList ()
 Default constructor.
const QualifiedTypehasKey () const
 Returns a pointer to the type of dictionary key.
void setKeyType (const QualifiedType *key)
 Set key type of contained elements.
const QualifiedTypehasType () const
 Returns a pointer to the type of dictionary value.
void setValueType (const QualifiedType *type)
 Set value type of contained elements.

Private Attributes

const QualifiedType_key
 Dictionary key type reference.
const QualifiedType_type
 Dictionary value type reference.

Detailed Description

Concrete AST class for dictionary containers.


Member Function Documentation

const QualifiedType* hasKey ( ) const [inline]

Returns a pointer to the type of dictionary key.

Returns:
Dictionary key type pointer if any, else 0
const QualifiedType* hasType ( ) const [inline]

Returns a pointer to the type of dictionary value.

Returns:
Dictionary value type pointer if any, else 0
void setKeyType ( const QualifiedType key) [inline]

Set key type of contained elements.

Parameters:
keyKey type of contained elements
void setValueType ( const QualifiedType type) [inline]

Set value type of contained elements.

Parameters:
typeValue type of contained elements

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