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

A field of a struct. More...

Inheritance diagram for SiliconStudio.Shaders.Ast.Literal:
SiliconStudio.Shaders.Ast.Node

Public Member Functions

 Literal ()
 Initializes a new instance of the Literal class. More...
 
 Literal (object value)
 Initializes a new instance of the Literal class. More...
 
override IEnumerable< NodeChildrens ()
 Gets the child nodes.
Returns
An enumeration of child nodes
More...
 
override string ToString ()
 
bool Equals (Literal other)
 
override bool Equals (object obj)
 
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 ()
 

Static Public Member Functions

static bool operator== (Literal left, Literal right)
 Implements the operator ==. More...
 
static bool operator!= (Literal left, Literal right)
 Implements the operator !=. More...
 
- Static Public Member Functions inherited from SiliconStudio.Shaders.Ast.Node
static bool operator== (Node left, Node right)
 
static bool operator!= (Node left, Node right)
 

Properties

string Text [get, set]
 Gets or sets the text. More...
 
object Value [get, set]
 Gets or sets the value. More...
 
List< LiteralSubLiterals [get, set]
 Gets or sets the sub literals. 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...
 

Additional Inherited Members

- Protected Member Functions inherited from SiliconStudio.Shaders.Ast.Node
 Node ()
 Initializes a new instance of the Node class. More...
 

Detailed Description

A field of a struct.

Definition at line 13 of file Literal.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Ast.Literal.Literal ( )

Initializes a new instance of the Literal class.

Definition at line 23 of file Literal.cs.

SiliconStudio.Shaders.Ast.Literal.Literal ( object  value)

Initializes a new instance of the Literal class.

Parameters
valueThe value.

Definition at line 33 of file Literal.cs.

Member Function Documentation

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

Gets the child nodes.

Returns
An enumeration of child nodes

Reimplemented from SiliconStudio.Shaders.Ast.Node.

Definition at line 86 of file Literal.cs.

bool SiliconStudio.Shaders.Ast.Literal.Equals ( Literal  other)

Definition at line 126 of file Literal.cs.

override bool SiliconStudio.Shaders.Ast.Literal.Equals ( object  obj)

Definition at line 140 of file Literal.cs.

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

Definition at line 158 of file Literal.cs.

Referenced by SiliconStudio.Shaders.Ast.LiteralExpression.GetHashCode().

static bool SiliconStudio.Shaders.Ast.Literal.operator!= ( Literal  left,
Literal  right 
)
static

Implements the operator !=.

Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.

Definition at line 184 of file Literal.cs.

static bool SiliconStudio.Shaders.Ast.Literal.operator== ( Literal  left,
Literal  right 
)
static

Implements the operator ==.

Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.

Definition at line 171 of file Literal.cs.

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

Definition at line 94 of file Literal.cs.

Property Documentation

List<Literal> SiliconStudio.Shaders.Ast.Literal.SubLiterals
getset

Gets or sets the sub literals.

The sub literals.

This value can be null.

Definition at line 79 of file Literal.cs.

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

string SiliconStudio.Shaders.Ast.Literal.Text
getset

Gets or sets the text.

The text.

Definition at line 48 of file Literal.cs.

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

object SiliconStudio.Shaders.Ast.Literal.Value
getset

Gets or sets the value.

The value.

Definition at line 57 of file Literal.cs.

Referenced by SiliconStudio.Shaders.Writer.Hlsl.HlslToGlslWriter.Visit().


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