Tuesday, August 24, 2004 12:26 AM
pgolde
More code and documentation
Sorry that it has been so long since I've been able to make a post. I have not been completely idle, however, and I have a new drop for your enjoyment. It can be downloaded here. The good news is that I've finally been able to generate decent looking documentation, which can be browsed in two ways: either by loading the PowerCollections.chm file in the download, or by browsing it on the web here. I'm hoping that people will study the documentation in some detail and make comments, even if they can't actually run the code. Everything that is coded is documented and has a unit test, so hopefully there aren't too many bugs.
Along with the OrderedDictionary class that was in the last drop, there are several new classes. OrderedSet is a set of unique items that are maintained in sorted order. Adding, removing, and testing for containment are all O(log N) operations. OrderedBag is very similar, except that duplicate items are allowed. Algorithms is a class that contains only static methods, which implement a number of algorithms that operate on the standard collection interfaces such as IEnumerable, ICollection, and IList. This class is not yet complete; many more methods are still to come.
Finally, there are two utility structs: Pair and Triple. These classes store arbitrary pairs and triples of types, and are especially useful for use as the keys of dictionaries.
Take a look, and let us know what you think!