Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Stack/StackTypes.cs

Last change on this file was 15189, checked in by pkimmesw, 7 years ago

#2665 Fixed small issues, testet benchmark suite, added INX Expressions

File size: 1.4 KB
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Stack {
2  using System;
3
4  // Be aware that it is assumed that this values are equal to HeuristicLab.BenchmarkSuite.DataTypes
5  [Flags]
6  public enum StackTypes {
7    None = 0x01, // Required to specify expression dependencies
8    Integer = 0x02,
9    Float = 0x04,
10    Char = 0x08,
11    String = 0x10,
12    Boolean = 0x20,
13    Name = 0x40,
14    Code = 0x80,
15    Exec = 0x100,
16    Print = 0x200,
17    IntegerVector = 0x400,
18    FloatVector = 0x800,
19    StringVector = 0x1000,
20    BooleanVector = 0x2000,
21  }
22
23  //public static class StackTypeExtensions {
24  //  private static readonly IReadOnlyDictionary<StackTypes, string> StackTypesNameDict = new Dictionary<StackTypes, string> {
25  //    { StackTypes.Integer, "Integer" },
26  //    { StackTypes.Float, "Float" },
27  //    { StackTypes.Char, "Char" },
28  //    { StackTypes.String, "String" },
29  //    { StackTypes.Boolean, "Boolean" },
30  //    { StackTypes.Name, "Name" },
31  //    { StackTypes.Code, "Code" },
32  //    { StackTypes.Exec, "Exec" },
33  //    { StackTypes.Print, "Print" },
34  //    { StackTypes.IntegerVector, "IntegerVector" },
35  //    { StackTypes.FloatVector, "FloatVector" },
36  //    { StackTypes.StringVector, "StringVector" },
37  //    { StackTypes.BooleanVector, "BooleanVector" },
38  //  };
39
40  //  public static string GetName(this StackTypes types) {
41  //    return StackTypesNameDict[types];
42  //  }
43  //}
44}
Note: See TracBrowser for help on using the repository browser.