Zen
A cross-platform functional programming language
|
Dict template: Stores elements in a dictionary. More...
#include <Ast.hpp>
Public Member Functions | |
DictTemplate (const AccessType::T &accessType, const z::string &name, const Ast::QualifiedType &key, const Ast::QualifiedType &type) | |
Default constructor. | |
const Ast::QualifiedType & | getKey () const |
Returns the type of the key that this templated container holds. | |
const Ast::QualifiedType & | getType () 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 |
Dict template: Stores elements in a dictionary.
DictTemplate | ( | const AccessType::T & | accessType, |
const z::string & | name, | ||
const Ast::QualifiedType & | key, | ||
const Ast::QualifiedType & | type | ||
) | [inline] |
Default constructor.
accessType | The AccessType for this template definition |
name | Name of this template definition |
key | Type of key item stored in this template definition |
type | Type of value items stored in this template definition |
const Ast::QualifiedType& getKey | ( | ) | const [inline] |
Returns the type of the key that this templated container holds.
const Ast::QualifiedType& getType | ( | ) | const [inline] |
Returns the type of the value that this templated container holds.
void visit | ( | TypeSpec::Visitor & | visitor | ) | const [private, virtual] |
const Ast::QualifiedType& _key [private] |
const Ast::QualifiedType& _type [private] |