- Timestamp:
- 06/15/11 23:02:01 (14 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionGrammar.cs
r6284 r6415 45 45 46 46 void SetSubtreeCount(ISymbol symbol, int minimumSubtreeCount, int maximumSubtreeCount); 47 48 void StartGrammarManipulation(); 49 void FinishedGrammarManipulation(); 47 50 } 48 51 } -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammar.cs
r6284 r6415 198 198 base.SetSubtreeCount(symbol, minimumSubtreeCount, maximumSubtreeCount); 199 199 } 200 201 private bool suppressEvents = false; 202 void ISymbolicExpressionGrammar.StartGrammarManipulation() { 203 suppressEvents = true; 204 } 205 void ISymbolicExpressionGrammar.FinishedGrammarManipulation() { 206 suppressEvents = false; 207 OnChanged(); 208 } 209 210 protected override void OnChanged() { 211 if (!suppressEvents) base.OnChanged(); 212 } 200 213 #endregion 201 214 } -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammarBase.cs
r6409 r6415 64 64 #endregion 65 65 66 pr otectedbool suppressEvents;66 private bool suppressEvents; 67 67 protected Dictionary<string, ISymbol> symbols; 68 68 protected Dictionary<string, Tuple<int, int>> symbolSubtreeCount;
Note: See TracChangeset
for help on using the changeset viewer.