Zen
A cross-platform functional programming language

DictTemplate Class Reference

Dict template: Stores elements in a dictionary. More...

#include <Ast.hpp>

Inheritance diagram for DictTemplate:
TemplateTypeSpec ChildTypeSpec TypeSpec Node

List of all members.

Public Member Functions

 DictTemplate (const AccessType::T &accessType, const z::string &name, const Ast::QualifiedType &key, const Ast::QualifiedType &type)
 Default constructor.
const Ast::QualifiedTypegetKey () const
 Returns the type of the key that this templated container holds.
const Ast::QualifiedTypegetType () const
 Returns the type of the value that this templated container holds.

Private Member Functions

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

Private Attributes

const Ast::QualifiedType_key
const Ast::QualifiedType_type

Detailed Description

Dict template: Stores elements in a dictionary.


Constructor & Destructor Documentation

DictTemplate ( const AccessType::T accessType,
const z::string name,
const Ast::QualifiedType key,
const Ast::QualifiedType type 
) [inline]

Default constructor.

Parameters:
accessTypeThe AccessType for this template definition
nameName of this template definition
keyType of key item stored in this template definition
typeType of value items stored in this template definition

Member Function Documentation

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

Returns the type of the key that this templated container holds.

Returns:
The contained key type
const Ast::QualifiedType& getType ( ) const [inline]

Returns the type of the value that this templated container holds.

Returns:
The contained value type
void visit ( TypeSpec::Visitor visitor) const [private, virtual]

Visitor pattern implementation.

Parameters:
visitorThe visitor object.

Implements TypeSpec.


Member Data Documentation

const Ast::QualifiedType& _key [private]
Returns:
The key type contained by this list
const Ast::QualifiedType& _type [private]
Returns:
The value type contained by this list

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