Changeset 18216 for branches/3136_Structural_GP/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Timestamp:
- 02/10/22 19:48:12 (3 years ago)
- Location:
- branches/3136_Structural_GP
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP
- Property svn:mergeinfo changed
/trunk merged: 18203,18208-18211
- Property svn:mergeinfo changed
-
branches/3136_Structural_GP/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding merged: 18210-18211
- Property svn:mergeinfo changed
-
branches/3136_Structural_GP/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj
r17344 r18216 11 11 <RootNamespace>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding</RootNamespace> 12 12 <AssemblyName>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4</AssemblyName> 13 <TargetFrameworkVersion>v4. 6.1</TargetFrameworkVersion>13 <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> 14 14 <TargetFrameworkProfile> 15 15 </TargetFrameworkProfile> -
branches/3136_Structural_GP/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeNode.cs
r17180 r18216 50 50 void InsertSubtree(int index, ISymbolicExpressionTreeNode tree); 51 51 void RemoveSubtree(int index); 52 void ReplaceSubtree(int index, ISymbolicExpressionTreeNode tree); 53 void ReplaceSubtree(ISymbolicExpressionTreeNode orig, ISymbolicExpressionTreeNode repl); 52 54 53 55 void ResetLocalParameters(IRandom random); -
branches/3136_Structural_GP/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeNode.cs
r17180 r18216 177 177 ResetCachedValues(); 178 178 } 179 public virtual void ReplaceSubtree(int index, ISymbolicExpressionTreeNode repl) { 180 subtrees[index].Parent = null; 181 subtrees[index] = repl; 182 repl.Parent = this; 183 ResetCachedValues(); 184 } 185 public virtual void ReplaceSubtree(ISymbolicExpressionTreeNode old, ISymbolicExpressionTreeNode repl) { 186 var index = IndexOfSubtree(old); 187 subtrees[index].Parent = null; 188 subtrees[index] = repl; 189 repl.Parent = this; 190 ResetCachedValues(); 191 } 179 192 180 193 public IEnumerable<ISymbolicExpressionTreeNode> IterateNodesBreadth() {
Note: See TracChangeset
for help on using the changeset viewer.