Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Algorithms.PushGP/OpCodeExtensions.cs @ 14323

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

#2665 Added Unit Test Project, CodeGenerator and refactored project structure

File size: 446 bytes
Line 
1using System;
2using System.Linq;
3
4namespace HeuristicLab.Algorithms.PushGP
5{
6    public static class OpCodeExtensions
7    {
8        public readonly static byte Min = 0;
9        public readonly static byte Max = Enum.GetValues(typeof(OpCode)).Cast<byte>().Last();
10
11        public static bool IsCodeOp(this OpCode opCode)
12        {
13            return opCode >= OpCode.CodeEquals && opCode < OpCode.CodeYankDup;
14        }
15    }
16}
Note: See TracBrowser for help on using the repository browser.