Zen
A cross-platform functional programming language
Public Member Functions | Private Member Functions | Private Attributes

TypeSpecMemberGenerator Class Reference

Class to obtain separator between elements of different types. More...

Inheritance diagram for TypeSpecMemberGenerator:
TypeSpec::Visitor

List of all members.

Public Member Functions

 TypeSpecMemberGenerator ()
 Default constructor.
const z::string & getOp (const Ast::TypeSpec &typeSpec)
 Returns the separator preceeding a member reference of a type.

Private Member Functions

virtual void visit (const Ast::Unit &type)
 Abstract visitor function.
virtual void visit (const Ast::Namespace &type)
 Abstract visitor function.
virtual void visit (const Ast::Scope &type)
 Abstract visitor function.
virtual void visit (const Ast::StructDef &type)
 Abstract visitor function.
virtual void visit (const Ast::EnumDef &type)
 Abstract visitor function.
virtual void visit (const Ast::EnumMemberDef &type)
 Abstract visitor function.
virtual void visit (const Ast::OutParam &type)
 Abstract visitor function.
virtual void visit (const Ast::SharedDef &type)
 Abstract visitor function.
virtual void visit (const Ast::TypeDecl &type)
 Abstract visitor function.
virtual void visit (const Ast::TypeDef &type)
 Abstract visitor function.
virtual void visit (const Ast::OwnerTemplate &type)
 Abstract visitor function.
virtual void visit (const Ast::ListTemplate &type)
 Abstract visitor function.
virtual void visit (const Ast::DictTemplate &type)
 Abstract visitor function.
virtual void visit (const Ast::FunctionDef &type)
 Abstract visitor function.

Private Attributes

z::string _op
 The separator to return.

Detailed Description

Class to obtain separator between elements of different types.


Member Function Documentation

const z::string& getOp ( const Ast::TypeSpec &  typeSpec) [inline]

Returns the separator preceeding a member reference of a type.

Parameters:
typeSpecThe type reference to write out
Returns:
The separator
virtual void visit ( const Ast::FunctionDef &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::DictTemplate &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::ListTemplate &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::OwnerTemplate &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::TypeDef &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::TypeDecl &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::SharedDef &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::OutParam &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::EnumMemberDef &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::EnumDef &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::StructDef &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::Scope &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle
virtual void visit ( const Ast::Namespace &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.

virtual void visit ( const Ast::Unit &  type) [inline, private, virtual]

Abstract visitor function.

Parameters:
typeThe type reference to handle

Implements TypeSpec::Visitor.


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