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 | |
---|
1 | using System;
|
---|
2 | using System.Linq;
|
---|
3 |
|
---|
4 | namespace 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.