HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ScalarTypeSyntax Class Reference

Specialization of TypeSyntax for scalar types. More...

#include <Syntax.h>

+ Inheritance diagram for ScalarTypeSyntax:

Public Member Functions

 ScalarTypeSyntax (const string &name, const string &defaultValue, const string &uniformDefaultValue, const string &typeAlias=EMPTY_STRING, const string &typeDefinition=EMPTY_STRING)
 
string getValue (const Value &value, bool uniform) const override
 
string getValue (const StringVec &values, bool uniform) const override
 
- Public Member Functions inherited from TypeSyntax
virtual ~TypeSyntax ()
 
const stringgetName () const
 Returns the type name. More...
 
const stringgetTypeAlias () const
 Returns a type alias if needed to define the type in the target language. More...
 
const stringgetTypeDefinition () const
 Returns a type definition if needed to define the type in the target language. More...
 
const stringgetDefaultValue (bool uniform) const
 Returns the default value for this type. More...
 
const StringVecgetMembers () const
 
virtual string getValue (const ShaderPort *port, bool uniform) const
 

Additional Inherited Members

- Protected Member Functions inherited from TypeSyntax
 TypeSyntax (const string &name, const string &defaultValue, const string &uniformDefaultValue, const string &typeAlias, const string &typeDefinition, const StringVec &members)
 Protected constructor. More...
 
- Protected Attributes inherited from TypeSyntax
string _name
 
string _defaultValue
 
string _uniformDefaultValue
 
string _typeAlias
 
string _typeDefinition
 
StringVec _members
 
- Static Protected Attributes inherited from TypeSyntax
static const StringVec EMPTY_MEMBERS
 

Detailed Description

Specialization of TypeSyntax for scalar types.

Definition at line 268 of file Syntax.h.

Constructor & Destructor Documentation

ScalarTypeSyntax::ScalarTypeSyntax ( const string name,
const string defaultValue,
const string uniformDefaultValue,
const string typeAlias = EMPTY_STRING,
const string typeDefinition = EMPTY_STRING 
)

Member Function Documentation

string ScalarTypeSyntax::getValue ( const Value value,
bool  uniform 
) const
overridevirtual

Returns a value formatted according to this type syntax. The value is constructed from the given value object.

Implements TypeSyntax.

Reimplemented in StringTypeSyntax.

string ScalarTypeSyntax::getValue ( const StringVec values,
bool  uniform 
) const
overridevirtual

Returns a value formatted according to this type syntax. The value is constructed from the given list of value entries with one entry for each member of the type.

Implements TypeSyntax.


The documentation for this class was generated from the following file: