![]() |
Paradox Game Engine
v1.0.0 beta06
|
A composite enum. More...
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< CompositeEnum > | GetEnumerator () |
| override string | ToString () |
| string | ToString< T > (Func< T, bool > filterEnum) |
| override IEnumerable< Node > | Childrens () |
Gets the child nodes.
| |
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< CompositeEnum > | Values [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< Node > | ChildrenList [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... | |
A composite enum.
Definition at line 15 of file CompositeEnum.cs.
| 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.
| isFlag | if 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.
| key | The key. |
| isFlag | if set to true [is flag]. |
Definition at line 47 of file CompositeEnum.cs.
|
virtual |
Gets the child nodes.
Reimplemented from SiliconStudio.Shaders.Ast.Node.
Reimplemented in SiliconStudio.Shaders.Ast.Hlsl.Semantic, SiliconStudio.Shaders.Ast.Hlsl.RegisterLocation, SiliconStudio.Shaders.Ast.Hlsl.PackOffset, and SiliconStudio.Shaders.Ast.Glsl.LayoutQualifier.
Definition at line 411 of file CompositeEnum.cs.
| bool SiliconStudio.Shaders.Ast.CompositeEnum.Contains | ( | CompositeEnum | enumValue | ) |
Determines whether [contains] [the specified enum value].
| enumValue | The enum value. |
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].
| enumValues | The enum values. |
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.
| enumValues | The enum values. |
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.
| other | The CompositeEnum to compare with this instance. |
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 |
Implements the operator !=.
| left | The left. |
| right | The right. |
Definition at line 452 of file CompositeEnum.cs.
|
static |
Implements the operator ==.
| left | The left. |
| right | The right. |
Definition at line 439 of file CompositeEnum.cs.
|
static |
Operators And.
| T1 | The type of the 1. |
| left | The left. |
| right | The right. |
| T1 | : | CompositeEnum | |
| T1 | : | new() |
Definition at line 318 of file CompositeEnum.cs.
|
static |
Operators Or.
| T1 | The type of the 1. |
| left | The left. |
| right | The right. |
| T1 | : | CompositeEnum | |
| T1 | : | new() |
Definition at line 341 of file CompositeEnum.cs.
|
static |
Operators Xor.
| T1 | The type of the 1. |
| left | The left. |
| right | The right. |
| T1 | : | CompositeEnum | |
| T1 | : | new() |
Definition at line 364 of file CompositeEnum.cs.
|
staticprotected |
Prepares the parsing for a specific enum by returning a pre-computed dictionary with all allowed mapping name => enum.
| T | Type of the enum to compute the dictionary |
| 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 | ) |
| T | : | CompositeEnum |
Definition at line 259 of file CompositeEnum.cs.
|
get |
Gets the display name.
Definition at line 111 of file CompositeEnum.cs.
|
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.
|
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().
|
getset |
Gets or sets the key.
The key.
Definition at line 86 of file CompositeEnum.cs.
Referenced by SiliconStudio.Shaders.Ast.CompositeEnum.Equals(), SiliconStudio.Shaders.Writer.Hlsl.HlslWriter.Visit(), and SiliconStudio.Shaders.Writer.ShaderWriter.Visit().
|
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().