Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/12/16 14:14:11 (7 years ago)
Author:
abeham
Message:

#2701:

  • Added TryGetBy(First|Second) method to BidirectionalDictionary
  • Updated linear linkage encoding
    • Added move generator and moves for shift, merge, split, and extract moves
    • Added unit test (Apply/Undo)
  • Updated MemPR (linear linkage)
    • Added basic tabu walk
  • Fixed bug in MemPR (permutation)
  • Updated Tests project
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MemPRAlgorithm/HeuristicLab.Collections/3.3/BidirectionalDictionary.cs

    r14185 r14477  
    135135    }
    136136
     137    public bool TryGetByFirst(TFirst key, out TSecond secondValue) {
     138      return firstToSecond.TryGetValue(key, out secondValue);
     139    }
     140
     141    public bool TryGetBySecond(TSecond key, out TFirst firstValue) {
     142      return secondToFirst.TryGetValue(key, out firstValue);
     143    }
     144
    137145    public void Clear() {
    138146      firstToSecond.Clear();
Note: See TracChangeset for help on using the changeset viewer.