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

An identifier. More...

Inheritance diagram for SiliconStudio.Shaders.Ast.Identifier:
SiliconStudio.Shaders.Ast.Node SiliconStudio.Paradox.Shaders.Parser.Ast.ClassIdentifierGeneric SiliconStudio.Paradox.Shaders.Parser.Ast.LiteralIdentifier SiliconStudio.Paradox.Shaders.Parser.Ast.TypeIdentifier SiliconStudio.Shaders.Ast.Hlsl.CompositeIdentifier SiliconStudio.Shaders.Ast.Hlsl.IdentifierDot SiliconStudio.Shaders.Ast.Hlsl.IdentifierGeneric SiliconStudio.Shaders.Ast.Hlsl.IdentifierNs

Public Member Functions

 Identifier ()
 Initializes a new instance of the Identifier class. More...
 
 Identifier (string name)
 Initializes a new instance of the Identifier class. More...
 
bool Equals (Identifier other)
 Equalses the specified other. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 Returns a System.String that represents this instance. More...
 
- 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...
 
virtual IEnumerable< NodeChildrens ()
 Gets the child nodes. More...
 
override string ToString ()
 

Static Public Member Functions

static bool operator== (Identifier left, Identifier right)
 Implements the operator ==. More...
 
static implicit operator string (Identifier identifier)
 Performs an implicit conversion from Identifier to System.String. More...
 
static implicit operator Identifier (string identifierName)
 Performs an implicit conversion from System.String to Identifier. More...
 
static bool operator!= (Identifier left, Identifier 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

bool HasIndices [get]
 Gets a value indicating whether this instance has indices. More...
 
List< ExpressionIndices [get, set]
 Gets or sets the indices. More...
 
bool IsSpecialReference [get, set]
 Gets or sets a value indicating whether this instance is a special reference using < > More...
 
string Text [get, set]
 Gets or sets the name. 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

An identifier.

Definition at line 12 of file Identifier.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Ast.Identifier.Identifier ( )

Initializes a new instance of the Identifier class.

Definition at line 19 of file Identifier.cs.

SiliconStudio.Shaders.Ast.Identifier.Identifier ( string  name)

Initializes a new instance of the Identifier class.

Parameters
nameThe name.

Definition at line 29 of file Identifier.cs.

Member Function Documentation

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

Equalses the specified other.

Parameters
otherThe other.
Returns
true if equals to other.

Definition at line 92 of file Identifier.cs.

References SiliconStudio.Shaders.Ast.Identifier.Text.

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

Definition at line 106 of file Identifier.cs.

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

Definition at line 124 of file Identifier.cs.

static implicit SiliconStudio.Shaders.Ast.Identifier.operator Identifier ( string  identifierName)
static

Performs an implicit conversion from System.String to Identifier.

Parameters
identifierNameName of the identifier.
Returns
The result of the conversion.

Definition at line 191 of file Identifier.cs.

static implicit SiliconStudio.Shaders.Ast.Identifier.operator string ( Identifier  identifier)
static

Performs an implicit conversion from Identifier to System.String.

Parameters
identifierThe identifier.
Returns
The result of the conversion.

Definition at line 179 of file Identifier.cs.

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

Implements the operator !=.

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

Definition at line 204 of file Identifier.cs.

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

Implements the operator ==.

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

Definition at line 167 of file Identifier.cs.

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

Returns a System.String that represents this instance.

Returns
A System.String that represents this instance.

Definition at line 141 of file Identifier.cs.

Property Documentation

bool SiliconStudio.Shaders.Ast.Identifier.HasIndices
get

Gets a value indicating whether this instance has indices.

true if this instance has indices; otherwise, false.

Definition at line 45 of file Identifier.cs.

Referenced by SiliconStudio.Shaders.Writer.Hlsl.HlslWriter.Write(), and SiliconStudio.Shaders.Writer.ShaderWriter.Write().

List<Expression> SiliconStudio.Shaders.Ast.Identifier.Indices
getset

Gets or sets the indices.

The indices.

This property can be null.

Definition at line 61 of file Identifier.cs.

Referenced by SiliconStudio.Shaders.Writer.Hlsl.HlslWriter.Write(), and SiliconStudio.Shaders.Writer.ShaderWriter.Write().

bool SiliconStudio.Shaders.Ast.Identifier.IsSpecialReference
getset

Gets or sets a value indicating whether this instance is a special reference using < >

true if this instance is special reference; otherwise, false.

Definition at line 69 of file Identifier.cs.

Referenced by SiliconStudio.Shaders.Writer.Hlsl.HlslWriter.Write(), and SiliconStudio.Shaders.Writer.ShaderWriter.Write().


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