|
| | MdlSyntax (TypeSystemPtr typeSystem) |
| |
| const string & | getConstantQualifier () const override |
| |
| const string & | getUniformQualifier () const override |
| |
| const string & | getSourceFileExtension () const override |
| | Return the file extension used for source code files in this language. More...
|
| |
| string | getArrayTypeSuffix (TypeDesc type, const Value &value) const override |
| | Override to return array type suffix. More...
|
| |
| string | getArrayVariableSuffix (TypeDesc, const Value &) const override |
| | Override to indicate array variables have no array suffix. More...
|
| |
| TypeDesc | getEnumeratedType (const string &value) const |
| | Get an type description for an enumeration based on member value. More...
|
| |
| bool | remapEnumeration (const string &value, TypeDesc type, const string &enumNames, std::pair< TypeDesc, ValuePtr > &result) const override |
| |
| void | makeValidName (string &name) const override |
| | Modify the given name string to remove any invalid characters or tokens. More...
|
| |
| string | modifyPortName (const string &word) const |
| | To avoid collisions with reserved names in MDL, input and output names are prefixed. More...
|
| |
| string | replaceSourceCodeMarkers (const string &nodeName, const string &soureCode, std::function< string(const string &)> lambda) const |
| |
| const string & | getMdlVersionSuffixMarker () const |
| | Get the MDL language versing marker: {{MDL_VERSION_SUFFIX}}. More...
|
| |
| virtual | ~Syntax () |
| |
| void | registerTypeSyntax (TypeDesc type, TypeSyntaxPtr syntax) |
| |
| void | registerTypeSyntax (const TypeDesc *type, TypeSyntaxPtr syntax) |
| |
| void | registerReservedWords (const StringSet &names) |
| |
| void | registerInvalidTokens (const StringMap &tokens) |
| |
| const StringSet & | getReservedWords () const |
| | Returns a set of names that are reserved words for this language syntax. More...
|
| |
| const StringMap & | getInvalidTokens () const |
| | Returns a mapping from disallowed tokens to replacement strings for this language syntax. More...
|
| |
| const TypeSyntax & | getTypeSyntax (TypeDesc type) const |
| |
| const TypeSyntax & | getTypeSyntax (const TypeDesc *type) const |
| |
| const vector< TypeSyntaxPtr > & | getTypeSyntaxes () const |
| | Returns an array of all registered type syntax objects. More...
|
| |
| TypeDesc | getType (const string &name) const |
| | Return a type description for the given type name. More...
|
| |
| const string & | getTypeName (TypeDesc type) const |
| | Returns the name syntax of the given type. More...
|
| |
| const string & | getTypeName (const TypeDesc *type) const |
| |
| virtual string | getOutputTypeName (TypeDesc type) const |
| | Returns the type name in an output context. More...
|
| |
| string | getOutputTypeName (const TypeDesc *type) const |
| |
| const string & | getTypeAlias (TypeDesc type) const |
| |
| const string & | getTypeAlias (const TypeDesc *type) const |
| |
| const string & | getTypeDefinition (TypeDesc type) const |
| |
| const string & | getTypeDefinition (const TypeDesc *type) const |
| |
| const string & | getDefaultValue (TypeDesc type, bool uniform=false) const |
| | Returns the default value string for the given type. More...
|
| |
| const string & | getDefaultValue (const TypeDesc *type, bool uniform=false) const |
| |
| virtual string | getValue (TypeDesc type, const Value &value, bool uniform=false) const |
| | Returns the value string for a given type and value object. More...
|
| |
| string | getValue (const TypeDesc *type, const Value &value, bool uniform=false) const |
| |
| virtual string | getValue (const ShaderPort *port, bool uniform=false) const |
| | Returns the value string for a given shader port object. More...
|
| |
| virtual const string & | getInputQualifier () const |
| |
| virtual const string & | getOutputQualifier () const |
| |
| virtual const string & | getNewline () const |
| | Return the characters used for a newline. More...
|
| |
| virtual const string & | getIndentation () const |
| | Return the characters used for a single indentation level. More...
|
| |
| virtual const string & | getStringQuote () const |
| | Return the characters used to begin/end a string definition. More...
|
| |
| virtual const string & | getIncludeStatement () const |
| | Return the string pattern used for a file include statement. More...
|
| |
| virtual const string & | getSingleLineComment () const |
| | Return the characters used for single line comment. More...
|
| |
| virtual const string & | getBeginMultiLineComment () const |
| | Return the characters used to begin a multi line comments block. More...
|
| |
| virtual const string & | getEndMultiLineComment () const |
| | Return the characters used to end a multi line comments block. More...
|
| |
| string | getArrayTypeSuffix (const TypeDesc *type, const Value &value) const |
| |
| string | getArrayVariableSuffix (const TypeDesc *type, const Value &value) const |
| |
| virtual bool | typeSupported (const TypeDesc *type) const |
| |
| virtual void | makeIdentifier (string &name, IdentifierMap &identifiers) const |
| |
| virtual string | getVariableName (const string &name, TypeDesc type, IdentifierMap &identifiers) const |
| |
| string | getVariableName (const string &name, const TypeDesc *type, IdentifierMap &identifiers) const |
| |
| virtual StructTypeSyntaxPtr | createStructSyntax (const string &structTypeName, const string &defaultValue, const string &uniformDefaultValue, const string &typeAlias, const string &typeDefinition) const |
| |
Syntax class for MDL (Material Definition Language)
Definition at line 25 of file MdlSyntax.h.