Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/PooledPushInterpreter.cs @ 17104

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

#2665 Started Plush Encoding, Added Zero Error Individual Count Analyzer

File size: 643 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Interpreter {
2
3  using HeuristicLab.Core;
4  using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
5
6  public class PooledPushInterpreter : PushInterpreter {
7
8    private readonly PushInterpreterPool pool;
9
10    public PooledPushInterpreter(PushInterpreterPool pool, IReadOnlyPushConfiguration config, InterpreterPoolContainer poolContainer, IRandom random = null)
11      : base(config, random, poolContainer) {
12      this.pool = pool;
13    }
14
15    public override void Dispose() {
16      base.Dispose();
17      ClearStacks();
18      pool.Free(this);
19    }
20  }
21}
Note: See TracBrowser for help on using the repository browser.