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

A composite enum. More...

Inheritance diagram for SiliconStudio.Shaders.Ast.CompositeEnum:
SiliconStudio.Shaders.Ast.Node IEnumerable< CompositeEnum > SiliconStudio.Shaders.Ast.Hlsl.ConstantBufferType SiliconStudio.Shaders.Ast.Qualifier SiliconStudio.Shaders.Ast.Glsl.LayoutQualifier SiliconStudio.Shaders.Ast.Hlsl.FloatQualifier SiliconStudio.Shaders.Ast.Hlsl.PackOffset SiliconStudio.Shaders.Ast.Hlsl.RegisterLocation SiliconStudio.Shaders.Ast.Hlsl.Semantic SiliconStudio.Shaders.Ast.LayoutQualifier SiliconStudio.Shaders.Ast.ParameterQualifier SiliconStudio.Shaders.Ast.StorageQualifier

Classes

class  StringEnumMap
 Internal dictionary that provides conversion helper methods. More...
 

Public Member Functions

 CompositeEnum ()
 Initializes a new instance of the CompositeEnum class. More...
 
 CompositeEnum (bool isFlag)
 Initializes a new instance of the CompositeEnum class. More...
 
 CompositeEnum (object key, bool isFlag)
 Initializes a new instance of the CompositeEnum class. More...
 
bool Contains (CompositeEnum enumValue)
 Determines whether [contains] [the specified enum value]. More...
 
bool Contains (params CompositeEnum[] enumValues)
 Determines whether [contains] [the specified enum values]. More...
 
bool ContainsAll (params CompositeEnum[] enumValues)
 Determines whether the specified enum values contains all. More...
 
bool Equals (CompositeEnum other)
 Determines whether the specified CompositeEnum is equal to this instance. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
IEnumerator< CompositeEnumGetEnumerator ()
 
override string ToString ()
 
string ToString< T > (Func< T, bool > filterEnum)
 
override IEnumerable< NodeChildrens ()
 Gets the child nodes.
Returns
An enumeration of child nodes
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...
 
override string ToString ()
 

Static Public Member Functions

static T1 OperatorAnd< T1 > (T1 left, T1 right)
 Operators And. More...
 
static T1 OperatorOr< T1 > (T1 left, T1 right)
 Operators Or. More...
 
static T1 OperatorXor< T1 > (T1 left, T1 right)
 Operators Xor. More...
 
static bool operator== (CompositeEnum left, CompositeEnum right)
 Implements the operator ==. More...
 
static bool operator!= (CompositeEnum left, CompositeEnum 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)
 

Static Protected Member Functions

static StringEnumMap PrepareParsing< T > ()
 Prepares the parsing for a specific enum by returning a pre-computed dictionary with all allowed mapping name => enum. More...
 

Properties

bool IsComposition [get]
 Gets a value indicating whether this instance is a composition enum (a combination of enums). More...
 
bool IsFlag [get, set]
 Gets a value indicating whether this instance is an enum flag. More...
 
object Key [get, set]
 Gets or sets the key. More...
 
OrderedSet< CompositeEnumValues [get, set]
 Gets or sets the values. More...
 
virtual string DisplayName [get]
 Gets the display 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

A composite enum.

Definition at line 15 of file CompositeEnum.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Ast.CompositeEnum.CompositeEnum ( )

Initializes a new instance of the CompositeEnum class.

Definition at line 25 of file CompositeEnum.cs.

SiliconStudio.Shaders.Ast.CompositeEnum.CompositeEnum ( bool  isFlag)

Initializes a new instance of the CompositeEnum class.

Parameters
isFlagif set to true [is flag].

Definition at line 36 of file CompositeEnum.cs.

SiliconStudio.Shaders.Ast.CompositeEnum.CompositeEnum ( object  key,
bool  isFlag 
)

Initializes a new instance of the CompositeEnum class.

Parameters
keyThe key.
isFlagif set to true [is flag].

Definition at line 47 of file CompositeEnum.cs.

Member Function Documentation

override IEnumerable<Node> SiliconStudio.Shaders.Ast.CompositeEnum.Childrens ( )
virtual
bool SiliconStudio.Shaders.Ast.CompositeEnum.Contains ( CompositeEnum  enumValue)

Determines whether [contains] [the specified enum value].

Parameters
enumValueThe enum value.
Returns
true if [contains] [the specified enum value]; otherwise, false.

Definition at line 131 of file CompositeEnum.cs.

Referenced by SiliconStudio.Shaders.Convertor.HlslToGlslConvertor.Visit().

bool SiliconStudio.Shaders.Ast.CompositeEnum.Contains ( params CompositeEnum[]  enumValues)

Determines whether [contains] [the specified enum values].

Parameters
enumValuesThe enum values.
Returns
true if [contains] [the specified enum values]; otherwise, false.

Definition at line 145 of file CompositeEnum.cs.

bool SiliconStudio.Shaders.Ast.CompositeEnum.ContainsAll ( params CompositeEnum[]  enumValues)

Determines whether the specified enum values contains all.

Parameters
enumValuesThe enum values.
Returns
true if the specified enum values contains all; otherwise, false.

Definition at line 159 of file CompositeEnum.cs.

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

Determines whether the specified CompositeEnum is equal to this instance.

Parameters
otherThe CompositeEnum to compare with this instance.
Returns
true if the specified CompositeEnum is equal to this instance; otherwise, false.

Definition at line 173 of file CompositeEnum.cs.

References SiliconStudio.Shaders.Ast.CompositeEnum.IsFlag, SiliconStudio.Shaders.Ast.CompositeEnum.Key, and SiliconStudio.Shaders.Ast.CompositeEnum.Values.

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

Definition at line 210 of file CompositeEnum.cs.

IEnumerator<CompositeEnum> SiliconStudio.Shaders.Ast.CompositeEnum.GetEnumerator ( )

Definition at line 247 of file CompositeEnum.cs.

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

Definition at line 231 of file CompositeEnum.cs.

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

Implements the operator !=.

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

Definition at line 452 of file CompositeEnum.cs.

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

Implements the operator ==.

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

Definition at line 439 of file CompositeEnum.cs.

static T1 SiliconStudio.Shaders.Ast.CompositeEnum.OperatorAnd< T1 > ( T1  left,
T1  right 
)
static

Operators And.

Template Parameters
T1The type of the 1.
Parameters
leftThe left.
rightThe right.
Returns
Result of And operation
Type Constraints
T1 :CompositeEnum 
T1 :new() 

Definition at line 318 of file CompositeEnum.cs.

static T1 SiliconStudio.Shaders.Ast.CompositeEnum.OperatorOr< T1 > ( T1  left,
T1  right 
)
static

Operators Or.

Template Parameters
T1The type of the 1.
Parameters
leftThe left.
rightThe right.
Returns
Result of Or operation
Type Constraints
T1 :CompositeEnum 
T1 :new() 

Definition at line 341 of file CompositeEnum.cs.

static T1 SiliconStudio.Shaders.Ast.CompositeEnum.OperatorXor< T1 > ( T1  left,
T1  right 
)
static

Operators Xor.

Template Parameters
T1The type of the 1.
Parameters
leftThe left.
rightThe right.
Returns
Result of Xor operation
Type Constraints
T1 :CompositeEnum 
T1 :new() 

Definition at line 364 of file CompositeEnum.cs.

static StringEnumMap SiliconStudio.Shaders.Ast.CompositeEnum.PrepareParsing< T > ( )
staticprotected

Prepares the parsing for a specific enum by returning a pre-computed dictionary with all allowed mapping name => enum.

Template Parameters
TType of the enum to compute the dictionary
Returns
A pre-computed dictionary with all allowed mapping name => enum
Type Constraints
T :CompositeEnum 

Definition at line 381 of file CompositeEnum.cs.

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

Definition at line 253 of file CompositeEnum.cs.

string SiliconStudio.Shaders.Ast.CompositeEnum.ToString< T > ( Func< T, bool >  filterEnum)

Type Constraints
T :CompositeEnum 

Definition at line 259 of file CompositeEnum.cs.

Property Documentation

virtual string SiliconStudio.Shaders.Ast.CompositeEnum.DisplayName
get

Gets the display name.

Definition at line 111 of file CompositeEnum.cs.

bool SiliconStudio.Shaders.Ast.CompositeEnum.IsComposition
get

Gets a value indicating whether this instance is a composition enum (a combination of enums).

true if this instance is a composition enum (a combination of enums); otherwise, false.

Definition at line 65 of file CompositeEnum.cs.

bool SiliconStudio.Shaders.Ast.CompositeEnum.IsFlag
getset

Gets a value indicating whether this instance is an enum flag.

true if this instance is an enum flag; otherwise, false.

Definition at line 78 of file CompositeEnum.cs.

Referenced by SiliconStudio.Shaders.Ast.CompositeEnum.Equals().

object SiliconStudio.Shaders.Ast.CompositeEnum.Key
getset
OrderedSet<CompositeEnum> SiliconStudio.Shaders.Ast.CompositeEnum.Values
getset

Gets or sets the values.

The values.

Definition at line 96 of file CompositeEnum.cs.

Referenced by SiliconStudio.Shaders.Ast.CompositeEnum.Equals(), and SiliconStudio.Shaders.Convertor.HlslToGlslConvertor.Visit().


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