Zen
A cross-platform functional programming language

TypeSpecRefWriter::Format Struct Reference

Defines the output format for types. More...

List of all members.

Public Types

enum  T { None, Import, InParam, ClosureMember }
 

The enumeration values.

More...

Detailed Description

Defines the output format for types.

This is typically used to change type qualifiers. Mapping for writing in-param:

        qtype => in-param
        const int& x => const int& x;
        const int  x => const int& x;
              int  x => const int& x;
              int& x =>       int& x;

Deduce whether in-param is a const-ref based on above logic. The in-param should be a const-ref for all qtypes other than a nonconst-ref.


Member Enumeration Documentation

enum T

The enumeration values.

Enumerator:
Import 

Normal format, no change to output format.

InParam 

Writing to import file.

ClosureMember 

generate output as in-param using logic given in description


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