Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/17 20:42:40 (7 years ago)
Author:
pkimmesw
Message:

#2665 Made ErcOptions checkable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/Expression.cs

    r14834 r14905  
    22  using System;
    33  using System.Collections.Generic;
    4 
    5   using HeuristicLab.Problems.ProgramSynthesis.Push.Attributes;
    64  using HeuristicLab.Problems.ProgramSynthesis.Push.Data.Pool;
    75
     
    108  [Serializable]
    119  public abstract class Expression : IPooledObject {
    12     public bool IsProgram { get { return this.GetType() == typeof(PushProgram); } }
     10    public bool IsProgram { get { return GetType() == typeof(PushProgram); } }
    1311
    1412    public static readonly IReadOnlyCollection<Expression> EmptyContainer = new Expression[0];
     
    1816      get
    1917      {
    20         var attribute = (PushExpressionAttribute)Attribute.GetCustomAttribute(this.GetType(), typeof(PushExpressionAttribute));
    21 
    22         return attribute != null
    23           ? attribute.ExpressionName
    24           : string.Empty;
     18        return ExpressionTable.TypeToAttributeTable[GetType()].ExpressionName;
    2519      }
    2620    }
     21
     22    //public abstract bool IsNoop(IInternalPushInterpreter interpreter);
    2723
    2824    public abstract bool Eval(IInternalPushInterpreter interpreter);
Note: See TracChangeset for help on using the changeset viewer.