Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Shaders.Ast.Variable Class Reference

A variable declaration. More...

Inheritance diagram for SiliconStudio.Shaders.Ast.Variable:
SiliconStudio.Shaders.Ast.Node SiliconStudio.Shaders.Ast.IAttributes SiliconStudio.Shaders.Ast.IDeclaration SiliconStudio.Shaders.Ast.IQualifiers SiliconStudio.Shaders.Ast.Parameter

Public Member Functions

 Variable ()
 Initializes a new instance of the Variable class. More...
 
 Variable (TypeBase type, string name, Expression initialValue=null)
 Initializes a new instance of the Variable class. More...
 
IEnumerable< VariableInstances ()
 Returns single variable instances. More...
 
void MergeFrom (Variable from)
 Merges attributes and qualifiers from another variable. More...
 
override IEnumerable< NodeChildrens ()
 Gets the child nodes.
Returns
An enumeration of child nodes
More...
 
override string ToString ()
 
override int GetHashCode ()
 
- Public Member Functions inherited from SiliconStudio.Shaders.Ast.Node
override bool Equals (object against)
 
override int GetHashCode ()
 
object GetTag (object tagKey)
 Gets a tag value associated to this node.. More...
 
bool RemoveTag (object tagKey)
 Gets a tag value associated to this node.. More...
 
bool ContainsTag (object tagKey)
 Determines whether the specified instance contains this tag. More...
 
void SetTag (object tagKey, object tagValue)
 Sets a tag value associated to this node. More...
 
override string ToString ()
 

Properties

List< AttributeBaseAttributes [get, set]
 
Qualifier Qualifiers [get, set]
 Gets or sets the qualifiers. More...
 
TypeBase Type [get, set]
 Gets or sets the type. More...
 
Expression InitialValue [get, set]
 Gets or sets the initial value. More...
 
Identifier Name [get, set]
 Gets or sets the name. More...
 
List< VariableSubVariables [get, set]
 Gets or sets the sub variables (used only for variable group) More...
 
bool IsGroup [get]
 Gets a value indicating whether this instance is group. More...
 
- Properties inherited from SiliconStudio.Shaders.Ast.Node
SourceSpan Span [get, set]
 Gets or sets the source span. More...
 
List< NodeChildrenList [get]
 Gets the childrens. More...
 
- Properties inherited from SiliconStudio.Shaders.Ast.IAttributes
List< AttributeBaseAttributes [get, set]
 
- Properties inherited from SiliconStudio.Shaders.Ast.IDeclaration
Identifier Name [get, set]
 Gets or sets the name of this declaration More...
 
- Properties inherited from SiliconStudio.Shaders.Ast.IQualifiers
Qualifier Qualifiers [get, set]
 Gets or sets the qualifiers. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SiliconStudio.Shaders.Ast.Node
static bool operator== (Node left, Node right)
 
static bool operator!= (Node left, Node right)
 
- Protected Member Functions inherited from SiliconStudio.Shaders.Ast.Node
 Node ()
 Initializes a new instance of the Node class. More...
 

Detailed Description

A variable declaration.

Definition at line 11 of file Variable.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Ast.Variable.Variable ( )

Initializes a new instance of the Variable class.

Definition at line 18 of file Variable.cs.

SiliconStudio.Shaders.Ast.Variable.Variable ( TypeBase  type,
string  name,
Expression  initialValue = null 
)

Initializes a new instance of the Variable class.

Parameters
typeThe type.
nameThe name.
initialValueThe initial value.

Definition at line 30 of file Variable.cs.

Member Function Documentation

override IEnumerable<Node> SiliconStudio.Shaders.Ast.Variable.Childrens ( )
virtual

Gets the child nodes.

Returns
An enumeration of child nodes

Reimplemented from SiliconStudio.Shaders.Ast.Node.

Definition at line 135 of file Variable.cs.

References SiliconStudio.Shaders.Ast.Qualifier.None.

override int SiliconStudio.Shaders.Ast.Variable.GetHashCode ( )

Definition at line 160 of file Variable.cs.

IEnumerable<Variable> SiliconStudio.Shaders.Ast.Variable.Instances ( )

Returns single variable instances.

Returns
An enumeration of single variable instances

Definition at line 105 of file Variable.cs.

void SiliconStudio.Shaders.Ast.Variable.MergeFrom ( Variable  from)

Merges attributes and qualifiers from another variable.

Parameters
fromThe variable to merge attribute from.

Definition at line 124 of file Variable.cs.

override string SiliconStudio.Shaders.Ast.Variable.ToString ( )

Definition at line 148 of file Variable.cs.

Property Documentation

List<AttributeBase> SiliconStudio.Shaders.Ast.Variable.Attributes
getset

Definition at line 45 of file Variable.cs.

Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteVariable().

Expression SiliconStudio.Shaders.Ast.Variable.InitialValue
getset
bool SiliconStudio.Shaders.Ast.Variable.IsGroup
get

Gets a value indicating whether this instance is group.

true if this instance is group; otherwise, false.

Definition at line 94 of file Variable.cs.

Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteVariable().

Identifier SiliconStudio.Shaders.Ast.Variable.Name
getset
Qualifier SiliconStudio.Shaders.Ast.Variable.Qualifiers
getset

Gets or sets the qualifiers.

The qualifiers.

Definition at line 53 of file Variable.cs.

Referenced by SiliconStudio.Shaders.Convertor.HlslToGlslConvertor.Visit(), and SiliconStudio.Shaders.Writer.ShaderWriter.WriteVariable().

List<Variable> SiliconStudio.Shaders.Ast.Variable.SubVariables
getset

Gets or sets the sub variables (used only for variable group)

The sub variables inside this group.

Definition at line 85 of file Variable.cs.

TypeBase SiliconStudio.Shaders.Ast.Variable.Type
getset

Gets or sets the type.

The type.

Definition at line 61 of file Variable.cs.

Referenced by SiliconStudio.Paradox.Shaders.Parser.Mixins.ShaderKeyGeneratorBase.WriteVariableAsParameterKey().


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