Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/PooledPushInterpreter.cs

Last change on this file was 15771, checked in by bburlacu, 7 years ago

#2895: Add solution skeleton for PushGP with genealogy analysis.

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