ICollection<T>
, ICollectionValue<T>
, IComparer<T>
, IDictionary<K,V>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IHasher<T>
, IIndexed<T>
, IIndexedSorted<T>
, IList<T>
, IPersistentSorted<T>
, IPriorityQueue<T>
, IQueue<T>
, ISequenced<T>
, ISorted<T>
, ISortedDictionary<K,V>
, IStack<T>
ArrayBase<T>
, ArrayList<T>
, C5Random
, CollectionBase<T>
, CollectionValueBase<T>
, ComparerBuilder.FromComparable<T>
, DefaultReferenceTypeHasher<T>
, DefaultValueTypeHasher<T>
, DictionaryBase<K,V>
, EnumerableBase<T>
, GuardedCollection<T>
, GuardedCollectionValue<T>
, GuardedDictionary<K,V>
, GuardedDirectedCollectionValue<T>
, GuardedDirectedEnumerable<T>
, GuardedEnumerable<T>
, GuardedEnumerator<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
, GuardedSortedDictionary<K,V>
, HashBag<T>
, HashDictionary<K,V>
, HashedArrayList<T>
, HashedLinkedList<T>
, HasherBuilder.ByInvoke<T>
, HasherBuilder.ByPrototype<T>
, HasherBuilder.ByRTCG
, HasherBuilder.SequencedHasher<S,W>
, HasherBuilder.UnsequencedHasher<S,W>
, HashSet<T>
, IntervalHeap<T>
, IntHasher
, KeyValuePairComparer<K,V>
, KeyValuePairHasher<K,V>
, LinkedList<T>
, NaturalComparer<T>
, NaturalComparerO<T>
, SequencedBase<T>
, SortedArray<T>
, Sorting
, TestedAttribute
, TreeBag<T>
, TreeBag<T>.Enumerator
, TreeBag<T>.Range.Enumerator
, TreeBag<T>.SnapEnumerator
, TreeDictionary<K,V>
, TreeSet<T>
, TreeSet<T>.Enumerator
, TreeSet<T>.Range.Enumerator
, TreeSet<T>.SnapEnumerator
EnumerationDirection
, HashSet<T>.Feature
, KeyValuePair<K,V>
, SortedArray<T>.Feature
, Speed
, TreeBag<T>.Feature
, TreeSet<T>.Feature
Applier<T>
, Filter<T>
, Mapper<T,V>
ICollectionValue<T>
IEnumerable<T>
,
this interface does not prescribe any operations to initialize or update the
collection. The main usage for this interface is to be the return type of
query operations on generic collection.System.Collections.Generic.IEnumerable<T>
ICollection<T>
, IDirectedCollectionValue<T>
, IExtensible<T>
, IIndexed<T>
, IIndexedSorted<T>
, IList<T>
, IPersistentSorted<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
ArrayBase<T>
, ArrayList<T>
, CollectionBase<T>
, CollectionValueBase<T>
, GuardedCollection<T>
, GuardedCollectionValue<T>
, GuardedDirectedCollectionValue<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
, HashBag<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, HashSet<T>
, IntervalHeap<T>
, LinkedList<T>
, SequencedBase<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
int Count
, Speed CountSpeed
bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, void CopyTo(T[] a, int i)
, bool Exists(Filter<T> filter)
, T[] ToArray()
int Count |
Value: The number of items in this collection |
Speed CountSpeed |
Value: A characterization of the speed of the
Count property in this collection.The value is symbolic indicating the type of asymptotic complexity
in terms of the size of this collection (worst-case or amortized as
relevant). |
void CopyTo(T[] a, int i) |
Copy the items of this collection to a contiguous part of an array.
|
||||
T[] ToArray() |
Create an array with the items of this collection (in the same order as an
enumerator would output them).
|
||||
void Apply(Applier<T> a) |
Apply a delegate to all items of this collection.
|
||||
bool Exists(Filter<T> filter) |
Check if there exists an item that satisfies a
specific predicate in this collection.
|
||||
bool All(Filter<T> filter) |
Check if all items in this collection satisfies a specific predicate.
|
IDirectedEnumerable<T>
System.Collections.Generic.IEnumerable<T>
IDirectedCollectionValue<T>
, IIndexed<T>
, IIndexedSorted<T>
, IList<T>
, IPersistentSorted<T>
, ISequenced<T>
, ISorted<T>
ArrayList<T>
, GuardedDirectedCollectionValue<T>
, GuardedDirectedEnumerable<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, LinkedList<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
EnumerationDirection Direction
IDirectedEnumerable<T> Backwards()
EnumerationDirection Direction |
Value: The enumeration direction relative to the original collection.
Forwards if same, else Backwards |
IDirectedEnumerable<T> Backwards() |
Create a collection containing the same items as this collection, but
whose enumerator will enumerate the items backwards. The new collection
will become invalid if the original is modified. Method typicaly used as in
foreach (T x in coll.Backwards()) {...}
|
IDirectedCollectionValue<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
, IDirectedEnumerable<T>
IIndexed<T>
, IIndexedSorted<T>
, IList<T>
, IPersistentSorted<T>
, ISequenced<T>
, ISorted<T>
ArrayList<T>
, GuardedDirectedCollectionValue<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, LinkedList<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
IDirectedCollectionValue<T> Backwards()
IDirectedCollectionValue<T> Backwards() |
Create a collection containing the same items as this collection, but
whose enumerator will enumerate the items backwards. The new collection
will become invalid if the original is modified. Method typicaly used as in
foreach (T x in coll.Backwards()) {...}
|
IExtensible<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
ICollection<T>
, IIndexed<T>
, IIndexedSorted<T>
, IList<T>
, IPersistentSorted<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
ArrayList<T>
, GuardedCollection<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
, HashBag<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, HashSet<T>
, IntervalHeap<T>
, LinkedList<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
bool AllowsDuplicates
, bool IsEmpty
, object SyncRoot
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool Check()
bool AllowsDuplicates |
Value: False if this collection has set semantics, true if bag semantics. |
object SyncRoot |
Value: An object to be used for locking to enable multi threaded code to acces this collection safely. |
bool IsEmpty |
Value: True if this collection is empty. |
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection. If this
collection has set semantics, only items not already in the collection
will be added.
|
||||
bool Add(T item) |
Add an item to this collection if possible. If this collection has set
semantics, the item will be added if not already in the collection. If
bag semantics, the item will always be added.
|
||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add the elements from another collection to this collection. If this
collection has set semantics, only items not already in the collection
will be added.
|
||||
bool Check() |
Check the integrity of the internal data structures of this collection.
This is only relevant for developers of the library
|
ICollection<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
, IExtensible<T>
IIndexed<T>
, IIndexedSorted<T>
, IList<T>
, IPersistentSorted<T>
, ISequenced<T>
, ISorted<T>
ArrayList<T>
, GuardedCollection<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
, HashBag<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, HashSet<T>
, LinkedList<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
Speed ContainsSpeed
, bool IsReadOnly
void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, bool Equals(ICollection<T> that)
, bool Find(ref T item)
, bool FindOrAdd(ref T item)
, int GetHashCode()
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, bool Update(T item)
, bool UpdateOrAdd(T item)
bool IsReadOnly |
Value: True if this collection is read only.If true any call of an updating operation will throw an
InvalidOperationException |
Speed ContainsSpeed |
Value: A characterization of the speed of lookup operations
(Contains() etc.) of the implementation of this list.The value is symbolic indicating the type of asymptotic complexity
in terms of the size of this collection (worst-case or amortized as
relevant). |
int GetHashCode() |
The hashcode is defined as the sum of h(item) over the items
of the collection, where the function h is???
|
||||
bool Equals(ICollection<T> that) |
Compare the contents of this collection to another one without regards to
the sequence order. The comparison will use this collection's itemhasher
to compare individual items.
|
||||
bool Contains(T item) |
Check if this collection contains (an item equivalent to according to the
itemhasher) a particular value.
|
||||
int ContainsCount(T item) |
Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.
|
||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if this collection contains all the values in another collection.
If this collection has bag semantics (NoDuplicates==false )
the check is made with respect to multiplicities, else multiplicities
are not taken into account.
|
||||
bool Find(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found.
|
||||
bool FindOrAdd(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found. Else, add the item to the collection.
|
||||
bool Update(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value. If the collection has bag semantics,
it is implementation dependent if this updates all equivalent copies in
the collection or just one.
|
||||
bool UpdateOrAdd(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value; else add the value to the collection.
|
||||
bool Remove(T item) |
Remove a particular item from this collection. If the collection has bag
semantics only one copy equivalent to the supplied item is removed.
|
||||
bool RemoveWithReturn(ref T item) |
Remove a particular item from this collection if found. If the collection
has bag semantics only one copy equivalent to the supplied item is removed,
which one is implementation dependent.
If an item was removed, report a binary copy of the actual item removed in
the argument.
|
||||
void RemoveAllCopies(T item) |
Remove all items equivalent to a given value.
|
||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in another collection from this one. If this collection
has bag semantics, take multiplicities into account.
|
||||
void Clear() |
Remove all items from this collection. | ||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items not in some other collection from this one. If this collection
has bag semantics, take multiplicities into account.
|
ISequenced<T>
Implementations of this interface must compute the hash code and equality exactly as prescribed in the method definitions in order to be consistent with other collection classes implementing this interface.
This interface is usually implemented by explicit interface implementation, not as ordinary virtual methods.
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
IIndexed<T>
, IIndexedSorted<T>
, IList<T>
, IPersistentSorted<T>
, ISorted<T>
ArrayList<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, LinkedList<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
bool Equals(ISequenced<T> that)
, int GetHashCode()
int GetHashCode() |
The hashcode is defined as h(...h(h(x1),x2)...,xn) for
h(a,b)=31*a+b and the x's the hash codes of
|
||||
bool Equals(ISequenced<T> that) |
Compare this sequenced collection to another one in sequence order.
|
IIndexed<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, ISequenced<T>
IIndexedSorted<T>
, IList<T>
ArrayList<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, LinkedList<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
T this[int i]
, IDirectedCollectionValue<T> this[int start, int count]
int IndexOf(T item)
, int LastIndexOf(T item)
, T RemoveAt(int i)
, void RemoveInterval(int start, int count)
T this[int i] |
Value: The i'th item of this list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||
IDirectedCollectionValue<T> this[int start, int count] |
Value: The directed collection of items in a specific index interval.
Throws System.IndexOutOfRangeException .
|
int IndexOf(T item) |
Searches for an item in the list going forwrds from the start.
|
||||
int LastIndexOf(T item) |
Searches for an item in the list going backwords from the end.
|
||||
T RemoveAt(int i) |
Remove the item at a specific position of the list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||
void RemoveInterval(int start, int count) |
Remove all items in an index interval.
Throws System.IndexOutOfRangeException ???.
|
IStack<T>
IList<T>
ArrayList<T>
, GuardedList<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, LinkedList<T>
T Pop()
, void Push(T item)
void Push(T item) |
Push an item to the top of the stack.
|
||
T Pop() |
Pop the item at the top of the stack from the stack.
|
IQueue<T>
IList<T>
ArrayList<T>
, GuardedList<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, LinkedList<T>
T DeQueue()
, void EnQueue(T item)
void EnQueue(T item) |
Enqueue an item at the back of the queue.
|
||
T DeQueue() |
Dequeue an item from the front of the queue.
|
IList<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IQueue<T>
, ISequenced<T>
, IStack<T>
ArrayList<T>
, GuardedList<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, LinkedList<T>
bool FIFO
, T First
, T this[int i]
, T Last
, int Offset
, IList<T> Underlying
IList<T> FindAll(Filter<T> filter)
, void Insert(int i, T item)
, void InsertAfter(T item, T target)
, void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items)
, void InsertBefore(T item, T target)
, void InsertFirst(T item)
, void InsertLast(T item)
, bool IsSorted(IComparer<T> c)
, IList<V> Map<V>(Mapper<T,V> mapper)
, IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher)
, T Remove()
, T RemoveFirst()
, T RemoveLast()
, void Reverse()
, void Reverse(int start, int count)
, void Shuffle()
, void Shuffle(System.Random rnd)
, void Slide(int offset)
, void Slide(int offset, int size)
, void Sort(IComparer<T> c)
, IList<T> View(int start, int count)
T First |
Value: The first item in this list.
Throws System.InvalidOperationException if this list is empty. |
||
T Last |
Value: The last item in this list.
Throws System.InvalidOperationException if this list is empty. |
||
bool FIFO |
Value: True if the Remove() operation removes from the
start of the list, false if it removes from the end.Since Add(T item) always add at the end of the list,
this describes if list has FIFO or LIFO semantics. |
||
T this[int i] |
Value: The i'th item of this list.On this list, this indexer is read/write.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||
IList<T> Underlying |
Value: Underlying list for view.Null if this list is not a view. | ||
int Offset |
Value: Offset for this list view or 0 for an underlying list. |
IList<V> Map<V>(Mapper<T,V> mapper) |
Create a new list consisting of the results of mapping all items of this
list. The new list will use the default hasher for the item type V.
|
||||||
IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher) |
Create a new list consisting of the results of mapping all items of this
list. The new list will use a specified hasher for the item type.
|
||||||
void Insert(int i, T item) |
Insert an item at a specific index location in this list.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
|
||||||
void InsertFirst(T item) |
Insert an item at the front of this list.
Throws System.InvalidOperationException if the list has
NoDuplicates=true and the item is
already in the list.
|
||||||
void InsertLast(T item) |
Insert an item at the back of this list.
Throws System.InvalidOperationException if the list has
NoDuplicates=true and the item is
already in the list.
|
||||||
void InsertBefore(T item, T target) |
Insert an item right before the first occurrence of some target item.
Throws System.InvalidOperationException if target is not found
or if the list has NoDuplicates=true and the item is
already in the list.
|
||||||
void InsertAfter(T item, T target) |
Insert an item right after the last(???) occurrence of some target item.
Throws System.InvalidOperationException if target is not found
or if the list has NoDuplicates=true and the item is
already in the list.
|
||||||
void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items) |
Insert into this list all items from an enumerable collection starting
at a particular index.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
Throws System.InvalidOperationException if the list has
NoDuplicates=true and one of the items to insert is
already in the list.
|
||||||
IList<T> FindAll(Filter<T> filter) |
Create a new list consisting of the items of this list satisfying a
certain predicate.
|
||||||
T Remove() |
Remove one item from the list: from the front if FIFO
is true, else from the back.
Throws System.InvalidOperationException if this list is empty.
|
||||||
T RemoveFirst() |
Remove one item from the fromnt of the list.
Throws System.InvalidOperationException if this list is empty.
|
||||||
T RemoveLast() |
Remove one item from the back of the list.
Throws System.InvalidOperationException if this list is empty.
|
||||||
IList<T> View(int start, int count) |
Create a list view on this list.
Throws System.ArgumentOutOfRangeException if the view would not fit into
this list.
|
||||||
void Slide(int offset) |
Slide this list view along the underlying list.
Throws System.InvalidOperationException if this list is not a view.
Throws System.ArgumentOutOfRangeException if the operation
would bring either end of the view outside the underlying list.
|
||||||
void Slide(int offset, int size) |
Slide this list view along the underlying list, changing its size.
Throws System.InvalidOperationException if this list is not a view.
Throws System.ArgumentOutOfRangeException if the operation
would bring either end of the view outside the underlying list.
|
||||||
void Reverse() |
Reverse the list so the items are in the opposite sequence order. | ||||||
void Reverse(int start, int count) |
Reverst part of the list so the items are in the opposite sequence order.
Throws System.ArgumentException if the count is negative.
Throws System.ArgumentOutOfRangeException if the part does not fit
into the list.
|
||||||
bool IsSorted(IComparer<T> c) |
Check if this list is sorted according to a specific sorting order.
|
||||||
void Sort(IComparer<T> c) |
Sort the items of the list according to a specific sorting order.
|
||||||
void Shuffle() |
Randonmly shuffle the items of this list. | ||||||
void Shuffle(System.Random rnd) |
Shuffle the items of this list according to a specific random source.
|
IPriorityQueue<T>
IComparer<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
, IExtensible<T>
IIndexedSorted<T>
, IPersistentSorted<T>
, ISorted<T>
GuardedIndexedSorted<T>
, GuardedSorted<T>
, IntervalHeap<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
IComparer<T> Comparer
T DeleteMax()
, T DeleteMin()
, T FindMax()
, T FindMin()
IComparer<T> Comparer |
Value: The comparerThe comparer object supplied at creation time for this collection |
T FindMin() |
Find the current least item of this priority queue.
|
||
T DeleteMin() |
Remove the least item from this priority queue.
|
||
T FindMax() |
Find the current largest item of this priority queue.
|
||
T DeleteMax() |
Remove the largest item from this priority queue.
|
ISorted<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IPriorityQueue<T>
, ISequenced<T>
IIndexedSorted<T>
, IPersistentSorted<T>
GuardedIndexedSorted<T>
, GuardedSorted<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
void AddSorted(System.Collections.Generic.IEnumerable<T> items)
, bool Cut(System.IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid)
, T Predecessor(T item)
, IDirectedCollectionValue<T> RangeAll()
, IDirectedEnumerable<T> RangeFrom(T bot)
, IDirectedEnumerable<T> RangeFromTo(T bot, T top)
, IDirectedEnumerable<T> RangeTo(T top)
, void RemoveRangeFrom(T low)
, void RemoveRangeFromTo(T low, T hi)
, void RemoveRangeTo(T hi)
, T Successor(T item)
, T WeakPredecessor(T item)
, T WeakSuccessor(T item)
T Predecessor(T item) |
Find the strict predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is less than or equal to the minimum of this collection.)
|
||||||||||||
T Successor(T item) |
Find the strict successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is greater than or equal to the maximum of this collection.)
|
||||||||||||
T WeakPredecessor(T item) |
Find the weak predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than or equal to the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is less than the minimum of this collection.)
|
||||||||||||
T WeakSuccessor(T item) |
Find the weak successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than or equal to the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is greater than the maximum of this collection.)
|
||||||||||||
bool Cut(System.IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid) |
Perform a search in the sorted collection for the ranges in which a
non-decreasing function from the item type to int is
negative, zero respectively positive. If the supplied cut function is
not non-decreasing, the result of this call is undefined.
|
||||||||||||
IDirectedEnumerable<T> RangeFrom(T bot) |
Query this sorted collection for items greater than or equal to a supplied value.
|
||||||||||||
IDirectedEnumerable<T> RangeFromTo(T bot, T top) |
Query this sorted collection for items between two supplied values.
|
||||||||||||
IDirectedEnumerable<T> RangeTo(T top) |
Query this sorted collection for items less than a supplied value.
|
||||||||||||
IDirectedCollectionValue<T> RangeAll() |
Create a directed collection with the same items as this collection.
|
||||||||||||
void AddSorted(System.Collections.Generic.IEnumerable<T> items) |
Add all the items from another collection with an enumeration order that
is increasing in the items.
Throws System.ArgumentException if the enumerated items turns out
not to be in increasing order.
|
||||||||||||
void RemoveRangeFrom(T low) |
Remove all items of this collection above or at a supplied threshold.
|
||||||||||||
void RemoveRangeFromTo(T low, T hi) |
Remove all items of this collection between two supplied thresholds.
|
||||||||||||
void RemoveRangeTo(T hi) |
Remove all items of this collection below a supplied threshold.
|
IIndexedSorted<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
GuardedIndexedSorted<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
int CountFrom(T bot)
, int CountFromTo(T bot, T top)
, int CountTo(T top)
, IIndexedSorted<T> FindAll(Filter<T> f)
, IIndexedSorted<V> Map<V>(Mapper<T,V> m, IComparer<V> c)
, IDirectedCollectionValue<T> RangeFrom(T bot)
, IDirectedCollectionValue<T> RangeFromTo(T bot, T top)
, IDirectedCollectionValue<T> RangeTo(T top)
IIndexedSorted<V> Map<V>(Mapper<T,V> m, IComparer<V> c) |
Create a new indexed sorted collection consisting of the results of
mapping all items of this list.
Throws System.ArgumentException if the map is not increasing over
the items of this collection (with respect to the two given comparison
relations).
|
||||||
int CountFrom(T bot) |
Determine the number of items at or above a supplied threshold.
|
||||||
int CountFromTo(T bot, T top) |
Determine the number of items between two supplied thresholds.
|
||||||
int CountTo(T top) |
Determine the number of items below a supplied threshold.
|
||||||
IDirectedCollectionValue<T> RangeFrom(T bot) |
Query this sorted collection for items greater than or equal to a supplied value.
|
||||||
IDirectedCollectionValue<T> RangeFromTo(T bot, T top) |
Query this sorted collection for items between two supplied values.
|
||||||
IDirectedCollectionValue<T> RangeTo(T top) |
Query this sorted collection for items less than a supplied value.
|
||||||
IIndexedSorted<T> FindAll(Filter<T> f) |
Create a new indexed sorted collection consisting of the items of this
indexed sorted collection satisfying a certain predicate.
|
IDictionary<K,V>
System.Collections.Generic.IEnumerable<KeyValuePair<K,V>>
ISortedDictionary<K,V>
DictionaryBase<K,V>
, GuardedDictionary<K,V>
, GuardedSortedDictionary<K,V>
, HashDictionary<K,V>
, TreeDictionary<K,V>
int Count
, bool IsReadOnly
, V this[K key]
, ICollectionValue<K> Keys
, object SyncRoot
, ICollectionValue<V> Values
void Add(K key, V val)
, bool Check()
, void Clear()
, bool Contains(K key)
, bool Find(K key, out V val)
, bool FindOrAdd(K key, ref V val)
, bool Remove(K key)
, bool Remove(K key, out V val)
, bool Update(K key, V val)
, bool UpdateOrAdd(K key, V val)
V this[K key] |
Value: The value corresponding to the keyIndexer for dictionary.
Throws System.InvalidOperationException if no entry is found.
|
||
int Count |
Value: The number of entrues in the dictionary | ||
bool IsReadOnly |
Value: True if dictionary is read only | ||
object SyncRoot |
Value: The distinguished object to use for locking to synchronize multithreaded access | ||
ICollectionValue<K> Keys |
Value: A collection containg the all the keys of the dictionary | ||
ICollectionValue<V> Values |
Value: A collection containing all the values of the dictionary |
void Add(K key, V val) |
Add a new (key, value) pair (a mapping) to the dictionary.
Throws System.InvalidOperationException if there already is an entry with the same key.
|
||||||
bool Remove(K key) |
Remove an entry with a given key from the dictionary
|
||||||
bool Remove(K key, out V val) |
Remove an entry with a given key from the dictionary and report its value.
|
||||||
void Clear() |
Remove all entries from the dictionary | ||||||
bool Contains(K key) |
Check if there is an entry with a specified key
|
||||||
bool Find(K key, out V val) |
Check if there is an entry with a specified key and report the corresponding
value if found. This can be seen as a safe form of "val = this[key]".
|
||||||
bool Update(K key, V val) |
Look for a specific key in the dictionary and if found replace the value with a new one.
This can be seen as a non-adding version of "this[key] = val".
|
||||||
bool FindOrAdd(K key, ref V val) |
Look for a specific key in the dictionary. If found, report the corresponding value,
else add an entry with the key and the supplied value.
|
||||||
bool UpdateOrAdd(K key, V val) |
Update value in dictionary corresponding to key if found, else add new entry.
More general than "this[key] = val;" by reporting if key was found.
|
||||||
bool Check() |
Check the integrity of the internal data structures of this dictionary.
Only avaliable in DEBUG builds???
|
ISortedDictionary<K,V>
System.Collections.Generic.IEnumerable<KeyValuePair<K,V>>
, IDictionary<K,V>
GuardedSortedDictionary<K,V>
, TreeDictionary<K,V>
KeyValuePair<K,V> Predecessor(K key)
, KeyValuePair<K,V> Successor(K key)
, KeyValuePair<K,V> WeakPredecessor(K key)
, KeyValuePair<K,V> WeakSuccessor(K key)
KeyValuePair<K,V> Predecessor(K key) |
Find the entry with the largest key less than a given key.
Throws System.InvalidOperationException if there is no such entry.
|
||||
KeyValuePair<K,V> Successor(K key) |
Find the entry with the least key greater than a given key.
Throws System.InvalidOperationException if there is no such entry.
|
||||
KeyValuePair<K,V> WeakPredecessor(K key) |
Find the entry with the largest key less than or equal to a given key.
Throws System.InvalidOperationException if there is no such entry.
|
||||
KeyValuePair<K,V> WeakSuccessor(K key) |
Find the entry with the least key greater than or equal to a given key.
Throws System.InvalidOperationException if there is no such entry.
|
IComparer<T>
Implementations of this interface must asure that the method is self-consistent and defines a sorting order on items, or state precise conditions under which this is true.
Implementations must assure that repeated calls of the method to the same (in reference or binary identity sense) arguments will return values with the same sign (-1, 0 or +1), or state precise conditions under which the user can be assured repeated calls will return the same sign.
Implementations of this interface must always return values from the method and never throw exceptions.
This interface is identical to System.Collections.Generic.IComparer<T>
KeyValuePairComparer<K,V>
, NaturalComparer<T>
, NaturalComparerO<T>
int Compare(T a, T b)
int Compare(T a, T b) |
Compare two items with respect to this item comparer
|
IHasher<T>
Implementations of this interface must assure that the methods are consistent, i.e. that whenever two items i1 and i2 satisfies that Equals(i1,i2) returns true, then GetHashCode returns the same values for i1 and i2.
Implementations of this interface must assure that repeated calls of the methods to the same (in reference or binary identity sense) arguments will return the same values, or state precise conditions under which the user can be assured repeated calls will return the same values.
Implementations of this interface must always return values from the methods and never throw exceptions.
This interface is similar in function to System.IKeyComparer<T>
DefaultReferenceTypeHasher<T>
, DefaultValueTypeHasher<T>
, HasherBuilder.ByInvoke<T>
, HasherBuilder.SequencedHasher<S,W>
, HasherBuilder.UnsequencedHasher<S,W>
, IntHasher
, KeyValuePairHasher<K,V>
bool Equals(T i1, T i2)
, int GetHashCode(T item)
int GetHashCode(T item) |
Get the hash code with respect to this item hasher
|
||||||
bool Equals(T i1, T i2) |
Check if two items are equal with respect to this item hasher
|
IPersistentSorted<T>
System.Collections.Generic.IEnumerable<T>
, System.IDisposable
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
TreeBag<T>
, TreeSet<T>
ISorted<T> Snapshot()
ISorted<T> Snapshot() |
Make a (read-only) snap shot of this collection.
|
EnumerableBase<T>
System.Collections.Generic.IEnumerable<T>
object
ArrayBase<T>
, ArrayList<T>
, CollectionBase<T>
, CollectionValueBase<T>
, DictionaryBase<K,V>
, HashBag<T>
, HashDictionary<K,V>
, HashedArrayList<T>
, HashedLinkedList<T>
, HashSet<T>
, IntervalHeap<T>
, LinkedList<T>
, SequencedBase<T>
, SortedArray<T>
, TreeBag<T>
, TreeDictionary<K,V>
, TreeSet<T>
EnumerableBase<T>()
int countItems(System.Collections.Generic.IEnumerable<T> items)
, bool Equals(object obj)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
P EnumerableBase<T>() |
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this collection.
|
||||
N S P int countItems(System.Collections.Generic.IEnumerable<T> items) |
Count the number of items in an enumerable by enumeration
|
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
CollectionValueBase<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
object
, EnumerableBase<T>
ArrayBase<T>
, ArrayList<T>
, CollectionBase<T>
, HashBag<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, HashSet<T>
, IntervalHeap<T>
, LinkedList<T>
, SequencedBase<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
int Count
, Speed CountSpeed
CollectionValueBase<T>()
bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, T[] ToArray()
, string ToString()
int Count |
Value: The number of items in this collection. |
Speed CountSpeed |
Value: A characterization of the speed of the
Count property in this collection.The value is symbolic indicating the type of asymptotic complexity
in terms of the size of this collection (worst-case or amortized as
relevant). |
P CollectionValueBase<T>() |
void CopyTo(T[] a, int i) |
Copy the items of this collection to part of an array.
Throws System.ArgumentOutOfRangeException if i is negative.
Throws System.ArgumentException if the array does not have room for the items.
|
||||
T[] ToArray() |
Create an array with the items of this collection (in the same order as an
enumerator would output them).
|
||||
void Apply(Applier<T> a) |
Apply an Applier<T> to this enumerable
|
||||
bool Exists(Filter<T> filter) |
Check if there exists an item that satisfies a
specific predicate in this collection.
|
||||
bool All(Filter<T> filter) |
Check if all items in this collection satisfies a specific predicate.
|
||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this collection.
|
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
CollectionBase<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
ArrayBase<T>
, ArrayList<T>
, HashBag<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, HashSet<T>
, LinkedList<T>
, SequencedBase<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
bool isReadOnly
, IHasher<T> itemhasher
, int size
, int stamp
int Count
, Speed CountSpeed
, bool IsEmpty
, bool IsReadOnly
, object SyncRoot
CollectionBase<T>()
bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, void checkRange(int start, int count)
, int ComputeHashCode(ICollectionValue<T> items, IHasher<T> itemhasher)
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, void modifycheck(int thestamp)
, bool StaticEquals(ICollection<T> tit, ICollection<T> tat, IHasher<T> itemhasher)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, void updatecheck()
P bool isReadOnly |
The underlying field of the ReadOnly property |
P int stamp |
The current stamp value |
P int size |
The number of items in the collection |
P IHasher<T> itemhasher |
The item hasher of the collection |
bool IsReadOnly |
Value: True if this collection is read only |
int Count |
Value: The size of this collection |
Speed CountSpeed |
Value: A characterization of the speed of the
Count property in this collection.The value is symbolic indicating the type of asymptotic complexity
in terms of the size of this collection (worst-case or amortized as
relevant). |
object SyncRoot |
Value: A distinguished object to use for locking to synchronize multithreaded access |
bool IsEmpty |
Value: True is this collection is empty |
P CollectionBase<T>() |
N P void checkRange(int start, int count) |
Utility method for range checking.
Throws System.ArgumentOutOfRangeException if the start or count is negative
Throws System.ArgumentException if the range does not fit within collection size.
|
||||||||
N S int ComputeHashCode(ICollectionValue<T> items, IHasher<T> itemhasher) |
Compute the unsequenced hash code of a collection
|
||||||||
N S bool StaticEquals(ICollection<T> tit, ICollection<T> tat, IHasher<T> itemhasher) |
Examine if tit and tat are equal as unsequenced collections
using the specified item hasher (assumed compatible with the two collections).
|
||||||||
N P int unsequencedhashcode() |
Get the unsequenced collection hash code of this collection: from the cached
value if present and up to date, else (re)compute.
|
||||||||
N P bool unsequencedequals(ICollection<T> that) |
Check if the contents of that is equal to the contents of this
in the unsequenced sense. Using the item hasher of this collection.
|
||||||||
P void modifycheck(int thestamp) |
Throws System.InvalidOperationException if this collection has been updated
since a target time
|
||||||||
P void updatecheck() |
Check if it is valid to perform update operations, and if so increment stamp | ||||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this collection.
|
||||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||||
T[] ToArray() |
Inherited from CollectionValueBase{T}: T[] ToArray() |
||||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||||
string ToString() |
Inherited from object: string ToString() |
||||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||||
P void Finalize() |
Inherited from object: void Finalize() |
SequencedBase<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
ArrayBase<T>
, ArrayList<T>
, HashedArrayList<T>
, HashedLinkedList<T>
, LinkedList<T>
, SortedArray<T>
, TreeBag<T>
, TreeSet<T>
bool isReadOnly
, IHasher<T> itemhasher
, int size
, int stamp
int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool IsEmpty
, bool IsReadOnly
, object SyncRoot
SequencedBase<T>()
bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, void checkRange(int start, int count)
, int ComputeHashCode(ISequenced<T> items, IHasher<T> itemhasher)
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, void modifycheck(int thestamp)
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, bool StaticEquals(ISequenced<T> tit, ISequenced<T> tat, IHasher<T> itemhasher)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, void updatecheck()
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
EnumerationDirection Direction |
Value: The enumeration direction relative to the original collection.
Forwards if same, else Backwards |
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
int Count |
Inherited from CollectionBase{T}: int Count |
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
P SequencedBase<T>() |
N S int ComputeHashCode(ISequenced<T> items, IHasher<T> itemhasher) |
Compute the unsequenced hash code of a collection
|
||||||||
N S bool StaticEquals(ISequenced<T> tit, ISequenced<T> tat, IHasher<T> itemhasher) |
Examine if tit and tat are equal as sequenced collections
using the specified item hasher (assumed compatible with the two collections).
|
||||||||
N P int sequencedhashcode() |
Get the sequenced collection hash code of this collection: from the cached
value if present and up to date, else (re)compute.
|
||||||||
N P bool sequencedequals(ISequenced<T> that) |
Check if the contents of that is equal to the contents of this
in the sequenced sense. Using the item hasher of this collection.
|
||||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this collection.
|
||||||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||||||
P void modifycheck(int thestamp) |
Inherited from CollectionBase{T}: void modifycheck(int thestamp) |
||||||||
P void updatecheck() |
Inherited from CollectionBase{T}: void updatecheck() |
||||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||||
T[] ToArray() |
Inherited from CollectionValueBase{T}: T[] ToArray() |
||||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||||
string ToString() |
Inherited from object: string ToString() |
||||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||||
P void Finalize() |
Inherited from object: void Finalize() |
ArrayBase<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
, SequencedBase<T>
ArrayList<T>
, HashedArrayList<T>
, SortedArray<T>
T[] array
, bool isReadOnly
, IHasher<T> itemhasher
, int offset
, int size
, int stamp
int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool IsEmpty
, bool IsReadOnly
, IDirectedCollectionValue<T> this[int start, int count]
, object SyncRoot
ArrayBase<T>(int capacity, IHasher<T> hasher)
bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void expand()
, void expand(int newcapacity, int newsize)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, void insert(int i, T item)
, object MemberwiseClone()
, void modifycheck(int thestamp)
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, void updatecheck()
P T[] array |
The actual internal array container. Will be extended on demand. |
P int offset |
The offset into the internal array container of the first item. The offset is 0 for a base dynamic array and may be positive for an updatable view into a base dynamic array. |
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
IDirectedCollectionValue<T> this[int start, int count] |
Value: The directed collection of items in a specific index interval.
Throws System.IndexOutOfRangeException .
|
||||
EnumerationDirection Direction |
Inherited from SequencedBase{T}: EnumerationDirection Direction |
||||
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
||||
int Count |
Inherited from CollectionBase{T}: int Count |
||||
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
||||
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
||||
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
ArrayBase<T>(int capacity, IHasher<T> hasher) |
Create an empty ArrayBase object.
|
P void expand() |
Double the size of the internal array. | ||||
P void expand(int newcapacity, int newsize) |
Expand the internal array container.
|
||||
P void insert(int i, T item) |
Insert an item at a specific index, moving items to the right
upwards and expanding the array if necessary.
|
||||
void Clear() |
Remove all items and reset size of internal array container. | ||||
T[] ToArray() |
Create an array containing (copies) of the items of this collection in enumeration order.
|
||||
bool Check() |
Perform an internal consistency (invariant) test on the array base.
|
||||
IDirectedCollectionValue<T> Backwards() |
Create a directed collection with the same contents as this one, but
opposite enumeration sequence.
|
||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this array based collection.
|
||||
N P int sequencedhashcode() |
Inherited from SequencedBase{T}: int sequencedhashcode() |
||||
N P bool sequencedequals(ISequenced<T> that) |
Inherited from SequencedBase{T}: bool sequencedequals(ISequenced<T> that) |
||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||
P void modifycheck(int thestamp) |
Inherited from CollectionBase{T}: void modifycheck(int thestamp) |
||||
P void updatecheck() |
Inherited from CollectionBase{T}: void updatecheck() |
||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
ArrayList<T>
When the FIFO property is set to false this class works fine as a stack of T. When the FIFO property is set to true the class will function as a (FIFO) queue but very inefficiently, use a LinkedList (See ) instead.
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IList<T>
, IQueue<T>
, ISequenced<T>
, IStack<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
, SequencedBase<T>
, ArrayBase<T>
HashedArrayList<T>
T[] array
, bool fIFO
, bool isReadOnly
, IHasher<T> itemhasher
, int offset
, int size
, int stamp
, ArrayList<T> underlying
, int underlyingsize
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool FIFO
, T First
, bool IsEmpty
, bool IsReadOnly
, T this[int i]
, IDirectedCollectionValue<T> this[int start, int count]
, T Last
, int Offset
, object SyncRoot
, IList<T> Underlying
ArrayList<T>()
, ArrayList<T>(IHasher<T> hasher)
, ArrayList<T>(int capacity)
, ArrayList<T>(int capacity, IHasher<T> hasher)
bool Add(T item)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, void addtosize(int delta)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, T DeQueue()
, void EnQueue(T item)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void expand()
, void expand(int newcapacity, int newsize)
, void Finalize()
, bool Find(ref T item)
, IList<T> FindAll(Filter<T> filter)
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, int indexOf(T item)
, int IndexOf(T item)
, void insert(int i, T item)
, void Insert(int i, T item)
, void InsertAfter(T item, T target)
, void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items)
, void InsertBefore(T item, T target)
, void InsertFirst(T item)
, void InsertLast(T item)
, bool IsSorted(IComparer<T> c)
, int lastIndexOf(T item)
, int LastIndexOf(T item)
, IList<V> Map<V>(Mapper<T,V> mapper)
, IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher)
, object MemberwiseClone()
, void modifycheck()
, void modifycheck(int stamp)
, T Pop()
, void Push(T item)
, T Remove()
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T removeAt(int i)
, T RemoveAt(int i)
, T RemoveFirst()
, void RemoveInterval(int start, int count)
, T RemoveLast()
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, void Reverse()
, void Reverse(int start, int count)
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, void Shuffle()
, void Shuffle(System.Random rnd)
, void Slide(int offset)
, void Slide(int offset, int size)
, void Sort(IComparer<T> c)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
, IList<T> View(int start, int count)
P ArrayList<T> underlying |
The underlying list if we are a view, null else. |
P int underlyingsize |
The size of the underlying list. |
P bool fIFO |
The underlying field of the FIFO property |
P T[] array |
Inherited from ArrayBase{T}: T[] array |
P int offset |
Inherited from ArrayBase{T}: int offset |
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
T First |
Value: The first item in this list.
Throws System.InvalidOperationException if this list is empty. |
||
T Last |
Value: The last item in this list.
Throws System.InvalidOperationException if this list is empty. |
||
bool FIFO |
Value: True if the Remove() operation removes from the
start of the list, false if it removes from the end.Since Add(T item) always add at the end of the list,
this describes if list has FIFO or LIFO semantics. |
||
T this[int i] |
Value: The i'th item of this list.On this list, this indexer is read/write.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||
IList<T> Underlying |
Value: Underlying list for view.Null if this list is not a view. | ||
int Offset |
Value: Offset for this list view or 0 for an underlying list. | ||
Speed ContainsSpeed |
Value: Speed.LinearThe value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). | ||
bool AllowsDuplicates |
Value: True, indicating array list has bag semantics. | ||
IDirectedCollectionValue<T> this[int start, int count] |
Inherited from ArrayBase{T}: IDirectedCollectionValue<T> this[int start, int count] |
||
EnumerationDirection Direction |
Inherited from SequencedBase{T}: EnumerationDirection Direction |
||
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
||
int Count |
Inherited from CollectionBase{T}: int Count |
||
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
||
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
||
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
ArrayList<T>() |
Create an array list with default item hasher and initial capacity 8 items. | ||||
ArrayList<T>(IHasher<T> hasher) |
Create an array list with external item hasher and initial capacity 8 items.
|
||||
ArrayList<T>(int capacity) |
Create an array list with default item hasher and prescribed initial capacity.
|
||||
ArrayList<T>(int capacity, IHasher<T> hasher) |
Create an array list with external item hasher and prescribed initial capacity.
|
IList<V> Map<V>(Mapper<T,V> mapper) |
Create a new list consisting of the results of mapping all items of this
list. The new list will use the default hasher for the item type V.
|
||||||
IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher) |
Create a new list consisting of the results of mapping all items of this
list. The new list will use a specified hasher for the item type.
|
||||||
P void expand() |
Double the size of the internal array. | ||||||
P void expand(int newcapacity, int newsize) |
Expand the internal array, resetting the index of the first unused element.
|
||||||
P void updatecheck() |
Check if it is valid to perform updates and increment stamp.
Throws System.InvalidOperationException if check fails. |
||||||
N P void modifycheck() |
Check if we are a view that the underlying list has only been updated through us.
Throws System.InvalidOperationException if check fails.
This method should be called from enumerators etc to guard against modification of the base collection. |
||||||
P void modifycheck(int stamp) |
Check that the list has not been updated since a particular time.
Throws System.InvalidOperationException if check fails.
|
||||||
N P void addtosize(int delta) |
Increment or decrement the private size fields
|
||||||
P int indexOf(T item) |
Internal version of IndexOf without modification checks.
|
||||||
P int lastIndexOf(T item) |
Internal version of LastIndexOf without modification checks.
|
||||||
P void insert(int i, T item) |
Internal version of Insert with no modification checks.
|
||||||
P T removeAt(int i) |
Internal version of RemoveAt with no modification checks.
|
||||||
void Insert(int i, T item) |
Insert an item at a specific index location in this list.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
|
||||||
void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items) |
Insert into this list all items from an enumerable collection starting
at a particular index.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
|
||||||
void InsertBefore(T item, T target) |
Insert an item right before the first occurrence of some target item.
Throws System.ArgumentException if target is not found.
|
||||||
void InsertAfter(T item, T target) |
Insert an item right after the last(???) occurrence of some target item.
Throws System.ArgumentException if target is not found.
|
||||||
void InsertFirst(T item) |
Insert an item at the front of this list;
|
||||||
void InsertLast(T item) |
Insert an item at the back of this list.
|
||||||
IList<T> FindAll(Filter<T> filter) |
Create a new list consisting of the items of this list satisfying a
certain predicate.
|
||||||
T Remove() |
Remove one item from the list: from the front if FIFO
is true, else from the back.
Throws System.InvalidOperationException if this list is empty.
|
||||||
T RemoveFirst() |
Remove one item from the fromnt of the list.
Throws System.InvalidOperationException if this list is empty.
|
||||||
T RemoveLast() |
Remove one item from the back of the list.
|
||||||
IList<T> View(int start, int count) |
Create a list view on this list.
Throws System.ArgumentOutOfRangeException if the start or count is negative
Throws System.ArgumentException if the range does not fit within list.
|
||||||
void Slide(int offset) |
Slide this list view along the underlying list.
Throws System.InvalidOperationException if this list is not a view.
Throws System.ArgumentOutOfRangeException if the operation
would bring either end of the view outside the underlying list.
|
||||||
void Slide(int offset, int size) |
Slide this list view along the underlying list, changing its size.
Throws System.InvalidOperationException if this list is not a view.
Throws System.ArgumentOutOfRangeException if the operation
would bring either end of the view outside the underlying list.
|
||||||
void Reverse() |
Reverst the list so the items are in the opposite sequence order. | ||||||
void Reverse(int start, int count) |
Reverst part of the list so the items are in the opposite sequence order.
Throws System.ArgumentException if the count is negative.
Throws System.ArgumentOutOfRangeException if the part does not fit
into the list.
|
||||||
bool IsSorted(IComparer<T> c) |
Check if this list is sorted according to a specific sorting order.
|
||||||
void Sort(IComparer<T> c) |
Sort the items of the list according to a specific sorting order.
|
||||||
void Shuffle() |
Randonmly shuffle the items of this list. | ||||||
void Shuffle(System.Random rnd) |
Shuffle the items of this list according to a specific random source.
|
||||||
int IndexOf(T item) |
Search for an item in the list going forwrds from the start.
|
||||||
int LastIndexOf(T item) |
Search for an item in the list going backwords from the end.
|
||||||
T RemoveAt(int i) |
Remove the item at a specific position of the list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||||
void RemoveInterval(int start, int count) |
Remove all items in an index interval.
Throws System.IndexOutOfRangeException ???.
|
||||||
bool Contains(T item) |
Check if this collection contains (an item equivalent to according to the
itemhasher) a particular value.
|
||||||
bool Find(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found.
|
||||||
bool Update(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value. This will only update the first
mathching item.
|
||||||
bool FindOrAdd(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found. Else, add the item to the collection.
|
||||||
bool UpdateOrAdd(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value. This will only update the first
mathching item.
|
||||||
bool Remove(T item) |
Remove the first copy of a particular item from this collection.
|
||||||
bool RemoveWithReturn(ref T item) |
Remove the first copy of a particular item from this collection if found.
If an item was removed, report a binary copy of the actual item removed in
the argument.
|
||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in another collection from this one, taking multiplicities into account.
Matching items will be removed from the front. Current implementation is not optimal.
|
||||||
void Clear() |
Remove all items from this collection, resetting internal array size. | ||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items not in some other collection from this one, taking multiplicities into account.
Items are retained front first. Current implementation is not optimal.
|
||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if this collection contains all the values in another collection,
taking multiplicities into account.
Current implementation is not optimal.
|
||||||
int ContainsCount(T item) |
Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.
|
||||||
void RemoveAllCopies(T item) |
Remove all items equal to a given one.
|
||||||
bool Check() |
Check the integrity of the internal data structures of this array list.
|
||||||
bool Add(T item) |
Add an item to end of this list.
|
||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add the elements from another collection to this collection.
|
||||||
void Push(T item) |
Push an item to the top of the stack.
|
||||||
T Pop() |
Pop the item at the top of the stack from the stack.
|
||||||
void EnQueue(T item) |
Enqueue an item at the back of the queue.
|
||||||
T DeQueue() |
Dequeue an item from the front of the queue.
|
||||||
T[] ToArray() |
Inherited from ArrayBase{T}: T[] ToArray() |
||||||
IDirectedCollectionValue<T> Backwards() |
Inherited from ArrayBase{T}: IDirectedCollectionValue<T> Backwards() |
||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from ArrayBase{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||||
N P int sequencedhashcode() |
Inherited from SequencedBase{T}: int sequencedhashcode() |
||||||
N P bool sequencedequals(ISequenced<T> that) |
Inherited from SequencedBase{T}: bool sequencedequals(ISequenced<T> that) |
||||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedEnumerator<T>
System.Collections.Generic.IEnumerator<T>
, System.IDisposable
object
T Current
GuardedEnumerator<T>(System.Collections.Generic.IEnumerator<T> enumerator)
void Dispose()
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool MoveNext()
, string ToString()
T Current |
Value: The current item of the wrapped enumerator.Undefined if enumerator is not valid (MoveNext hash been called returning true) |
GuardedEnumerator<T>(System.Collections.Generic.IEnumerator<T> enumerator) |
Create a wrapper around a generic enumerator
|
bool MoveNext() |
Move wrapped enumerator to next item, or the first item if
this is the first call to MoveNext.
|
||
void Dispose() |
Dispose wrapped enumerator | ||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedEnumerable<T>
This is mainly interesting as a base of other guard classes
System.Collections.Generic.IEnumerable<T>
object
GuardedCollection<T>
, GuardedCollectionValue<T>
, GuardedDictionary<K,V>
, GuardedDirectedCollectionValue<T>
, GuardedDirectedEnumerable<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
, GuardedSortedDictionary<K,V>
GuardedEnumerable<T>(System.Collections.Generic.IEnumerable<T> enumerable)
bool Equals(object obj)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
GuardedEnumerable<T>(System.Collections.Generic.IEnumerable<T> enumerable) |
Wrap an enumerable in a read-only wrapper
|
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Get an enumerator from the wrapped enumerable
|
||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedDirectedEnumerable<T>
This is mainly interesting as a base of other guard classes
System.Collections.Generic.IEnumerable<T>
, IDirectedEnumerable<T>
object
, GuardedEnumerable<T>
EnumerationDirection Direction
GuardedDirectedEnumerable<T>(IDirectedEnumerable<T> directedenumerable)
IDirectedEnumerable<T> Backwards()
, bool Equals(object obj)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
EnumerationDirection Direction |
Value: The enumeration direction relative to the original collection.
Forwards if same, else Backwards |
GuardedDirectedEnumerable<T>(IDirectedEnumerable<T> directedenumerable) |
Wrap a directed enumerable in a read-only wrapper
|
IDirectedEnumerable<T> Backwards() |
Get a enumerable that enumerates the wrapped collection in the opposite direction
|
||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from GuardedEnumerable{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedCollectionValue<T>
This is mainly interesting as a base of other guard classes
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
object
, GuardedEnumerable<T>
GuardedCollection<T>
, GuardedDirectedCollectionValue<T>
, GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
int Count
, Speed CountSpeed
GuardedCollectionValue<T>(ICollectionValue<T> collection)
bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, T[] ToArray()
, string ToString()
int Count |
Value: The sizeGet the size of the wrapped collection |
Speed CountSpeed |
Value: A characterization of the speed of the
Count property in this collection.The value is symbolic indicating the type of asymptotic complexity
in terms of the size of this collection (worst-case or amortized as
relevant). |
GuardedCollectionValue<T>(ICollectionValue<T> collection) |
Wrap a ICollectionValue<T> in a read-only wrapper
|
void CopyTo(T[] a, int i) |
Copy the items of the wrapped collection to an array
|
||||
T[] ToArray() |
Create an array from the items of the wrapped collection
|
||||
void Apply(Applier<T> a) |
Apply a delegate to all items of the wrapped enumerable.
|
||||
bool Exists(Filter<T> filter) |
Check if there exists an item that satisfies a
specific predicate in the wrapped enumerable.
|
||||
bool All(Filter<T> filter) |
Check if all items in the wrapped enumerable satisfies a specific predicate.
|
||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from GuardedEnumerable{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedDirectedCollectionValue<T>
This is mainly interesting as a base of other guard classes
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
object
, GuardedEnumerable<T>
, GuardedCollectionValue<T>
int Count
, Speed CountSpeed
, EnumerationDirection Direction
GuardedDirectedCollectionValue<T>(IDirectedCollectionValue<T> directedcollection)
bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, T[] ToArray()
, string ToString()
EnumerationDirection Direction |
Value: The enumeration direction relative to the original collection.
Forwards if same, else Backwards |
int Count |
Inherited from GuardedCollectionValue{T}: int Count |
Speed CountSpeed |
Inherited from GuardedCollectionValue{T}: Speed CountSpeed |
GuardedDirectedCollectionValue<T>(IDirectedCollectionValue<T> directedcollection) |
Wrap a directed collection in a read-only wrapper
|
IDirectedCollectionValue<T> Backwards() |
Get a collection that enumerates the wrapped collection in the opposite direction
|
||
void CopyTo(T[] a, int i) |
Inherited from GuardedCollectionValue{T}: void CopyTo(T[] a, int i) |
||
T[] ToArray() |
Inherited from GuardedCollectionValue{T}: T[] ToArray() |
||
void Apply(Applier<T> a) |
Inherited from GuardedCollectionValue{T}: void Apply(Applier<T> a) |
||
bool Exists(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool Exists(Filter<T> filter) |
||
bool All(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool All(Filter<T> filter) |
||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from GuardedEnumerable{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedCollection<T>
Suitable for wrapping hash tables, See and See
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IExtensible<T>
object
, GuardedEnumerable<T>
, GuardedCollectionValue<T>
GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSequenced<T>
, GuardedSorted<T>
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, bool IsEmpty
, bool IsReadOnly
, object SyncRoot
GuardedCollection<T>(ICollection<T> collection)
bool Add(T item)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, bool Check()
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, T[] ToArray()
, string ToString()
, bool Update(T item)
, bool UpdateOrAdd(T item)
bool IsReadOnly |
Value: True(This is a read-only wrapper) |
Speed ContainsSpeed |
Value: Speed of wrapped collection |
bool AllowsDuplicates |
Value: False if wrapped collection has set semantics |
object SyncRoot |
Value: The sync root of the wrapped collection |
bool IsEmpty |
Value: True if wrapped collection is empty |
int Count |
Inherited from GuardedCollectionValue{T}: int Count |
Speed CountSpeed |
Inherited from GuardedCollectionValue{T}: Speed CountSpeed |
GuardedCollection<T>(ICollection<T> collection) |
Wrap an ICollection<T> in a read-only wrapper
|
bool Contains(T item) |
Check if an item is in the wrapped collection
|
||||
int ContainsCount(T item) |
Count the number of times an item appears in the wrapped collection
|
||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if all items in the argument is in the wrapped collection
|
||||
bool Find(ref T item) |
Search for an item in the wrapped collection
|
||||
bool FindOrAdd(ref T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
bool Update(T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
bool UpdateOrAdd(T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
bool Remove(T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
bool RemoveWithReturn(ref T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
void RemoveAllCopies(T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
void Clear() |
Throws System.InvalidOperationException since this is a read-only wrappper |
||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
bool Check() |
Check wrapped collection for internal consistency
|
||||
bool Add(T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||
void CopyTo(T[] a, int i) |
Inherited from GuardedCollectionValue{T}: void CopyTo(T[] a, int i) |
||||
T[] ToArray() |
Inherited from GuardedCollectionValue{T}: T[] ToArray() |
||||
void Apply(Applier<T> a) |
Inherited from GuardedCollectionValue{T}: void Apply(Applier<T> a) |
||||
bool Exists(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool Exists(Filter<T> filter) |
||||
bool All(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool All(Filter<T> filter) |
||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from GuardedEnumerable{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedSequenced<T>
This is mainly interesting as a base of other guard classes
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, ISequenced<T>
object
, GuardedEnumerable<T>
, GuardedCollectionValue<T>
, GuardedCollection<T>
GuardedIndexedSorted<T>
, GuardedList<T>
, GuardedSorted<T>
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool IsEmpty
, bool IsReadOnly
, object SyncRoot
GuardedSequenced<T>(ISequenced<T> sorted)
bool Add(T item)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, T[] ToArray()
, string ToString()
, bool Update(T item)
, bool UpdateOrAdd(T item)
EnumerationDirection Direction |
Value: The enumeration direction relative to the original collection.
Forwards if same, else Backwards |
bool IsReadOnly |
Inherited from GuardedCollection{T}: bool IsReadOnly |
Speed ContainsSpeed |
Inherited from GuardedCollection{T}: Speed ContainsSpeed |
bool AllowsDuplicates |
Inherited from GuardedCollection{T}: bool AllowsDuplicates |
object SyncRoot |
Inherited from GuardedCollection{T}: object SyncRoot |
bool IsEmpty |
Inherited from GuardedCollection{T}: bool IsEmpty |
int Count |
Inherited from GuardedCollectionValue{T}: int Count |
Speed CountSpeed |
Inherited from GuardedCollectionValue{T}: Speed CountSpeed |
GuardedSequenced<T>(ISequenced<T> sorted) |
Wrap a sequenced collection in a read-only wrapper
|
GuardedSorted<T>
This is mainly interesting as a base of other guard classes
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
object
, GuardedEnumerable<T>
, GuardedCollectionValue<T>
, GuardedCollection<T>
, GuardedSequenced<T>
GuardedIndexedSorted<T>
bool AllowsDuplicates
, IComparer<T> Comparer
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool IsEmpty
, bool IsReadOnly
, object SyncRoot
GuardedSorted<T>(ISorted<T> sorted)
bool Add(T item)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, void AddSorted(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, bool Cut(System.IComparable<T> c, out T low, out bool lval, out T high, out bool hval)
, T DeleteMax()
, T DeleteMin()
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, T FindMax()
, T FindMin()
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, T Predecessor(T item)
, IDirectedCollectionValue<T> RangeAll()
, IDirectedEnumerable<T> RangeFrom(T bot)
, IDirectedEnumerable<T> RangeFromTo(T bot, T top)
, IDirectedEnumerable<T> RangeTo(T top)
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, void RemoveRangeFrom(T low)
, void RemoveRangeFromTo(T low, T hi)
, void RemoveRangeTo(T hi)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, T Successor(T item)
, T[] ToArray()
, string ToString()
, bool Update(T item)
, bool UpdateOrAdd(T item)
, T WeakPredecessor(T item)
, T WeakSuccessor(T item)
IComparer<T> Comparer |
Value: The comparerThe comparer object supplied at creation time for the underlying collection |
EnumerationDirection Direction |
Inherited from GuardedSequenced{T}: EnumerationDirection Direction |
bool IsReadOnly |
Inherited from GuardedCollection{T}: bool IsReadOnly |
Speed ContainsSpeed |
Inherited from GuardedCollection{T}: Speed ContainsSpeed |
bool AllowsDuplicates |
Inherited from GuardedCollection{T}: bool AllowsDuplicates |
object SyncRoot |
Inherited from GuardedCollection{T}: object SyncRoot |
bool IsEmpty |
Inherited from GuardedCollection{T}: bool IsEmpty |
int Count |
Inherited from GuardedCollectionValue{T}: int Count |
Speed CountSpeed |
Inherited from GuardedCollectionValue{T}: Speed CountSpeed |
GuardedSorted<T>(ISorted<T> sorted) |
Wrap a sorted collection in a read-only wrapper
|
T Predecessor(T item) |
Find the predecessor of the item in the wrapped sorted collection
|
||||||||||||
T Successor(T item) |
Find the Successor of the item in the wrapped sorted collection
|
||||||||||||
T WeakPredecessor(T item) |
Find the weak predecessor of the item in the wrapped sorted collection
|
||||||||||||
T WeakSuccessor(T item) |
Find the weak Successor of the item in the wrapped sorted collection
|
||||||||||||
bool Cut(System.IComparable<T> c, out T low, out bool lval, out T high, out bool hval) |
Run Cut on the wrapped sorted collection
|
||||||||||||
IDirectedEnumerable<T> RangeFrom(T bot) |
Get the specified range from the wrapped collection.
(The current implementation erroneously does not wrap the result.)
|
||||||||||||
IDirectedEnumerable<T> RangeFromTo(T bot, T top) |
Get the specified range from the wrapped collection.
(The current implementation erroneously does not wrap the result.)
|
||||||||||||
IDirectedEnumerable<T> RangeTo(T top) |
Get the specified range from the wrapped collection.
(The current implementation erroneously does not wrap the result.)
|
||||||||||||
IDirectedCollectionValue<T> RangeAll() |
Get the specified range from the wrapped collection.
(The current implementation erroneously does not wrap the result.)
|
||||||||||||
void AddSorted(System.Collections.Generic.IEnumerable<T> items) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||||||||
void RemoveRangeFrom(T low) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||||||||
void RemoveRangeFromTo(T low, T hi) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||||||||
void RemoveRangeTo(T hi) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||||||||
T FindMin() |
Find the minimum of the wrapped collection
|
||||||||||||
T DeleteMin() |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||||||||
T FindMax() |
Find the maximum of the wrapped collection
|
||||||||||||
T DeleteMax() |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||||||||
IDirectedCollectionValue<T> Backwards() |
Inherited from GuardedSequenced{T}: IDirectedCollectionValue<T> Backwards() |
||||||||||||
bool Contains(T item) |
Inherited from GuardedCollection{T}: bool Contains(T item) |
||||||||||||
int ContainsCount(T item) |
Inherited from GuardedCollection{T}: int ContainsCount(T item) |
||||||||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
||||||||||||
bool Find(ref T item) |
Inherited from GuardedCollection{T}: bool Find(ref T item) |
||||||||||||
bool FindOrAdd(ref T item) |
Inherited from GuardedCollection{T}: bool FindOrAdd(ref T item) |
||||||||||||
bool Update(T item) |
Inherited from GuardedCollection{T}: bool Update(T item) |
||||||||||||
bool UpdateOrAdd(T item) |
Inherited from GuardedCollection{T}: bool UpdateOrAdd(T item) |
||||||||||||
bool Remove(T item) |
Inherited from GuardedCollection{T}: bool Remove(T item) |
||||||||||||
bool RemoveWithReturn(ref T item) |
Inherited from GuardedCollection{T}: bool RemoveWithReturn(ref T item) |
||||||||||||
void RemoveAllCopies(T item) |
Inherited from GuardedCollection{T}: void RemoveAllCopies(T item) |
||||||||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
||||||||||||
void Clear() |
Inherited from GuardedCollection{T}: void Clear() |
||||||||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
||||||||||||
bool Check() |
Inherited from GuardedCollection{T}: bool Check() |
||||||||||||
bool Add(T item) |
Inherited from GuardedCollection{T}: bool Add(T item) |
||||||||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void AddAll(System.Collections.Generic.IEnumerable<T> items) |
||||||||||||
void CopyTo(T[] a, int i) |
Inherited from GuardedCollectionValue{T}: void CopyTo(T[] a, int i) |
||||||||||||
T[] ToArray() |
Inherited from GuardedCollectionValue{T}: T[] ToArray() |
||||||||||||
void Apply(Applier<T> a) |
Inherited from GuardedCollectionValue{T}: void Apply(Applier<T> a) |
||||||||||||
bool Exists(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool Exists(Filter<T> filter) |
||||||||||||
bool All(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool All(Filter<T> filter) |
||||||||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from GuardedEnumerable{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||||||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||||||||
string ToString() |
Inherited from object: string ToString() |
||||||||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||||||||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedIndexedSorted<T>
Suitable for wrapping TreeSet, TreeBag and SortedArray
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IIndexedSorted<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
object
, GuardedEnumerable<T>
, GuardedCollectionValue<T>
, GuardedCollection<T>
, GuardedSequenced<T>
, GuardedSorted<T>
bool AllowsDuplicates
, IComparer<T> Comparer
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool IsEmpty
, bool IsReadOnly
, T this[int i]
, IDirectedCollectionValue<T> this[int start, int end]
, object SyncRoot
GuardedIndexedSorted<T>(IIndexedSorted<T> list)
bool Add(T item)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, void AddSorted(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, int CountFrom(T bot)
, int CountFromTo(T bot, T top)
, int CountTo(T top)
, bool Cut(System.IComparable<T> c, out T low, out bool lval, out T high, out bool hval)
, T DeleteMax()
, T DeleteMin()
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, IIndexedSorted<T> FindAll(Filter<T> f)
, T FindMax()
, T FindMin()
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, int IndexOf(T item)
, int LastIndexOf(T item)
, IIndexedSorted<V> Map<V>(Mapper<T,V> m, IComparer<V> c)
, object MemberwiseClone()
, T Predecessor(T item)
, IDirectedCollectionValue<T> RangeAll()
, IDirectedCollectionValue<T> RangeFrom(T bot)
, IDirectedEnumerable<T> RangeFrom(T bot)
, IDirectedCollectionValue<T> RangeFromTo(T bot, T top)
, IDirectedEnumerable<T> RangeFromTo(T bot, T top)
, IDirectedCollectionValue<T> RangeTo(T top)
, IDirectedEnumerable<T> RangeTo(T top)
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T RemoveAt(int i)
, void RemoveInterval(int start, int count)
, void RemoveRangeFrom(T low)
, void RemoveRangeFromTo(T low, T hi)
, void RemoveRangeTo(T hi)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, T Successor(T item)
, T[] ToArray()
, string ToString()
, bool Update(T item)
, bool UpdateOrAdd(T item)
, T WeakPredecessor(T item)
, T WeakSuccessor(T item)
T this[int i] |
Value: The i'th item of the wrapped sorted collection
|
||||
IDirectedCollectionValue<T> this[int start, int end] |
Value: A directed collection of the items in the indicated interval of the wrapped collection
|
||||
IComparer<T> Comparer |
Inherited from GuardedSorted{T}: IComparer<T> Comparer |
||||
EnumerationDirection Direction |
Inherited from GuardedSequenced{T}: EnumerationDirection Direction |
||||
bool IsReadOnly |
Inherited from GuardedCollection{T}: bool IsReadOnly |
||||
Speed ContainsSpeed |
Inherited from GuardedCollection{T}: Speed ContainsSpeed |
||||
bool AllowsDuplicates |
Inherited from GuardedCollection{T}: bool AllowsDuplicates |
||||
object SyncRoot |
Inherited from GuardedCollection{T}: object SyncRoot |
||||
bool IsEmpty |
Inherited from GuardedCollection{T}: bool IsEmpty |
||||
int Count |
Inherited from GuardedCollectionValue{T}: int Count |
||||
Speed CountSpeed |
Inherited from GuardedCollectionValue{T}: Speed CountSpeed |
GuardedIndexedSorted<T>(IIndexedSorted<T> list) |
Wrap an indexed sorted collection in a read-only wrapper
|
IIndexedSorted<V> Map<V>(Mapper<T,V> m, IComparer<V> c) |
Run Map on the wrapped collection with the indicated mapper.
The result will not be read-only.
|
||||||
IDirectedCollectionValue<T> RangeFrom(T bot) |
Get the specified range from the wrapped collection.
(The current implementation erroneously does not wrap the result.)
|
||||||
IDirectedCollectionValue<T> RangeFromTo(T bot, T top) |
Get the specified range from the wrapped collection.
(The current implementation erroneously does not wrap the result.)
|
||||||
IDirectedCollectionValue<T> RangeTo(T top) |
Get the specified range from the wrapped collection.
(The current implementation erroneously does not wrap the result.)
|
||||||
int CountFrom(T bot) |
Report the number of items in the specified range of the wrapped collection
|
||||||
int CountFromTo(T bot, T top) |
Report the number of items in the specified range of the wrapped collection
|
||||||
int CountTo(T top) |
Report the number of items in the specified range of the wrapped collection
|
||||||
IIndexedSorted<T> FindAll(Filter<T> f) |
Run FindAll on the wrapped collection with the indicated filter.
The result will not be read-only.
|
||||||
int IndexOf(T item) |
Find the (first) index of an item in the wrapped collection
|
||||||
int LastIndexOf(T item) |
Find the last index of an item in the wrapped collection
|
||||||
T RemoveAt(int i) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void RemoveInterval(int start, int count) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
T Predecessor(T item) |
Inherited from GuardedSorted{T}: T Predecessor(T item) |
||||||
T Successor(T item) |
Inherited from GuardedSorted{T}: T Successor(T item) |
||||||
T WeakPredecessor(T item) |
Inherited from GuardedSorted{T}: T WeakPredecessor(T item) |
||||||
T WeakSuccessor(T item) |
Inherited from GuardedSorted{T}: T WeakSuccessor(T item) |
||||||
bool Cut(System.IComparable<T> c, out T low, out bool lval, out T high, out bool hval) |
Inherited from GuardedSorted{T}: bool Cut(System.IComparable<T> c, out T low, out bool lval, out T high, out bool hval) |
||||||
IDirectedEnumerable<T> RangeFrom(T bot) |
Inherited from GuardedSorted{T}: IDirectedEnumerable<T> RangeFrom(T bot) |
||||||
IDirectedEnumerable<T> RangeFromTo(T bot, T top) |
Inherited from GuardedSorted{T}: IDirectedEnumerable<T> RangeFromTo(T bot, T top) |
||||||
IDirectedEnumerable<T> RangeTo(T top) |
Inherited from GuardedSorted{T}: IDirectedEnumerable<T> RangeTo(T top) |
||||||
IDirectedCollectionValue<T> RangeAll() |
Inherited from GuardedSorted{T}: IDirectedCollectionValue<T> RangeAll() |
||||||
void AddSorted(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedSorted{T}: void AddSorted(System.Collections.Generic.IEnumerable<T> items) |
||||||
void RemoveRangeFrom(T low) |
Inherited from GuardedSorted{T}: void RemoveRangeFrom(T low) |
||||||
void RemoveRangeFromTo(T low, T hi) |
Inherited from GuardedSorted{T}: void RemoveRangeFromTo(T low, T hi) |
||||||
void RemoveRangeTo(T hi) |
Inherited from GuardedSorted{T}: void RemoveRangeTo(T hi) |
||||||
T FindMin() |
Inherited from GuardedSorted{T}: T FindMin() |
||||||
T DeleteMin() |
Inherited from GuardedSorted{T}: T DeleteMin() |
||||||
T FindMax() |
Inherited from GuardedSorted{T}: T FindMax() |
||||||
T DeleteMax() |
Inherited from GuardedSorted{T}: T DeleteMax() |
||||||
IDirectedCollectionValue<T> Backwards() |
Inherited from GuardedSequenced{T}: IDirectedCollectionValue<T> Backwards() |
||||||
bool Contains(T item) |
Inherited from GuardedCollection{T}: bool Contains(T item) |
||||||
int ContainsCount(T item) |
Inherited from GuardedCollection{T}: int ContainsCount(T item) |
||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
bool Find(ref T item) |
Inherited from GuardedCollection{T}: bool Find(ref T item) |
||||||
bool FindOrAdd(ref T item) |
Inherited from GuardedCollection{T}: bool FindOrAdd(ref T item) |
||||||
bool Update(T item) |
Inherited from GuardedCollection{T}: bool Update(T item) |
||||||
bool UpdateOrAdd(T item) |
Inherited from GuardedCollection{T}: bool UpdateOrAdd(T item) |
||||||
bool Remove(T item) |
Inherited from GuardedCollection{T}: bool Remove(T item) |
||||||
bool RemoveWithReturn(ref T item) |
Inherited from GuardedCollection{T}: bool RemoveWithReturn(ref T item) |
||||||
void RemoveAllCopies(T item) |
Inherited from GuardedCollection{T}: void RemoveAllCopies(T item) |
||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
void Clear() |
Inherited from GuardedCollection{T}: void Clear() |
||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
bool Check() |
Inherited from GuardedCollection{T}: bool Check() |
||||||
bool Add(T item) |
Inherited from GuardedCollection{T}: bool Add(T item) |
||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void AddAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
void CopyTo(T[] a, int i) |
Inherited from GuardedCollectionValue{T}: void CopyTo(T[] a, int i) |
||||||
T[] ToArray() |
Inherited from GuardedCollectionValue{T}: T[] ToArray() |
||||||
void Apply(Applier<T> a) |
Inherited from GuardedCollectionValue{T}: void Apply(Applier<T> a) |
||||||
bool Exists(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool Exists(Filter<T> filter) |
||||||
bool All(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool All(Filter<T> filter) |
||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from GuardedEnumerable{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedList<T>
Suitable as a wrapper for LinkedList, HashedLinkedList, ArrayList and HashedArray. See , See , See or See .
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IList<T>
, IQueue<T>
, ISequenced<T>
, IStack<T>
object
, GuardedEnumerable<T>
, GuardedCollectionValue<T>
, GuardedCollection<T>
, GuardedSequenced<T>
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool FIFO
, T First
, bool IsEmpty
, bool IsReadOnly
, T this[int i]
, IDirectedCollectionValue<T> this[int start, int end]
, T Last
, int Offset
, object SyncRoot
, IList<T> Underlying
GuardedList<T>(IList<T> list)
bool Add(T item)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, T DeQueue()
, void EnQueue(T item)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, IList<T> FindAll(Filter<T> filter)
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, int IndexOf(T item)
, void Insert(int i, T item)
, void InsertAfter(T item, T target)
, void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items)
, void InsertBefore(T item, T target)
, void InsertFirst(T item)
, void InsertLast(T item)
, bool IsSorted(IComparer<T> c)
, int LastIndexOf(T item)
, IList<V> Map<V>(Mapper<T,V> mapper)
, IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher)
, object MemberwiseClone()
, T Pop()
, void Push(T item)
, T Remove()
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T RemoveAt(int i)
, T RemoveFirst()
, void RemoveInterval(int start, int count)
, T RemoveLast()
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, void Reverse()
, void Reverse(int start, int count)
, void Shuffle()
, void Shuffle(System.Random rnd)
, void Slide(int offset)
, void Slide(int offset, int size)
, void Sort(IComparer<T> c)
, T[] ToArray()
, string ToString()
, bool Update(T item)
, bool UpdateOrAdd(T item)
, IList<T> View(int start, int count)
T First |
Value: The first item of the wrapped list | ||||
T Last |
Value: The last item of the wrapped list | ||||
bool FIFO |
Value: True if wrapped list has FIFO semantics for the Add(T item) and Remove() methods
Throws System.InvalidOperationException if used as setter |
||||
T this[int i] |
Value: The i'th item of the wrapped list
Throws System.InvalidOperationException if used as setter
|
||||
IList<T> Underlying |
Value: The wrapped underlying list of the wrapped view(This is wrong functionality) | ||||
int Offset |
Value: The offset of the wrapped list as a view. | ||||
IDirectedCollectionValue<T> this[int start, int end] |
Value: A directed collection of the items in the indicated interval of the wrapped collection
|
||||
EnumerationDirection Direction |
Inherited from GuardedSequenced{T}: EnumerationDirection Direction |
||||
bool IsReadOnly |
Inherited from GuardedCollection{T}: bool IsReadOnly |
||||
Speed ContainsSpeed |
Inherited from GuardedCollection{T}: Speed ContainsSpeed |
||||
bool AllowsDuplicates |
Inherited from GuardedCollection{T}: bool AllowsDuplicates |
||||
object SyncRoot |
Inherited from GuardedCollection{T}: object SyncRoot |
||||
bool IsEmpty |
Inherited from GuardedCollection{T}: bool IsEmpty |
||||
int Count |
Inherited from GuardedCollectionValue{T}: int Count |
||||
Speed CountSpeed |
Inherited from GuardedCollectionValue{T}: Speed CountSpeed |
GuardedList<T>(IList<T> list) |
Wrap a list in a read-only wrapper
|
IList<V> Map<V>(Mapper<T,V> mapper) |
Perform Map on the wrapped list. The result is not necessarily read-only.
|
||||||
IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher) |
Perform Map on the wrapped list. The result is not necessarily read-only.
|
||||||
void Insert(int i, T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void InsertFirst(T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void InsertLast(T item) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void InsertBefore(T item, T target) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void InsertAfter(T item, T target) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
IList<T> FindAll(Filter<T> filter) |
Perform FindAll on the wrapped list. The result is not necessarily read-only.
|
||||||
T Remove() |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
T RemoveFirst() |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
T RemoveLast() |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
IList<T> View(int start, int count) |
Create the indicated view on the wrapped list and wrap it read-only.
|
||||||
void Slide(int offset) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void Slide(int offset, int size) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void Reverse() |
Throws System.InvalidOperationException since this is a read-only wrappper |
||||||
void Reverse(int start, int count) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
bool IsSorted(IComparer<T> c) |
Check if wrapped list is sorted
|
||||||
void Sort(IComparer<T> c) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void Shuffle() |
Throws System.InvalidOperationException since this is a read-only wrappper |
||||||
void Shuffle(System.Random rnd) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
int IndexOf(T item) |
Find the (first) index of an item in the wrapped collection
|
||||||
int LastIndexOf(T item) |
Find the last index of an item in the wrapped collection
|
||||||
T RemoveAt(int i) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void RemoveInterval(int start, int count) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void Push(T item) |
|
||||||
T Pop() |
|
||||||
void EnQueue(T item) |
|
||||||
T DeQueue() |
|
||||||
IDirectedCollectionValue<T> Backwards() |
Inherited from GuardedSequenced{T}: IDirectedCollectionValue<T> Backwards() |
||||||
bool Contains(T item) |
Inherited from GuardedCollection{T}: bool Contains(T item) |
||||||
int ContainsCount(T item) |
Inherited from GuardedCollection{T}: int ContainsCount(T item) |
||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
bool Find(ref T item) |
Inherited from GuardedCollection{T}: bool Find(ref T item) |
||||||
bool FindOrAdd(ref T item) |
Inherited from GuardedCollection{T}: bool FindOrAdd(ref T item) |
||||||
bool Update(T item) |
Inherited from GuardedCollection{T}: bool Update(T item) |
||||||
bool UpdateOrAdd(T item) |
Inherited from GuardedCollection{T}: bool UpdateOrAdd(T item) |
||||||
bool Remove(T item) |
Inherited from GuardedCollection{T}: bool Remove(T item) |
||||||
bool RemoveWithReturn(ref T item) |
Inherited from GuardedCollection{T}: bool RemoveWithReturn(ref T item) |
||||||
void RemoveAllCopies(T item) |
Inherited from GuardedCollection{T}: void RemoveAllCopies(T item) |
||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
void Clear() |
Inherited from GuardedCollection{T}: void Clear() |
||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
bool Check() |
Inherited from GuardedCollection{T}: bool Check() |
||||||
bool Add(T item) |
Inherited from GuardedCollection{T}: bool Add(T item) |
||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from GuardedCollection{T}: void AddAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
void CopyTo(T[] a, int i) |
Inherited from GuardedCollectionValue{T}: void CopyTo(T[] a, int i) |
||||||
T[] ToArray() |
Inherited from GuardedCollectionValue{T}: T[] ToArray() |
||||||
void Apply(Applier<T> a) |
Inherited from GuardedCollectionValue{T}: void Apply(Applier<T> a) |
||||||
bool Exists(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool Exists(Filter<T> filter) |
||||||
bool All(Filter<T> filter) |
Inherited from GuardedCollectionValue{T}: bool All(Filter<T> filter) |
||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from GuardedEnumerable{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedDictionary<K,V>
Suitable for wrapping a HashDictionary. See
System.Collections.Generic.IEnumerable<KeyValuePair<K,V>>
, IDictionary<K,V>
object
, GuardedEnumerable<KeyValuePair<K,V>>
GuardedSortedDictionary<K,V>
int Count
, bool IsReadOnly
, V this[K key]
, ICollectionValue<K> Keys
, object SyncRoot
, ICollectionValue<V> Values
GuardedDictionary<K,V>(IDictionary<K,V> dict)
void Add(K key, V val)
, bool Check()
, void Clear()
, bool Contains(K key)
, bool Equals(object obj)
, void Finalize()
, bool Find(K key, out V val)
, bool FindOrAdd(K key, ref V val)
, System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool Remove(K key)
, bool Remove(K key, out V val)
, string ToString()
, bool Update(K key, V val)
, bool UpdateOrAdd(K key, V val)
V this[K key] |
Value: Get the value corresponding to a key in the wrapped dictionary
Throws System.InvalidOperationException since this is a
read-only wrappper if used as a setter
|
||
int Count |
Value: The size of the wrapped dictionary | ||
bool IsReadOnly |
Value: True(This is a read-only wrapper) | ||
object SyncRoot |
Value: The sync root of the wrapped dictionary | ||
ICollectionValue<K> Keys |
Value: The collection of keys of the wrapped dictionary | ||
ICollectionValue<V> Values |
Value: The collection of values of the wrapped dictionary |
GuardedDictionary<K,V>(IDictionary<K,V> dict) |
Wrap a dictionary in a read-only wrapper
|
void Add(K key, V val) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
bool Remove(K key) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
bool Remove(K key, out V val) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
void Clear() |
Throws System.InvalidOperationException since this is a read-only wrappper |
||||||
bool Contains(K key) |
Check if the wrapped dictionary contains a specific key
|
||||||
bool Find(K key, out V val) |
Search for a key in the wrapped dictionary, reporting the value if found
|
||||||
bool Update(K key, V val) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
bool FindOrAdd(K key, ref V val) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
bool UpdateOrAdd(K key, V val) |
Throws System.InvalidOperationException since this is a read-only wrappper
|
||||||
bool Check() |
Check the internal consistency of the wrapped dictionary
|
||||||
System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
Inherited from GuardedEnumerable{KeyValuePair{K,V}}: System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
GuardedSortedDictionary<K,V>
Suitable for wrapping a Dictionary. See
System.Collections.Generic.IEnumerable<KeyValuePair<K,V>>
, IDictionary<K,V>
, ISortedDictionary<K,V>
object
, GuardedEnumerable<KeyValuePair<K,V>>
, GuardedDictionary<K,V>
int Count
, bool IsReadOnly
, V this[K key]
, ICollectionValue<K> Keys
, object SyncRoot
, ICollectionValue<V> Values
GuardedSortedDictionary<K,V>(ISortedDictionary<K,V> sorteddict)
void Add(K key, V val)
, bool Check()
, void Clear()
, bool Contains(K key)
, bool Equals(object obj)
, void Finalize()
, bool Find(K key, out V val)
, bool FindOrAdd(K key, ref V val)
, System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, KeyValuePair<K,V> Predecessor(K key)
, bool Remove(K key)
, bool Remove(K key, out V val)
, KeyValuePair<K,V> Successor(K key)
, string ToString()
, bool Update(K key, V val)
, bool UpdateOrAdd(K key, V val)
, KeyValuePair<K,V> WeakPredecessor(K key)
, KeyValuePair<K,V> WeakSuccessor(K key)
V this[K key] |
Inherited from GuardedDictionary{K,V}: V this[K key] |
int Count |
Inherited from GuardedDictionary{K,V}: int Count |
bool IsReadOnly |
Inherited from GuardedDictionary{K,V}: bool IsReadOnly |
object SyncRoot |
Inherited from GuardedDictionary{K,V}: object SyncRoot |
ICollectionValue<K> Keys |
Inherited from GuardedDictionary{K,V}: ICollectionValue<K> Keys |
ICollectionValue<V> Values |
Inherited from GuardedDictionary{K,V}: ICollectionValue<V> Values |
GuardedSortedDictionary<K,V>(ISortedDictionary<K,V> sorteddict) |
Wrap a sorted dictionary in a read-only wrapper
|
KeyValuePair<K,V> Predecessor(K key) |
Get the entry in the wrapped dictionary whose key is the
predecessor of a specified key.
|
||||
KeyValuePair<K,V> Successor(K key) |
Get the entry in the wrapped dictionary whose key is the
successor of a specified key.
|
||||
KeyValuePair<K,V> WeakPredecessor(K key) |
Get the entry in the wrapped dictionary whose key is the
weak predecessor of a specified key.
|
||||
KeyValuePair<K,V> WeakSuccessor(K key) |
Get the entry in the wrapped dictionary whose key is the
weak successor of a specified key.
|
||||
void Add(K key, V val) |
Inherited from GuardedDictionary{K,V}: void Add(K key, V val) |
||||
bool Remove(K key) |
Inherited from GuardedDictionary{K,V}: bool Remove(K key) |
||||
bool Remove(K key, out V val) |
Inherited from GuardedDictionary{K,V}: bool Remove(K key, out V val) |
||||
void Clear() |
Inherited from GuardedDictionary{K,V}: void Clear() |
||||
bool Contains(K key) |
Inherited from GuardedDictionary{K,V}: bool Contains(K key) |
||||
bool Find(K key, out V val) |
Inherited from GuardedDictionary{K,V}: bool Find(K key, out V val) |
||||
bool Update(K key, V val) |
Inherited from GuardedDictionary{K,V}: bool Update(K key, V val) |
||||
bool FindOrAdd(K key, ref V val) |
Inherited from GuardedDictionary{K,V}: bool FindOrAdd(K key, ref V val) |
||||
bool UpdateOrAdd(K key, V val) |
Inherited from GuardedDictionary{K,V}: bool UpdateOrAdd(K key, V val) |
||||
bool Check() |
Inherited from GuardedDictionary{K,V}: bool Check() |
||||
System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
Inherited from GuardedEnumerable{KeyValuePair{K,V}}: System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
IntervalHeap<T>
System.Collections.Generic.IEnumerable<T>
, ICollectionValue<T>
, IExtensible<T>
, IPriorityQueue<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
bool AllowsDuplicates
, IComparer<T> Comparer
, int Count
, Speed CountSpeed
, bool IsEmpty
, object SyncRoot
IntervalHeap<T>()
, IntervalHeap<T>(IComparer<T> c)
, IntervalHeap<T>(int capacity)
, IntervalHeap<T>(IComparer<T> c, int capacity)
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, bool Check()
, void CopyTo(T[] a, int i)
, T DeleteMax()
, T DeleteMin()
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, T FindMax()
, T FindMin()
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, T[] ToArray()
, string ToString()
IComparer<T> Comparer |
Value: The comparerThe comparer object supplied at creation time for this collection |
bool AllowsDuplicates |
Value: True since this collection has bag semantics |
object SyncRoot |
Value: The distinguished object to use for locking to synchronize multithreaded access |
bool IsEmpty |
Value: True if this collection is empty. |
int Count |
Value: The size of this collection |
Speed CountSpeed |
Value: A characterization of the speed of the
Count property in this collection.The value is symbolic indicating the type of asymptotic complexity
in terms of the size of this collection (worst-case or amortized as
relevant). |
IntervalHeap<T>() |
Create an interval heap with natural item comparer and default initial capacity (16) | ||||
IntervalHeap<T>(IComparer<T> c) |
Create an interval heap with external item comparer and default initial capacity (16)
|
||||
IntervalHeap<T>(int capacity) |
Create an interval heap with natural item comparer and prescribed initial capacity
|
||||
IntervalHeap<T>(IComparer<T> c, int capacity) |
Create an interval heap with external item comparer and prescribed initial capacity
|
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection.
|
||||
T FindMin() |
Find the current least item of this priority queue.
Throws System.InvalidOperationException if queue is empty
|
||||
T DeleteMin() |
Remove the least item from this priority queue.
Throws System.InvalidOperationException if queue is empty
|
||||
T FindMax() |
Find the current largest item of this priority queue.
Throws System.InvalidOperationException if queue is empty
|
||||
T DeleteMax() |
Remove the largest item from this priority queue.
Throws System.InvalidOperationException if queue is empty
|
||||
bool Add(T item) |
Add an item to this priority queue.
|
||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add the elements from another collection to this collection.
|
||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for the collection
|
||||
bool Check() |
Check the integrity of the internal data structures of this collection.
Only avaliable in DEBUG builds???
|
||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||
T[] ToArray() |
Inherited from CollectionValueBase{T}: T[] ToArray() |
||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
IntHasher
IHasher<int>
object
IntHasher()
bool Equals(int i1, int i2)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode(int item)
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
IntHasher() |
int GetHashCode(int item) |
Get the hash code of this integer, i.e. itself
|
||||||
bool Equals(int i1, int i2) |
Check if two integers are equal
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
NaturalComparer<T>
IComparer<T>
object
NaturalComparer<T>()
int Compare(T a, T b)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
NaturalComparer<T>() |
int Compare(T a, T b) |
Compare two items
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
NaturalComparerO<T>
IComparer<T>
object
NaturalComparerO<T>()
int Compare(T a, T b)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
NaturalComparerO<T>() |
int Compare(T a, T b) |
Compare two items
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
DefaultReferenceTypeHasher<T>
Should only be instantiated with a reference type as generic type parameter. This is asserted at instatiation time in Debug builds.
IHasher<T>
object
DefaultReferenceTypeHasher<T>()
bool Equals(T i1, T i2)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode(T item)
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
DefaultReferenceTypeHasher<T>() |
int GetHashCode(T item) |
Get the hash code with respect to this item hasher
|
||||||
bool Equals(T i1, T i2) |
Check if two items are equal with respect to this item hasher
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
DefaultValueTypeHasher<T>
Should only be instantiated with a value type as generic type parameter. This is asserted at instatiation time in Debug builds.
We cannot add the constraint "where T : struct" to get a compile time check because we need to instantiate this class in C5.HasherBuilder.ByPrototype[T].Examine() with a T that is only known at runtime to be a value type!
IHasher<T>
object
DefaultValueTypeHasher<T>()
bool Equals(T i1, T i2)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode(T item)
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
DefaultValueTypeHasher<T>() |
int GetHashCode(T item) |
Get the hash code with respect to this item hasher
|
||||||
bool Equals(T i1, T i2) |
Check if two items are equal with respect to this item hasher
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
Sorting
object
Sorting()
bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, void HeapSort<T>(T[] a, int f, int b, IComparer<T> c)
, void InsertionSort<T>(T[] a, int f, int b, IComparer<T> c)
, void IntroSort<T>(T[] a, int f, int b, IComparer<T> c)
, object MemberwiseClone()
, string ToString()
Sorting() |
N S void IntroSort<T>(T[] a, int f, int b, IComparer<T> c) |
|
||||||||
N S void InsertionSort<T>(T[] a, int f, int b, IComparer<T> c) |
|
||||||||
N S void HeapSort<T>(T[] a, int f, int b, IComparer<T> c) |
|
||||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||||
string ToString() |
Inherited from object: string ToString() |
||||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||||
P void Finalize() |
Inherited from object: void Finalize() |
C5Random
object
, System.Random
C5Random()
, C5Random(System.Int64 seed)
bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, int Next()
, int Next(int max)
, int Next(int min, int max)
, void NextBytes(System.Byte[] buffer)
, double NextDouble()
, double Sample()
, string ToString()
C5Random() |
Create a random number generator seed by system time. | ||
C5Random(System.Int64 seed) |
Create a random number generator with a given seed
|
double NextDouble() |
Get a new random System.Double value
|
||||||
P double Sample() |
Get a new random System.Double value
|
||||||
int Next() |
Get a new random System.Int32 value
|
||||||
int Next(int max) |
Get a random non-negative integer less than a given upper bound
|
||||||
int Next(int min, int max) |
Get a random integer between two given bounds
|
||||||
void NextBytes(System.Byte[] buffer) |
Fill a array of byte with random bytes
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
TestedAttribute
object
, System.Attribute
string via
object TypeId
TestedAttribute()
bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, bool IsDefaultAttribute()
, bool Match(object obj)
, object MemberwiseClone()
, string ToString()
string via |
Optional reference to test case |
object TypeId |
Inherited from System.Attribute: object TypeId |
TestedAttribute() |
string ToString() |
Pretty print attribute value
|
||
bool Equals(object obj) |
Inherited from System.Attribute: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from System.Attribute: int GetHashCode() |
||
bool Match(object obj) |
Inherited from System.Attribute: bool Match(object obj) |
||
bool IsDefaultAttribute() |
Inherited from System.Attribute: bool IsDefaultAttribute() |
||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
P void Finalize() |
Inherited from object: void Finalize() |
SortedArray<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IIndexedSorted<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
, SequencedBase<T>
, ArrayBase<T>
T[] array
, bool isReadOnly
, IHasher<T> itemhasher
, int offset
, int size
, int stamp
bool AllowsDuplicates
, IComparer<T> Comparer
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, SortedArray<T>.Feature Features
, bool IsEmpty
, bool IsReadOnly
, T this[int i]
, IDirectedCollectionValue<T> this[int start, int count]
, object SyncRoot
SortedArray<T>()
, SortedArray<T>(int capacity)
, SortedArray<T>(IComparer<T> c)
, SortedArray<T>(int capacity, IComparer<T> c)
, SortedArray<T>(int capacity, IComparer<T> c, IHasher<T> h)
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, void AddSorted(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, int CountFrom(T bot)
, int CountFromTo(T bot, T top)
, int CountTo(T top)
, bool Cut(System.IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid)
, T DeleteMax()
, T DeleteMin()
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void expand()
, void expand(int newcapacity, int newsize)
, void Finalize()
, bool Find(ref T item)
, IIndexedSorted<T> FindAll(Filter<T> f)
, T FindMax()
, T FindMin()
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, int IndexOf(T item)
, void insert(int i, T item)
, int LastIndexOf(T item)
, IIndexedSorted<V> Map<V>(Mapper<T,V> m, IComparer<V> c)
, object MemberwiseClone()
, void modifycheck(int thestamp)
, T Predecessor(T item)
, IDirectedCollectionValue<T> RangeAll()
, IDirectedCollectionValue<T> RangeFrom(T bot)
, IDirectedCollectionValue<T> RangeFromTo(T bot, T top)
, IDirectedCollectionValue<T> RangeTo(T top)
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T RemoveAt(int i)
, void RemoveInterval(int start, int count)
, void RemoveRangeFrom(T low)
, void RemoveRangeFromTo(T low, T hi)
, void RemoveRangeTo(T hi)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, T Successor(T item)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
, T WeakPredecessor(T item)
, T WeakSuccessor(T item)
P T[] array |
Inherited from ArrayBase{T}: T[] array |
P int offset |
Inherited from ArrayBase{T}: int offset |
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
SortedArray<T>.Feature Features |
Value: A debugging artifact. To be removed. | ||
Speed ContainsSpeed |
Value: Speed.LogThe value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case). | ||
bool AllowsDuplicates |
Value: False since this collection has set semantics | ||
IComparer<T> Comparer |
Value: The comparerThe comparer object supplied at creation time for this collection | ||
T this[int i] |
Value: The i'th item of this list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||
IDirectedCollectionValue<T> this[int start, int count] |
Inherited from ArrayBase{T}: IDirectedCollectionValue<T> this[int start, int count] |
||
EnumerationDirection Direction |
Inherited from SequencedBase{T}: EnumerationDirection Direction |
||
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
||
int Count |
Inherited from CollectionBase{T}: int Count |
||
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
||
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
||
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
SortedArray<T>() |
Create a dynamic sorted array with a natural comparer | ||||||
SortedArray<T>(int capacity) |
Create a dynamic sorted array with a natural comparer
and prescribed initial capacity.
|
||||||
SortedArray<T>(IComparer<T> c) |
Create a dynamic sorted array with an external comparer
|
||||||
SortedArray<T>(int capacity, IComparer<T> c) |
Create a dynamic sorted array with an external comparer
and prescribed initial capacity.
|
||||||
SortedArray<T>(int capacity, IComparer<T> c, IHasher<T> h) |
Create a dynamic sorted array with an external comparer, an external hasher
and prescribed initial capacity.
|
IIndexedSorted<V> Map<V>(Mapper<T,V> m, IComparer<V> c) |
Create a new indexed sorted collection consisting of the results of
mapping all items of this list.
Throws System.ArgumentException if the map is not increasing over
the items of this collection (with respect to the two given comparison
relations).
|
||||||||||||
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection. Since this
collection has set semantics, only items not already in the collection
will be added.
|
||||||||||||
int CountFrom(T bot) |
Determine the number of items at or above a supplied threshold.
|
||||||||||||
int CountFromTo(T bot, T top) |
Determine the number of items between two supplied thresholds.
|
||||||||||||
int CountTo(T top) |
Determine the number of items below a supplied threshold.
|
||||||||||||
IDirectedCollectionValue<T> RangeFrom(T bot) |
Query this sorted collection for items greater than or equal to a supplied value.
|
||||||||||||
IDirectedCollectionValue<T> RangeFromTo(T bot, T top) |
Query this sorted collection for items between two supplied values.
|
||||||||||||
IDirectedCollectionValue<T> RangeTo(T top) |
Query this sorted collection for items less than a supplied value.
|
||||||||||||
IIndexedSorted<T> FindAll(Filter<T> f) |
Create a new indexed sorted collection consisting of the items of this
indexed sorted collection satisfying a certain predicate.
|
||||||||||||
T Predecessor(T item) |
Find the strict predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is less than or equal to the minimum of this collection.)
|
||||||||||||
T Successor(T item) |
Find the strict successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is greater than or equal to the maximum of this collection.)
|
||||||||||||
T WeakPredecessor(T item) |
Find the weak predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than or equal to the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is less than the minimum of this collection.)
|
||||||||||||
T WeakSuccessor(T item) |
Find the weak successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than or equal to the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is greater than the maximum of this collection.)
|
||||||||||||
bool Cut(System.IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid) |
Perform a search in the sorted collection for the ranges in which a
non-decreasing function from the item type to int is
negative, zero respectively positive. If the supplied cut function is
not non-decreasing, the result of this call is undefined.
|
||||||||||||
IDirectedCollectionValue<T> RangeAll() |
Create a directed collection with the same items as this collection.
|
||||||||||||
void AddSorted(System.Collections.Generic.IEnumerable<T> items) |
Add all the items from another collection with an enumeration order that
is increasing in the items.
Throws System.ArgumentException if the enumerated items turns out
not to be in increasing order.
|
||||||||||||
void RemoveRangeFrom(T low) |
Remove all items of this collection above or at a supplied threshold.
|
||||||||||||
void RemoveRangeFromTo(T low, T hi) |
Remove all items of this collection between two supplied thresholds.
|
||||||||||||
void RemoveRangeTo(T hi) |
Remove all items of this collection below a supplied threshold.
|
||||||||||||
bool Contains(T item) |
Check if this collection contains (an item equivalent to according to the
itemhasher) a particular value.
|
||||||||||||
bool Find(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found.
|
||||||||||||
bool FindOrAdd(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found. Else, add the item to the collection.
|
||||||||||||
bool Update(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value. If the collection has bag semantics,
it is implementation dependent if this updates all equivalent copies in
the collection or just one.
|
||||||||||||
bool UpdateOrAdd(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value; else add the value to the collection.
|
||||||||||||
bool Remove(T item) |
Remove a particular item from this collection. If the collection has bag
semantics only one copy equivalent to the supplied item is removed.
|
||||||||||||
bool RemoveWithReturn(ref T item) |
Remove a particular item from this collection if found. If the collection
has bag semantics only one copy equivalent to the supplied item is removed,
which one is implementation dependent.
If an item was removed, report a binary copy of the actual item removed in
the argument.
|
||||||||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in another collection from this one.
|
||||||||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items not in some other collection from this one.
|
||||||||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if this collection contains all the values in another collection.
Multiplicities are not taken into account.
|
||||||||||||
int ContainsCount(T item) |
Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.
|
||||||||||||
void RemoveAllCopies(T item) |
Remove all (0 or 1) items equivalent to a given value.
|
||||||||||||
bool Check() |
Check the integrity of the internal data structures of this collection.
Only avaliable in DEBUG builds???
|
||||||||||||
bool Add(T item) |
Add an item to this collection if possible. If this collection has set
semantics, the item will be added if not already in the collection. If
bag semantics, the item will always be added.
|
||||||||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add the elements from another collection to this collection. If this
collection has set semantics, only items not already in the collection
will be added.
|
||||||||||||
T FindMin() |
Find the current least item of this priority queue.
|
||||||||||||
T DeleteMin() |
Remove the least item from this priority queue.
|
||||||||||||
T FindMax() |
Find the current largest item of this priority queue.
|
||||||||||||
T DeleteMax() |
Remove the largest item from this priority queue.
|
||||||||||||
int IndexOf(T item) |
Searches for an item in the list going forwrds from the start.
|
||||||||||||
int LastIndexOf(T item) |
Searches for an item in the list going backwords from the end.
|
||||||||||||
T RemoveAt(int i) |
Remove the item at a specific position of the list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||||||||||
void RemoveInterval(int start, int count) |
Remove all items in an index interval.
Throws System.IndexOutOfRangeException ???.
|
||||||||||||
P void expand() |
Inherited from ArrayBase{T}: void expand() |
||||||||||||
P void expand(int newcapacity, int newsize) |
Inherited from ArrayBase{T}: void expand(int newcapacity, int newsize) |
||||||||||||
P void insert(int i, T item) |
Inherited from ArrayBase{T}: void insert(int i, T item) |
||||||||||||
void Clear() |
Inherited from ArrayBase{T}: void Clear() |
||||||||||||
T[] ToArray() |
Inherited from ArrayBase{T}: T[] ToArray() |
||||||||||||
IDirectedCollectionValue<T> Backwards() |
Inherited from ArrayBase{T}: IDirectedCollectionValue<T> Backwards() |
||||||||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from ArrayBase{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||||||||||
N P int sequencedhashcode() |
Inherited from SequencedBase{T}: int sequencedhashcode() |
||||||||||||
N P bool sequencedequals(ISequenced<T> that) |
Inherited from SequencedBase{T}: bool sequencedequals(ISequenced<T> that) |
||||||||||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||||||||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||||||||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||||||||||
P void modifycheck(int thestamp) |
Inherited from CollectionBase{T}: void modifycheck(int thestamp) |
||||||||||||
P void updatecheck() |
Inherited from CollectionBase{T}: void updatecheck() |
||||||||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||||||||
string ToString() |
Inherited from object: string ToString() |
||||||||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||||||||
P void Finalize() |
Inherited from object: void Finalize() |
HashedArrayList<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IList<T>
, IQueue<T>
, ISequenced<T>
, IStack<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
, SequencedBase<T>
, ArrayBase<T>
, ArrayList<T>
T[] array
, bool fIFO
, bool isReadOnly
, IHasher<T> itemhasher
, int offset
, int size
, int stamp
, ArrayList<T> underlying
, int underlyingsize
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool FIFO
, T First
, bool IsEmpty
, bool IsReadOnly
, T this[int i]
, IDirectedCollectionValue<T> this[int start, int count]
, T Last
, int Offset
, object SyncRoot
, IList<T> Underlying
HashedArrayList<T>()
, HashedArrayList<T>(int cap)
, HashedArrayList<T>(IHasher<T> hasher)
, HashedArrayList<T>(int capacity, IHasher<T> hasher)
bool Add(T item)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, void addtosize(int delta)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, T DeQueue()
, void EnQueue(T item)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void expand()
, void expand(int newcapacity, int newsize)
, void Finalize()
, bool Find(ref T item)
, IList<T> FindAll(Filter<T> filter)
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, int indexOf(T item)
, int IndexOf(T item)
, void insert(int i, T item)
, void Insert(int i, T item)
, void InsertAfter(T item, T target)
, void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items)
, void InsertBefore(T item, T target)
, void InsertFirst(T item)
, void InsertLast(T item)
, bool IsSorted(IComparer<T> c)
, int lastIndexOf(T item)
, int LastIndexOf(T item)
, IList<V> Map<V>(Mapper<T,V> mapper)
, IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher)
, object MemberwiseClone()
, void modifycheck()
, void modifycheck(int stamp)
, T Pop()
, void Push(T item)
, bool Remove(T item)
, T Remove()
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T removeAt(int i)
, T RemoveAt(int i)
, T RemoveFirst()
, void RemoveInterval(int start, int count)
, T RemoveLast()
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, void Reverse(int start, int count)
, void Reverse()
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, void Shuffle(System.Random rnd)
, void Shuffle()
, void Slide(int offset)
, void Slide(int offset, int size)
, void Sort(IComparer<T> c)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
, IList<T> View(int start, int count)
P ArrayList<T> underlying |
Inherited from ArrayList{T}: ArrayList<T> underlying |
P int underlyingsize |
Inherited from ArrayList{T}: int underlyingsize |
P bool fIFO |
Inherited from ArrayList{T}: bool fIFO |
P T[] array |
Inherited from ArrayBase{T}: T[] array |
P int offset |
Inherited from ArrayBase{T}: int offset |
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
Speed ContainsSpeed |
Value: Speed.ConstantThe value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (expected). |
bool AllowsDuplicates |
Value: False, indicating hashed array list has set semantics. |
T First |
Inherited from ArrayList{T}: T First |
T Last |
Inherited from ArrayList{T}: T Last |
bool FIFO |
Inherited from ArrayList{T}: bool FIFO |
T this[int i] |
Inherited from ArrayList{T}: T this[int i] |
IList<T> Underlying |
Inherited from ArrayList{T}: IList<T> Underlying |
int Offset |
Inherited from ArrayList{T}: int Offset |
IDirectedCollectionValue<T> this[int start, int count] |
Inherited from ArrayBase{T}: IDirectedCollectionValue<T> this[int start, int count] |
EnumerationDirection Direction |
Inherited from SequencedBase{T}: EnumerationDirection Direction |
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
int Count |
Inherited from CollectionBase{T}: int Count |
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
HashedArrayList<T>() |
Create a hashed array list with the natural hasher | ||||
HashedArrayList<T>(int cap) |
Create a hashed array list with the natural hasher and specified capacity
|
||||
HashedArrayList<T>(IHasher<T> hasher) |
Create a hashed array list with an external hasher
|
||||
HashedArrayList<T>(int capacity, IHasher<T> hasher) |
Create a hashed array list with an external hasher and specified capacity
|
P int indexOf(T item) |
Internal version of IndexOf without modification checks.
|
||||||
P int lastIndexOf(T item) |
Internal version of LastIndexOf without modification checks.
|
||||||
P void insert(int i, T item) |
Internal version of Insert with no modification checks.
Throws System.ArgumentException if item already in list.
|
||||||
P T removeAt(int i) |
Internal version of RemoveAt with no modification checks.
|
||||||
void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items) |
Insert into this list all items from an enumerable collection starting
at a particular index.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
Throws System.InvalidOperationException if one of the items to insert is
already in the list.
|
||||||
void InsertBefore(T item, T target) |
Insert an item right before the first occurrence of some target item.
Throws System.ArgumentException if target is not found.
Throws System.InvalidOperationException if the item to insert is
already in the list.
|
||||||
void InsertAfter(T item, T target) |
Insert an item right after the last(???) occurrence of some target item.
Throws System.ArgumentException if target is not found.
Throws System.InvalidOperationException if the item to insert is
already in the list.
|
||||||
IList<T> View(int start, int count) |
Create a list view on this list.
Throws System.ArgumentOutOfRangeException if the view would not fit into
this list.
|
||||||
void Reverse(int start, int count) |
Reverst part of the list so the items are in the opposite sequence order.
Throws System.ArgumentException if the count is negative.
Throws System.ArgumentOutOfRangeException if the part does not fit
into the list.
|
||||||
void Sort(IComparer<T> c) |
Sort the items of the list according to a specific sorting order.
|
||||||
void Shuffle(System.Random rnd) |
Shuffle the items of this list according to a specific random source.
|
||||||
void RemoveInterval(int start, int count) |
Remove all items in an index interval.
Throws System.IndexOutOfRangeException ???.
|
||||||
bool Contains(T item) |
Check if this collection contains (an item equivalent to according to the
itemhasher) a particular value.
|
||||||
bool Remove(T item) |
Remove the first copy of a particular item from this collection.
|
||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in another collection from this one, taking multiplicities into account.
Matching items will be removed from the front. Current implementation is not optimal.
|
||||||
void Clear() |
Remove all items from this collection, resetting internal array size. | ||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items not in some other collection from this one.
|
||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if this collection contains all the values in another collection.
|
||||||
int ContainsCount(T item) |
Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.
|
||||||
void RemoveAllCopies(T item) |
Remove all items equal to a given one.
|
||||||
bool Check() |
Check the integrity of the internal data structures of this array list.
|
||||||
bool Add(T item) |
Add an item to end of this list if not already in list.
|
||||||
IList<V> Map<V>(Mapper<T,V> mapper) |
Inherited from ArrayList{T}: IList<V> Map<V>(Mapper<T,V> mapper) |
||||||
IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher) |
Inherited from ArrayList{T}: IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher) |
||||||
P void expand() |
Inherited from ArrayList{T}: void expand() |
||||||
P void expand(int newcapacity, int newsize) |
Inherited from ArrayList{T}: void expand(int newcapacity, int newsize) |
||||||
P void updatecheck() |
Inherited from ArrayList{T}: void updatecheck() |
||||||
N P void modifycheck() |
Inherited from ArrayList{T}: void modifycheck() |
||||||
P void modifycheck(int stamp) |
Inherited from ArrayList{T}: void modifycheck(int stamp) |
||||||
N P void addtosize(int delta) |
Inherited from ArrayList{T}: void addtosize(int delta) |
||||||
void Insert(int i, T item) |
Inherited from ArrayList{T}: void Insert(int i, T item) |
||||||
void InsertFirst(T item) |
Inherited from ArrayList{T}: void InsertFirst(T item) |
||||||
void InsertLast(T item) |
Inherited from ArrayList{T}: void InsertLast(T item) |
||||||
IList<T> FindAll(Filter<T> filter) |
Inherited from ArrayList{T}: IList<T> FindAll(Filter<T> filter) |
||||||
T Remove() |
Inherited from ArrayList{T}: T Remove() |
||||||
T RemoveFirst() |
Inherited from ArrayList{T}: T RemoveFirst() |
||||||
T RemoveLast() |
Inherited from ArrayList{T}: T RemoveLast() |
||||||
void Slide(int offset) |
Inherited from ArrayList{T}: void Slide(int offset) |
||||||
void Slide(int offset, int size) |
Inherited from ArrayList{T}: void Slide(int offset, int size) |
||||||
void Reverse() |
Inherited from ArrayList{T}: void Reverse() |
||||||
bool IsSorted(IComparer<T> c) |
Inherited from ArrayList{T}: bool IsSorted(IComparer<T> c) |
||||||
void Shuffle() |
Inherited from ArrayList{T}: void Shuffle() |
||||||
int IndexOf(T item) |
Inherited from ArrayList{T}: int IndexOf(T item) |
||||||
int LastIndexOf(T item) |
Inherited from ArrayList{T}: int LastIndexOf(T item) |
||||||
T RemoveAt(int i) |
Inherited from ArrayList{T}: T RemoveAt(int i) |
||||||
bool Find(ref T item) |
Inherited from ArrayList{T}: bool Find(ref T item) |
||||||
bool Update(T item) |
Inherited from ArrayList{T}: bool Update(T item) |
||||||
bool FindOrAdd(ref T item) |
Inherited from ArrayList{T}: bool FindOrAdd(ref T item) |
||||||
bool UpdateOrAdd(T item) |
Inherited from ArrayList{T}: bool UpdateOrAdd(T item) |
||||||
bool RemoveWithReturn(ref T item) |
Inherited from ArrayList{T}: bool RemoveWithReturn(ref T item) |
||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Inherited from ArrayList{T}: void AddAll(System.Collections.Generic.IEnumerable<T> items) |
||||||
void Push(T item) |
Inherited from ArrayList{T}: void Push(T item) |
||||||
T Pop() |
Inherited from ArrayList{T}: T Pop() |
||||||
void EnQueue(T item) |
Inherited from ArrayList{T}: void EnQueue(T item) |
||||||
T DeQueue() |
Inherited from ArrayList{T}: T DeQueue() |
||||||
T[] ToArray() |
Inherited from ArrayBase{T}: T[] ToArray() |
||||||
IDirectedCollectionValue<T> Backwards() |
Inherited from ArrayBase{T}: IDirectedCollectionValue<T> Backwards() |
||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from ArrayBase{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||||
N P int sequencedhashcode() |
Inherited from SequencedBase{T}: int sequencedhashcode() |
||||||
N P bool sequencedequals(ISequenced<T> that) |
Inherited from SequencedBase{T}: bool sequencedequals(ISequenced<T> that) |
||||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
LinkedList<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IList<T>
, IQueue<T>
, ISequenced<T>
, IStack<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
, SequencedBase<T>
HashedLinkedList<T>
LinkedList<T>.Node endsentinel
, bool isReadOnly
, IHasher<T> itemhasher
, bool maintaintags
, int offset
, int size
, int stamp
, LinkedList<T>.Node startsentinel
, LinkedList<T> underlying
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool FIFO
, T First
, bool IsEmpty
, bool IsReadOnly
, T this[int index]
, IDirectedCollectionValue<T> this[int start, int count]
, T Last
, int Offset
, object SyncRoot
, IList<T> Underlying
LinkedList<T>(IHasher<T> itemhasher)
, LinkedList<T>()
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, T DeQueue()
, void EnQueue(T item)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, IList<T> FindAll(Filter<T> filter)
, bool FindOrAdd(ref T item)
, LinkedList<T>.Node get(int n)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, LinkedList<T>.TagGroup gettaggroup(LinkedList<T>.Node pred, LinkedList<T>.Node succ, out int lowbound, out int highbound)
, System.Type GetType()
, int IndexOf(T item)
, void Insert(int i, T item)
, void InsertAfter(T item, T target)
, void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items)
, void InsertBefore(T item, T target)
, void InsertFirst(T item)
, void InsertLast(T item)
, void insertNode(LinkedList<T>.Node succ, LinkedList<T>.Node newnode)
, bool IsSorted(IComparer<T> c)
, int LastIndexOf(T item)
, IList<V> Map<V>(Mapper<T,V> mapper)
, IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher)
, object MemberwiseClone()
, void modifycheck()
, void modifycheck(int stamp)
, T Pop()
, void Push(T item)
, T remove(LinkedList<T>.Node node)
, T Remove()
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T RemoveAt(int i)
, T RemoveFirst()
, void removefromtaggroup(LinkedList<T>.Node node)
, void RemoveInterval(int start, int count)
, T RemoveLast()
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, void Reverse()
, void Reverse(int start, int count)
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, void settag(LinkedList<T>.Node node)
, void Shuffle()
, void Shuffle(System.Random rnd)
, void Slide(int offset)
, void Slide(int offset, int size)
, void Sort(IComparer<T> c)
, void splittaggroup(LinkedList<T>.TagGroup taggroup)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
, IList<T> View(int start, int count)
P bool maintaintags |
True if we maintain tags for node ordering (false for plain linked list, true for hashed linked list). |
P LinkedList<T>.Node startsentinel |
Node to the left of first node |
P LinkedList<T>.Node endsentinel |
Node to the right of last node |
P int offset |
Offset of this view in underlying list |
P LinkedList<T> underlying |
underlying list of theis view (or null) |
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
T First |
Value: The first item in this list.
Throws System.InvalidOperationException if this list is empty. |
||||
T Last |
Value: The last item in this list.
Throws System.InvalidOperationException if this list is empty. |
||||
bool FIFO |
Value: True if the Remove() operation removes from the
start of the list, false if it removes from the end.Since Add(T item) always add at the end of the list,
this describes if list has FIFO or LIFO semantics. |
||||
T this[int index] |
Value: The i'th item of this list.On this list, this indexer is read/write.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||
IList<T> Underlying |
Value: Underlying list for view.Null if this list is not a view. | ||||
int Offset |
Value: Offset for this list view or 0 for a underlying list. | ||||
IDirectedCollectionValue<T> this[int start, int count] |
Value: The directed collection of items in a specific index interval.
Throws System.IndexOutOfRangeException .
|
||||
Speed ContainsSpeed |
Value: Speed.LinearThe value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). | ||||
int Count |
Value: The number of items in this collection | ||||
bool AllowsDuplicates |
Value: True since this collection has bag semantics. | ||||
EnumerationDirection Direction |
Inherited from SequencedBase{T}: EnumerationDirection Direction |
||||
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
||||
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
||||
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
||||
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
LinkedList<T>(IHasher<T> itemhasher) |
Create a linked list with en external item hasher
|
||
LinkedList<T>() |
Create a linked list with the nmatural item hasher |
IList<V> Map<V>(Mapper<T,V> mapper) |
Create a new list consisting of the results of mapping all items of this
list.
|
||||||||||
IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher) |
Create a new list consisting of the results of mapping all items of this
list. The new list will use a specified hasher for the item type.
|
||||||||||
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection.
|
||||||||||
P void updatecheck() |
Check if it is valid to perform updates and increment stamp.
Throws System.InvalidOperationException if check fails.
This method should be called at the start of any public modifying methods. |
||||||||||
N P void modifycheck() |
Check if we are a view that the underlyinglist has only been updated through us.
Throws System.InvalidOperationException if check fails.
This method should be called from enumerators etc to guard against modification of the base collection. |
||||||||||
P void modifycheck(int stamp) |
Check that the list has not been updated since a particular time.
Throws System.InvalidOperationException if check fails.
|
||||||||||
N P void insertNode(LinkedList<T>.Node succ, LinkedList<T>.Node newnode) |
|
||||||||||
N P T remove(LinkedList<T>.Node node) |
|
||||||||||
N P LinkedList<T>.TagGroup gettaggroup(LinkedList<T>.Node pred, LinkedList<T>.Node succ, out int lowbound, out int highbound) |
|
||||||||||
N P void settag(LinkedList<T>.Node node) |
|
||||||||||
N P void removefromtaggroup(LinkedList<T>.Node node) |
|
||||||||||
N P void splittaggroup(LinkedList<T>.TagGroup taggroup) |
|
||||||||||
N P LinkedList<T>.Node get(int n) |
Return the node at position n
|
||||||||||
void Insert(int i, T item) |
Insert an item at a specific index location in this list.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
|
||||||||||
void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items) |
Insert into this list all items from an enumerable collection starting
at a particular index.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
|
||||||||||
void InsertBefore(T item, T target) |
Insert an item right before the first occurrence of some target item.
Throws System.ArgumentException if target is not found
|
||||||||||
void InsertAfter(T item, T target) |
Insert an item right after the last(???) occurrence of some target item.
Throws System.ArgumentException if target is not found
|
||||||||||
void InsertFirst(T item) |
Insert an item at the front of this list.
|
||||||||||
void InsertLast(T item) |
Insert an item at the back of this list.
|
||||||||||
T Remove() |
Remove one item from the list: from the front if FIFO
is true, else from the back.
Throws System.InvalidOperationException if this list is empty.
|
||||||||||
T RemoveFirst() |
Remove one item from the front of the list.
Throws System.InvalidOperationException if this list is empty.
|
||||||||||
T RemoveLast() |
Remove one item from the back of the list.
Throws System.InvalidOperationException if this list is empty.
|
||||||||||
IList<T> View(int start, int count) |
Create a list view on this list.
Throws System.ArgumentOutOfRangeException if the start or count is negative
Throws System.ArgumentException if the range does not fit within list.
|
||||||||||
void Slide(int offset) |
Slide this list view along the underlying list.
Throws System.InvalidOperationException if this list is not a view.
Throws System.ArgumentOutOfRangeException if the operation
would bring either end of the view outside the underlying list.
|
||||||||||
void Slide(int offset, int size) |
Slide this list view along the underlying list, changing its size.
Throws System.InvalidOperationException if this list is not a view.
Throws System.ArgumentOutOfRangeException if the operation
would bring either end of the view outside the underlying list.
|
||||||||||
void Reverse() |
Reverse the list so the items are in the opposite sequence order. | ||||||||||
void Reverse(int start, int count) |
Reverst part of the list so the items are in the opposite sequence order.
Throws System.ArgumentException if the count is negative.
Throws System.ArgumentOutOfRangeException if the part does not fit
into the list.
|
||||||||||
bool IsSorted(IComparer<T> c) |
Check if this list is sorted according to a specific sorting order.
|
||||||||||
void Sort(IComparer<T> c) |
Sort the items of the list according to a specific sorting order.
The sorting is stable.
|
||||||||||
void Shuffle() |
Randonmly shuffle the items of this list. | ||||||||||
void Shuffle(System.Random rnd) |
Shuffle the items of this list according to a specific random source.
|
||||||||||
int IndexOf(T item) |
Searches for an item in the list going forwrds from the start.
|
||||||||||
int LastIndexOf(T item) |
Searches for an item in the list going backwords from the end.
|
||||||||||
T RemoveAt(int i) |
Remove the item at a specific position of the list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||||||||
void RemoveInterval(int start, int count) |
Remove all items in an index interval.
Throws System.IndexOutOfRangeException ???.
|
||||||||||
IDirectedCollectionValue<T> Backwards() |
Create a collection containing the same items as this collection, but
whose enumerator will enumerate the items backwards. The new collection
will become invalid if the original is modified. Method typicaly used as in
foreach (T x in coll.Backwards()) {...}
|
||||||||||
bool Contains(T item) |
Check if this collection contains (an item equivalent to according to the
itemhasher) a particular value.
|
||||||||||
bool Find(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found.
|
||||||||||
bool Update(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value. Will update a single item.
|
||||||||||
bool FindOrAdd(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found. Else, add the item to the collection.
|
||||||||||
bool UpdateOrAdd(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value; else add the value to the collection.
|
||||||||||
bool Remove(T item) |
Remove a particular item from this collection. Since the collection has bag
semantics only one copy equivalent to the supplied item is removed.
|
||||||||||
bool RemoveWithReturn(ref T item) |
Remove a particular item from this collection if found (only one copy).
If an item was removed, report a binary copy of the actual item removed in
the argument.
|
||||||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in another collection from this one, take multiplicities into account.
|
||||||||||
void Clear() |
Remove all items from this collection. | ||||||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items not in some other collection from this one, take multiplicities into account.
|
||||||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if this collection contains all the values in another collection
with respect to multiplicities.
|
||||||||||
IList<T> FindAll(Filter<T> filter) |
Create a new list consisting of the items of this list satisfying a
certain predicate.
|
||||||||||
int ContainsCount(T item) |
Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.
|
||||||||||
void RemoveAllCopies(T item) |
Remove all items equivalent to a given value.
|
||||||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for the collection
|
||||||||||
bool Add(T item) |
Add an item to this collection if possible.
|
||||||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add the elements from another collection to this collection.
|
||||||||||
void Push(T item) |
Push an item to the top of the stack.
|
||||||||||
T Pop() |
Pop the item at the top of the stack from the stack.
|
||||||||||
void EnQueue(T item) |
Enqueue an item at the back of the queue.
|
||||||||||
T DeQueue() |
Dequeue an item from the front of the queue.
|
||||||||||
bool Check() |
Check the sanity of this list
|
||||||||||
N P int sequencedhashcode() |
Inherited from SequencedBase{T}: int sequencedhashcode() |
||||||||||
N P bool sequencedequals(ISequenced<T> that) |
Inherited from SequencedBase{T}: bool sequencedequals(ISequenced<T> that) |
||||||||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||||||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||||||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||||||
T[] ToArray() |
Inherited from CollectionValueBase{T}: T[] ToArray() |
||||||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||||||
string ToString() |
Inherited from object: string ToString() |
||||||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||||||
P void Finalize() |
Inherited from object: void Finalize() |
HashBag<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IExtensible<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
bool isReadOnly
, IHasher<T> itemhasher
, int size
, int stamp
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, bool IsEmpty
, bool IsReadOnly
, object SyncRoot
HashBag<T>()
, HashBag<T>(IHasher<T> h)
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, void modifycheck(int thestamp)
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
Speed ContainsSpeed |
Value: Always returns Speed.ConstantThe complexity of the Contains operation |
bool AllowsDuplicates |
Value: Always trueReport if this is a set collection. |
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
int Count |
Inherited from CollectionBase{T}: int Count |
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
HashBag<T>() |
Create a hash bag with the deafult item hasher. | ||
HashBag<T>(IHasher<T> h) |
Create a hash bag with an external item hasher.
|
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection.
|
||||
bool Contains(T item) |
Check if an item is in the bag
|
||||
bool Find(ref T item) |
Check if an item (collection equal to a given one) is in the bag and
if so report the actual item object found.
|
||||
bool Update(T item) |
Check if an item (collection equal to a given one) is in the bag and
if so replace the item object in the bag with the supplied one.
|
||||
bool FindOrAdd(ref T item) |
Check if an item (collection equal to a given one) is in the bag.
If found, report the actual item object in the bag,
else add the supplied one.
|
||||
bool UpdateOrAdd(T item) |
Check if an item (collection equal to a supplied one) is in the bag and
if so replace the item object in the set with the supplied one; else
add the supplied one.
|
||||
bool Remove(T item) |
Remove one copy af an item from the bag
|
||||
bool RemoveWithReturn(ref T item) |
Remove one copy of an item from the bag, reporting the actual matching item object.
|
||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in a supplied collection from this bag, counting multiplicities.
|
||||
void Clear() |
Remove all items from the bag, resetting internal table to initial size. | ||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items *not* in a supplied collection from this bag,
counting multiplicities.
|
||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if all items in a supplied collection is in this bag
(counting multiplicities).
|
||||
T[] ToArray() |
Create an array containing all items in this bag (in enumeration order).
|
||||
int ContainsCount(T item) |
Count the number of times an item is in this set.
|
||||
void RemoveAllCopies(T item) |
Remove all copies of item from this set.
|
||||
void CopyTo(T[] a, int i) |
Copy the items of this bag to part of an array.
Throws System.ArgumentOutOfRangeException if i is negative.
Throws System.ArgumentException if the array does not have room for the items.
|
||||
bool Add(T item) |
Add an item to this bag.
|
||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add all items of a collection to this set.
|
||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this bag.
|
||||
bool Check() |
Test internal structure of data (invariants)
|
||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||
P void modifycheck(int thestamp) |
Inherited from CollectionBase{T}: void modifycheck(int thestamp) |
||||
P void updatecheck() |
Inherited from CollectionBase{T}: void updatecheck() |
||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
TreeBag<T>
System.Collections.Generic.IEnumerable<T>
, System.IDisposable
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IIndexedSorted<T>
, IPersistentSorted<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
, SequencedBase<T>
bool isReadOnly
, IHasher<T> itemhasher
, int size
, int stamp
bool AllowsDuplicates
, IComparer<T> Comparer
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, TreeBag<T>.Feature Features
, bool IsEmpty
, bool IsReadOnly
, T this[int i]
, IDirectedCollectionValue<T> this[int start, int end]
, object SyncRoot
TreeBag<T>()
, TreeBag<T>(IComparer<T> c)
, TreeBag<T>(IComparer<T> c, IHasher<T> h)
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, void AddSorted(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check(string name)
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, int CountFrom(T bot)
, int CountFromTo(T bot, T top)
, int CountTo(T top)
, bool Cut(System.IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid)
, T DeleteMax()
, T DeleteMin()
, void Dispose()
, void dump()
, void dump(string msg)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, IIndexedSorted<T> FindAll(Filter<T> filter)
, T FindMax()
, T FindMin()
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, int IndexOf(T item)
, int LastIndexOf(T item)
, IIndexedSorted<V> Map<V>(Mapper<T,V> mapper, IComparer<V> c)
, object MemberwiseClone()
, void modifycheck(int thestamp)
, T Predecessor(T item)
, IDirectedCollectionValue<T> RangeAll()
, IDirectedCollectionValue<T> RangeFrom(T bot)
, IDirectedCollectionValue<T> RangeFromTo(T bot, T top)
, IDirectedCollectionValue<T> RangeTo(T top)
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T RemoveAt(int i)
, void RemoveInterval(int start, int count)
, void RemoveRangeFrom(T low)
, void RemoveRangeFromTo(T low, T hi)
, void RemoveRangeTo(T hi)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, ISorted<T> Snapshot()
, T Successor(T item)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
, T WeakPredecessor(T item)
, T WeakSuccessor(T item)
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
TreeBag<T>.Feature Features |
A debugging aid for making the selected compilation alternatives available to the user. (To be removed when selection is finally fixed for production version). | ||||
bool AllowsDuplicates |
Value: True since this collection has bag semantics. | ||||
Speed ContainsSpeed |
Value: Speed.LogThe value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). | ||||
T this[int i] |
Value: The i'th item of this list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||
IDirectedCollectionValue<T> this[int start, int end] |
Value: The directed collection of items in a specific index interval.
Throws System.IndexOutOfRangeException .
|
||||
IComparer<T> Comparer |
Value: The comparerThe comparer object supplied at creation time for this collection | ||||
EnumerationDirection Direction |
Inherited from SequencedBase{T}: EnumerationDirection Direction |
||||
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
||||
int Count |
Inherited from CollectionBase{T}: int Count |
||||
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
||||
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
||||
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
TreeBag<T>() |
Create a red-black tree collection with natural comparer and item hasher. | ||||
TreeBag<T>(IComparer<T> c) |
Create a red-black tree collection with an external comparer (and natural item hasher,
assumed consistent).
|
||||
TreeBag<T>(IComparer<T> c, IHasher<T> h) |
Create a red-black tree collection with an external comparer aand an external
item hasher, assumed consistent.
|
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection. If this
collection has set semantics, only items not already in the collection
will be added.
|
||||||||||||
IIndexedSorted<V> Map<V>(Mapper<T,V> mapper, IComparer<V> c) |
Create a new indexed sorted collection consisting of the results of
mapping all items of this list.
Throws System.ArgumentException if the map is not increasing over
the items of this collection (with respect to the two given comparison
relations).
|
||||||||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this tree
|
||||||||||||
bool Add(T item) |
Add an item to this collection if possible. If this collection has set
semantics, the item will be added if not already in the collection. If
bag semantics, the item will always be added.
|
||||||||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add the elements from another collection to this collection. If this
collection has set semantics, only items not already in the collection
will be added.
|
||||||||||||
void AddSorted(System.Collections.Generic.IEnumerable<T> items) |
Add all the items from another collection with an enumeration order that
is increasing in the items. Throws System.ArgumentException if the enumerated items turns out
not to be in increasing order.
|
||||||||||||
bool Contains(T item) |
Check if this collection contains (an item equivalent to according to the
itemhasher) a particular value.
|
||||||||||||
bool Find(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found.
|
||||||||||||
bool FindOrAdd(ref T item) |
Find or add the item to the tree. If the tree does not contain
an item equivalent to this item add it, else return the exisiting
one in the ref argument.
|
||||||||||||
bool Update(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value. If the collection has bag semantics,
this updates all equivalent copies in
the collection.
|
||||||||||||
bool UpdateOrAdd(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value; else add the value to the collection.
NOTE: the bag implementation is currently wrong!
|
||||||||||||
bool Remove(T item) |
Remove a particular item from this collection. If the collection has bag
semantics only one copy equivalent to the supplied item is removed.
|
||||||||||||
bool RemoveWithReturn(ref T item) |
Remove a particular item from this collection if found. If the collection
has bag semantics only one copy equivalent to the supplied item is removed,
which one is implementation dependent.
If an item was removed, report a binary copy of the actual item removed in
the argument.
|
||||||||||||
void Clear() |
Remove all items from this collection. | ||||||||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in another collection from this one. If this collection
has bag semantics, take multiplicities into account.
|
||||||||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items not in some other collection from this one. If this collection
has bag semantics, take multiplicities into account.
|
||||||||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if this collection contains all the values in another collection.
If this collection has bag semantics (NoDuplicates==false )
the check is made with respect to multiplicities, else multiplicities
are not taken into account.
|
||||||||||||
IIndexedSorted<T> FindAll(Filter<T> filter) |
Create a new indexed sorted collection consisting of the items of this
indexed sorted collection satisfying a certain predicate.
|
||||||||||||
int ContainsCount(T item) |
Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.
|
||||||||||||
void RemoveAllCopies(T item) |
Remove all items equivalent to a given value.
|
||||||||||||
int IndexOf(T item) |
Searches for an item in the list going forwrds from the start.
|
||||||||||||
int LastIndexOf(T item) |
Searches for an item in the list going backwords from the end.
|
||||||||||||
T RemoveAt(int i) |
Remove the item at a specific position of the list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||||||||||
void RemoveInterval(int start, int count) |
Remove all items in an index interval.
Throws System.IndexOutOfRangeException ???.
|
||||||||||||
IDirectedCollectionValue<T> Backwards() |
Create a collection containing the same items as this collection, but
whose enumerator will enumerate the items backwards. The new collection
will become invalid if the original is modified. Method typicaly used as in
foreach (T x in coll.Backwards()) {...}
|
||||||||||||
T FindMin() |
Find the current least item of this priority queue.
|
||||||||||||
T DeleteMin() |
Remove the least item from this priority queue.
|
||||||||||||
T FindMax() |
Find the current largest item of this priority queue.
|
||||||||||||
T DeleteMax() |
Remove the largest item from this priority queue.
|
||||||||||||
T Predecessor(T item) |
Find the strict predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is less than or equal to the minimum of this collection.)
|
||||||||||||
T WeakPredecessor(T item) |
Find the weak predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than or equal to the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is less than the minimum of this collection.)
|
||||||||||||
T Successor(T item) |
Find the strict successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is greater than or equal to the maximum of this collection.)
|
||||||||||||
T WeakSuccessor(T item) |
Find the weak successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than or equal to the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is greater than the maximum of this collection.)
|
||||||||||||
IDirectedCollectionValue<T> RangeFrom(T bot) |
Query this sorted collection for items greater than or equal to a supplied value.
|
||||||||||||
IDirectedCollectionValue<T> RangeFromTo(T bot, T top) |
Query this sorted collection for items between two supplied values.
|
||||||||||||
IDirectedCollectionValue<T> RangeTo(T top) |
Query this sorted collection for items less than a supplied value.
|
||||||||||||
IDirectedCollectionValue<T> RangeAll() |
Create a directed collection with the same items as this collection.
|
||||||||||||
bool Cut(System.IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid) |
Perform a search in the sorted collection for the ranges in which a
non-decreasing function from the item type to int is
negative, zero respectively positive. If the supplied cut function is
not non-decreasing, the result of this call is undefined.
|
||||||||||||
int CountFrom(T bot) |
Determine the number of items at or above a supplied threshold.
|
||||||||||||
int CountFromTo(T bot, T top) |
Determine the number of items between two supplied thresholds.
|
||||||||||||
int CountTo(T top) |
Determine the number of items below a supplied threshold.
|
||||||||||||
void RemoveRangeFrom(T low) |
Remove all items of this collection above or at a supplied threshold.
|
||||||||||||
void RemoveRangeFromTo(T low, T hi) |
Remove all items of this collection between two supplied thresholds.
|
||||||||||||
void RemoveRangeTo(T hi) |
Remove all items of this collection below a supplied threshold.
|
||||||||||||
void Dispose() |
If this tree is a snapshot, remove registration in base tree | ||||||||||||
P void Finalize() |
If this tree is a snapshot, remove registration in base tree | ||||||||||||
ISorted<T> Snapshot() |
Make a (read-only) snap shot of this collection.
|
||||||||||||
N void dump() |
Print the tree structure to the console stdout. | ||||||||||||
N void dump(string msg) |
Print the tree structure to the console stdout.
|
||||||||||||
N bool Check(string name) |
Checks red-black invariant. Dumps tree to console if bad
|
||||||||||||
bool Check() |
Checks red-black invariant. Dumps tree to console if bad
|
||||||||||||
N P int sequencedhashcode() |
Inherited from SequencedBase{T}: int sequencedhashcode() |
||||||||||||
N P bool sequencedequals(ISequenced<T> that) |
Inherited from SequencedBase{T}: bool sequencedequals(ISequenced<T> that) |
||||||||||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||||||||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||||||||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||||||||||
P void modifycheck(int thestamp) |
Inherited from CollectionBase{T}: void modifycheck(int thestamp) |
||||||||||||
P void updatecheck() |
Inherited from CollectionBase{T}: void updatecheck() |
||||||||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||||||||
T[] ToArray() |
Inherited from CollectionValueBase{T}: T[] ToArray() |
||||||||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||||||||
string ToString() |
Inherited from object: string ToString() |
||||||||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
TreeBag<T>.Enumerator
System.Collections.Generic.IEnumerator<T>
, System.IDisposable
object
T Current
TreeBag<T>.Enumerator(TreeBag<T> tree)
void Dispose()
, void Dispose(bool disposing)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool MoveNext()
, string ToString()
T Current |
Value: The current item of the enumerator.Undefined if enumerator is not valid (MoveNext hash been called returning true) |
TreeBag<T>.Enumerator(TreeBag<T> tree) |
Create a tree enumerator
|
bool MoveNext() |
Move enumerator to next item in tree, or the first item if
this is the first call to MoveNext.
Throws System.InvalidOperationException if underlying tree was modified.
|
||
void Dispose() |
Call Dispose(true) and then suppress finalization of this enumerator. | ||
P void Dispose(bool disposing) |
Remove the internal data (notably the stack array).
|
||
P void Finalize() |
Finalizer for enumeratir | ||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
TreeBag<T>.SnapEnumerator
System.Collections.Generic.IEnumerator<T>
, System.IDisposable
object
T Current
TreeBag<T>.SnapEnumerator(TreeBag<T> tree)
bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool MoveNext()
, string ToString()
T Current |
Value: The current value of the enumerator.Undefined if enumerator is not valid (MoveNext hash been called returning true) |
TreeBag<T>.SnapEnumerator(TreeBag<T> tree) |
Creta an enumerator for a snapshot of a node copy persistent red-black tree
collection
|
bool MoveNext() |
Move enumerator to next item in tree, or the first item if
this is the first call to MoveNext.
Throws System.InvalidOperationException if underlying tree was modified.
|
||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
TreeBag<T>.Range.Enumerator
System.Collections.Generic.IEnumerator<T>
, System.IDisposable
object
T Current
TreeBag<T>.Range.Enumerator(TreeBag<T>.Range range)
void Dispose()
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool MoveNext()
, string ToString()
T Current |
Value: The current value of the enumerator.Undefined if enumerator is not valid (MoveNext hash been called returning true) |
TreeBag<T>.Range.Enumerator(TreeBag<T>.Range range) |
|
bool MoveNext() |
Move enumerator to next item in tree, or the first item if
this is the first call to MoveNext.
Throws System.InvalidOperationException if underlying tree was modified.
|
||
void Dispose() |
|||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
DictionaryBase<K,V>
See the source code for See for an example
System.Collections.Generic.IEnumerable<KeyValuePair<K,V>>
, IDictionary<K,V>
object
, EnumerableBase<KeyValuePair<K,V>>
HashDictionary<K,V>
, TreeDictionary<K,V>
ICollection<KeyValuePair<K,V>> pairs
int Count
, bool IsReadOnly
, V this[K key]
, ICollectionValue<K> Keys
, object SyncRoot
, ICollectionValue<V> Values
DictionaryBase<K,V>()
void Add(K key, V val)
, bool Check()
, void Clear()
, bool Contains(K key)
, bool Equals(object obj)
, void Finalize()
, bool Find(K key, out V val)
, bool FindOrAdd(K key, ref V val)
, System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool Remove(K key)
, bool Remove(K key, out V val)
, string ToString()
, bool Update(K key, V val)
, bool UpdateOrAdd(K key, V val)
P ICollection<KeyValuePair<K,V>> pairs |
The set collection of entries underlying this dictionary implementation |
int Count |
Value: The number of entrues in the dictionary | ||
object SyncRoot |
Value: A distinguished object to use for locking to synchronize multithreaded access | ||
ICollectionValue<K> Keys |
Value: A collection containg the all the keys of the dictionary | ||
ICollectionValue<V> Values |
Value: A collection containing all the values of the dictionary | ||
V this[K key] |
Value: The value corresponding to the keyIndexer for dictionary.
Throws System.InvalidOperationException if no entry is found.
|
||
bool IsReadOnly |
Value: True if dictionary is read only |
P DictionaryBase<K,V>() |
void Add(K key, V val) |
Add a new (key, value) pair (a mapping) to the dictionary.
Throws System.InvalidOperationException if there already is an entry with the same key.
|
||||||
bool Remove(K key) |
Remove an entry with a given key from the dictionary
|
||||||
bool Remove(K key, out V val) |
Remove an entry with a given key from the dictionary and report its value.
|
||||||
void Clear() |
Remove all entries from the dictionary | ||||||
bool Contains(K key) |
Check if there is an entry with a specified key
|
||||||
bool Find(K key, out V val) |
Check if there is an entry with a specified key and report the corresponding
value if found. This can be seen as a safe form of "val = this[key]".
|
||||||
bool Update(K key, V val) |
Look for a specific key in the dictionary and if found replace the value with a new one.
This can be seen as a non-adding version of "this[key] = val".
|
||||||
bool FindOrAdd(K key, ref V val) |
Look for a specific key in the dictionary. If found, report the corresponding value,
else add an entry with the key and the supplied value.
|
||||||
bool UpdateOrAdd(K key, V val) |
Update value in dictionary corresponding to key if found, else add new entry.
More general than "this[key] = val;" by reporting if key was found.
|
||||||
bool Check() |
Check the integrity of the internal data structures of this dictionary.
Only avaliable in DEBUG builds???
|
||||||
System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
Create an enumerator for the collection of entries of the dictionary
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
TreeDictionary<K,V>
System.Collections.Generic.IEnumerable<KeyValuePair<K,V>>
, IDictionary<K,V>
, ISortedDictionary<K,V>
object
, EnumerableBase<KeyValuePair<K,V>>
, DictionaryBase<K,V>
ICollection<KeyValuePair<K,V>> pairs
int Count
, bool IsReadOnly
, V this[K key]
, ICollectionValue<K> Keys
, object SyncRoot
, ICollectionValue<V> Values
TreeDictionary<K,V>()
, TreeDictionary<K,V>(IComparer<K> c)
void Add(K key, V val)
, bool Check()
, void Clear()
, bool Contains(K key)
, bool Equals(object obj)
, void Finalize()
, bool Find(K key, out V val)
, bool FindOrAdd(K key, ref V val)
, System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, KeyValuePair<K,V> Predecessor(K key)
, bool Remove(K key)
, bool Remove(K key, out V val)
, System.Collections.Generic.IEnumerable<KeyValuePair<K,V>> Snapshot()
, KeyValuePair<K,V> Successor(K key)
, string ToString()
, bool Update(K key, V val)
, bool UpdateOrAdd(K key, V val)
, KeyValuePair<K,V> WeakPredecessor(K key)
, KeyValuePair<K,V> WeakSuccessor(K key)
P ICollection<KeyValuePair<K,V>> pairs |
Inherited from DictionaryBase{K,V}: ICollection<KeyValuePair<K,V>> pairs |
int Count |
Inherited from DictionaryBase{K,V}: int Count |
object SyncRoot |
Inherited from DictionaryBase{K,V}: object SyncRoot |
ICollectionValue<K> Keys |
Inherited from DictionaryBase{K,V}: ICollectionValue<K> Keys |
ICollectionValue<V> Values |
Inherited from DictionaryBase{K,V}: ICollectionValue<V> Values |
V this[K key] |
Inherited from DictionaryBase{K,V}: V this[K key] |
bool IsReadOnly |
Inherited from DictionaryBase{K,V}: bool IsReadOnly |
TreeDictionary<K,V>() |
Create a red-black tree dictionary using the natural comparer for keys.
Throws System.ArgumentException if the key type K is not comparable. |
||
TreeDictionary<K,V>(IComparer<K> c) |
Create a red-black tree dictionary using an external comparer for keys.
|
KeyValuePair<K,V> Predecessor(K key) |
Get the entry in the dictionary whose key is the
predecessor of a specified key.
|
||||
KeyValuePair<K,V> WeakPredecessor(K key) |
Get the entry in the dictionary whose key is the
weak predecessor of a specified key.
|
||||
KeyValuePair<K,V> Successor(K key) |
Get the entry in the dictionary whose key is the
successor of a specified key.
|
||||
KeyValuePair<K,V> WeakSuccessor(K key) |
Get the entry in the dictionary whose key is the
weak successor of a specified key.
|
||||
N System.Collections.Generic.IEnumerable<KeyValuePair<K,V>> Snapshot() |
Make a snapshot of the current state of this dictionary
|
||||
void Add(K key, V val) |
Inherited from DictionaryBase{K,V}: void Add(K key, V val) |
||||
bool Remove(K key) |
Inherited from DictionaryBase{K,V}: bool Remove(K key) |
||||
bool Remove(K key, out V val) |
Inherited from DictionaryBase{K,V}: bool Remove(K key, out V val) |
||||
void Clear() |
Inherited from DictionaryBase{K,V}: void Clear() |
||||
bool Contains(K key) |
Inherited from DictionaryBase{K,V}: bool Contains(K key) |
||||
bool Find(K key, out V val) |
Inherited from DictionaryBase{K,V}: bool Find(K key, out V val) |
||||
bool Update(K key, V val) |
Inherited from DictionaryBase{K,V}: bool Update(K key, V val) |
||||
bool FindOrAdd(K key, ref V val) |
Inherited from DictionaryBase{K,V}: bool FindOrAdd(K key, ref V val) |
||||
bool UpdateOrAdd(K key, V val) |
Inherited from DictionaryBase{K,V}: bool UpdateOrAdd(K key, V val) |
||||
bool Check() |
Inherited from DictionaryBase{K,V}: bool Check() |
||||
System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
Inherited from DictionaryBase{K,V}: System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
HashedLinkedList<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IList<T>
, IQueue<T>
, ISequenced<T>
, IStack<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
, SequencedBase<T>
, LinkedList<T>
LinkedList<T>.Node endsentinel
, bool isReadOnly
, IHasher<T> itemhasher
, bool maintaintags
, int offset
, int size
, int stamp
, LinkedList<T>.Node startsentinel
, LinkedList<T> underlying
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, bool FIFO
, T First
, bool IsEmpty
, bool IsReadOnly
, T this[int i]
, IDirectedCollectionValue<T> this[int start, int count]
, T Last
, int Offset
, object SyncRoot
, IList<T> Underlying
HashedLinkedList<T>(IHasher<T> itemhasher)
, HashedLinkedList<T>()
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, T DeQueue()
, void EnQueue(T item)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, IList<T> FindAll(Filter<T> filter)
, bool FindOrAdd(ref T item)
, LinkedList<T>.Node get(int n)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, LinkedList<T>.TagGroup gettaggroup(LinkedList<T>.Node pred, LinkedList<T>.Node succ, out int lowbound, out int highbound)
, System.Type GetType()
, int IndexOf(T item)
, void Insert(int i, T item)
, void InsertAfter(T item, T target)
, void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items)
, void InsertBefore(T item, T target)
, void InsertFirst(T item)
, void InsertLast(T item)
, void insertNode(LinkedList<T>.Node succ, LinkedList<T>.Node newnode)
, bool IsSorted(IComparer<T> c)
, int LastIndexOf(T item)
, IList<V> Map<V>(Mapper<T,V> mapper)
, IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher)
, object MemberwiseClone()
, void modifycheck()
, void modifycheck(int stamp)
, T Pop()
, void Push(T item)
, T remove(LinkedList<T>.Node node)
, T Remove()
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T RemoveAt(int i)
, T RemoveFirst()
, void removefromtaggroup(LinkedList<T>.Node node)
, void RemoveInterval(int start, int count)
, T RemoveLast()
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, void Reverse(int start, int count)
, void Reverse()
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, void settag(LinkedList<T>.Node node)
, void Shuffle(System.Random rnd)
, void Shuffle()
, void Slide(int offset)
, void Slide(int offset, int size)
, void Sort(IComparer<T> c)
, void splittaggroup(LinkedList<T>.TagGroup taggroup)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
, IList<T> View(int start, int count)
P bool maintaintags |
Inherited from LinkedList{T}: bool maintaintags |
P LinkedList<T>.Node startsentinel |
Inherited from LinkedList{T}: LinkedList<T>.Node startsentinel |
P LinkedList<T>.Node endsentinel |
Inherited from LinkedList{T}: LinkedList<T>.Node endsentinel |
P int offset |
Inherited from LinkedList{T}: int offset |
P LinkedList<T> underlying |
Inherited from LinkedList{T}: LinkedList<T> underlying |
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
T this[int i] |
Value: The i'th item of this list.On this list, this indexer is read/write.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||
Speed ContainsSpeed |
Value: Speed.ConstantThe value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). | ||
bool AllowsDuplicates |
Value: False since this collection has set semantics. | ||
T First |
Inherited from LinkedList{T}: T First |
||
T Last |
Inherited from LinkedList{T}: T Last |
||
bool FIFO |
Inherited from LinkedList{T}: bool FIFO |
||
IList<T> Underlying |
Inherited from LinkedList{T}: IList<T> Underlying |
||
int Offset |
Inherited from LinkedList{T}: int Offset |
||
IDirectedCollectionValue<T> this[int start, int count] |
Inherited from LinkedList{T}: IDirectedCollectionValue<T> this[int start, int count] |
||
int Count |
Inherited from LinkedList{T}: int Count |
||
EnumerationDirection Direction |
Inherited from SequencedBase{T}: EnumerationDirection Direction |
||
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
||
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
||
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
||
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
HashedLinkedList<T>(IHasher<T> itemhasher) |
Create a hashed linked list with an external item hasher.
|
||
HashedLinkedList<T>() |
Create a hashed linked list with the natural item hasher. |
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection.
Only items not already in the collection
will be added.
|
||||||
void Insert(int i, T item) |
Insert an item at a specific index location in this list.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
|
||||||
void InsertAll(int i, System.Collections.Generic.IEnumerable<T> items) |
Insert into this list all items from an enumerable collection starting
at a particular index.
Throws System.IndexOutOfRangeException if i is negative or
> the size of the collection.
Throws System.InvalidOperationException if one of the items to insert is
already in the list.
|
||||||
void InsertBefore(T item, T target) |
Insert an item right before the first occurrence of some target item.
Throws System.ArgumentException if target is not found
Throws System.InvalidOperationException if the item is
already in the list.
|
||||||
void InsertAfter(T item, T target) |
Insert an item right after the last(???) occurrence of some target item.
Throws System.ArgumentException if target is not found
Throws System.InvalidOperationException if the item is
already in the list.
|
||||||
void InsertFirst(T item) |
Insert an item at the front of this list.
Throws System.InvalidOperationException if the item is
already in the list.
|
||||||
void InsertLast(T item) |
Insert an item at the back of this list.
Throws System.InvalidOperationException if the item is
already in the list.
|
||||||
T Remove() |
Remove one item from the list: from the front if FIFO
is true, else from the back.
Throws System.InvalidOperationException if this list is empty.
|
||||||
T RemoveFirst() |
Remove one item from the front of the list.
Throws System.InvalidOperationException if this list is empty.
|
||||||
T RemoveLast() |
Remove one item from the back of the list.
Throws System.InvalidOperationException if this list is empty.
|
||||||
IList<T> View(int start, int count) |
Create a list view on this list.
Throws System.ArgumentOutOfRangeException if the view would not fit into
this list.
|
||||||
void Reverse(int start, int count) |
Reverst part of the list so the items are in the opposite sequence order.
Throws System.ArgumentException if the count is negative.
Throws System.ArgumentOutOfRangeException if the part does not fit
into the list.
|
||||||
void Shuffle(System.Random rnd) |
Shuffle the items of this list according to a specific random source.
|
||||||
int IndexOf(T item) |
Searches for an item in the list going forwrds from the start.
|
||||||
int LastIndexOf(T item) |
Searches for an item in the list going backwords from the end.
|
||||||
T RemoveAt(int i) |
Remove the item at a specific position of the list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||||
void RemoveInterval(int start, int count) |
Remove all items in an index interval.
Throws System.IndexOutOfRangeException ???.
|
||||||
bool Contains(T item) |
Check if this collection contains (an item equivalent to according to the
itemhasher) a particular value.
|
||||||
bool Find(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found.
|
||||||
bool Update(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value.
|
||||||
bool FindOrAdd(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found. Else, add the item to the collection.
|
||||||
bool UpdateOrAdd(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value; else add the value to the collection.
|
||||||
bool Remove(T item) |
Remove a particular item from this collection.
|
||||||
bool RemoveWithReturn(ref T item) |
Remove a particular item from this collection if found.
If an item was removed, report a binary copy of the actual item removed in
the argument.
|
||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in another collection from this one.
|
||||||
void Clear() |
Remove all items from this collection. | ||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items not in some other collection from this one.
|
||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if this collection contains all the values in another collection
Multiplicities
are not taken into account.
|
||||||
int ContainsCount(T item) |
Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.
|
||||||
void RemoveAllCopies(T item) |
Remove all items equivalent to a given value.
|
||||||
bool Add(T item) |
Add an item to this collection if possible. Since this collection has set
semantics, the item will be added if not already in the collection.
|
||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add the elements from another collection to this collection.
Only items not already in the collection
will be added.
|
||||||
bool Check() |
Check the integrity of the internal data structures of this collection.
Only avaliable in DEBUG builds???
|
||||||
IList<V> Map<V>(Mapper<T,V> mapper) |
Inherited from LinkedList{T}: IList<V> Map<V>(Mapper<T,V> mapper) |
||||||
IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher) |
Inherited from LinkedList{T}: IList<V> Map<V>(Mapper<T,V> mapper, IHasher<V> hasher) |
||||||
P void updatecheck() |
Inherited from LinkedList{T}: void updatecheck() |
||||||
N P void modifycheck() |
Inherited from LinkedList{T}: void modifycheck() |
||||||
P void modifycheck(int stamp) |
Inherited from LinkedList{T}: void modifycheck(int stamp) |
||||||
N P void insertNode(LinkedList<T>.Node succ, LinkedList<T>.Node newnode) |
Inherited from LinkedList{T}: void insertNode(LinkedList<T>.Node succ, LinkedList<T>.Node newnode) |
||||||
N P T remove(LinkedList<T>.Node node) |
Inherited from LinkedList{T}: T remove(LinkedList<T>.Node node) |
||||||
N P LinkedList<T>.TagGroup gettaggroup(LinkedList<T>.Node pred, LinkedList<T>.Node succ, out int lowbound, out int highbound) |
Inherited from LinkedList{T}: LinkedList<T>.TagGroup gettaggroup(LinkedList<T>.Node pred, LinkedList<T>.Node succ, out int lowbound, out int highbound) |
||||||
N P void settag(LinkedList<T>.Node node) |
Inherited from LinkedList{T}: void settag(LinkedList<T>.Node node) |
||||||
N P void removefromtaggroup(LinkedList<T>.Node node) |
Inherited from LinkedList{T}: void removefromtaggroup(LinkedList<T>.Node node) |
||||||
N P void splittaggroup(LinkedList<T>.TagGroup taggroup) |
Inherited from LinkedList{T}: void splittaggroup(LinkedList<T>.TagGroup taggroup) |
||||||
N P LinkedList<T>.Node get(int n) |
Inherited from LinkedList{T}: LinkedList<T>.Node get(int n) |
||||||
void Slide(int offset) |
Inherited from LinkedList{T}: void Slide(int offset) |
||||||
void Slide(int offset, int size) |
Inherited from LinkedList{T}: void Slide(int offset, int size) |
||||||
void Reverse() |
Inherited from LinkedList{T}: void Reverse() |
||||||
bool IsSorted(IComparer<T> c) |
Inherited from LinkedList{T}: bool IsSorted(IComparer<T> c) |
||||||
void Sort(IComparer<T> c) |
Inherited from LinkedList{T}: void Sort(IComparer<T> c) |
||||||
void Shuffle() |
Inherited from LinkedList{T}: void Shuffle() |
||||||
IDirectedCollectionValue<T> Backwards() |
Inherited from LinkedList{T}: IDirectedCollectionValue<T> Backwards() |
||||||
IList<T> FindAll(Filter<T> filter) |
Inherited from LinkedList{T}: IList<T> FindAll(Filter<T> filter) |
||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Inherited from LinkedList{T}: System.Collections.Generic.IEnumerator<T> GetEnumerator() |
||||||
void Push(T item) |
Inherited from LinkedList{T}: void Push(T item) |
||||||
T Pop() |
Inherited from LinkedList{T}: T Pop() |
||||||
void EnQueue(T item) |
Inherited from LinkedList{T}: void EnQueue(T item) |
||||||
T DeQueue() |
Inherited from LinkedList{T}: T DeQueue() |
||||||
N P int sequencedhashcode() |
Inherited from SequencedBase{T}: int sequencedhashcode() |
||||||
N P bool sequencedequals(ISequenced<T> that) |
Inherited from SequencedBase{T}: bool sequencedequals(ISequenced<T> that) |
||||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||
T[] ToArray() |
Inherited from CollectionValueBase{T}: T[] ToArray() |
||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
HashDictionary<K,V>
System.Collections.Generic.IEnumerable<KeyValuePair<K,V>>
, IDictionary<K,V>
object
, EnumerableBase<KeyValuePair<K,V>>
, DictionaryBase<K,V>
ICollection<KeyValuePair<K,V>> pairs
int Count
, bool IsReadOnly
, V this[K key]
, ICollectionValue<K> Keys
, object SyncRoot
, ICollectionValue<V> Values
HashDictionary<K,V>()
, HashDictionary<K,V>(IHasher<K> h)
, HashDictionary<K,V>(int capacity, double fill, IHasher<K> h)
void Add(K key, V val)
, bool Check()
, void Clear()
, bool Contains(K key)
, bool Equals(object obj)
, void Finalize()
, bool Find(K key, out V val)
, bool FindOrAdd(K key, ref V val)
, System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool Remove(K key)
, bool Remove(K key, out V val)
, string ToString()
, bool Update(K key, V val)
, bool UpdateOrAdd(K key, V val)
P ICollection<KeyValuePair<K,V>> pairs |
Inherited from DictionaryBase{K,V}: ICollection<KeyValuePair<K,V>> pairs |
int Count |
Inherited from DictionaryBase{K,V}: int Count |
object SyncRoot |
Inherited from DictionaryBase{K,V}: object SyncRoot |
ICollectionValue<K> Keys |
Inherited from DictionaryBase{K,V}: ICollectionValue<K> Keys |
ICollectionValue<V> Values |
Inherited from DictionaryBase{K,V}: ICollectionValue<V> Values |
V this[K key] |
Inherited from DictionaryBase{K,V}: V this[K key] |
bool IsReadOnly |
Inherited from DictionaryBase{K,V}: bool IsReadOnly |
HashDictionary<K,V>() |
Create a hash dictionary using a default hasher for the keys. Initial capacity of internal table will be 16 entries and threshold for expansion is 66% fill. | ||||||
HashDictionary<K,V>(IHasher<K> h) |
Create a hash dictionary using a custom hasher for the keys.
Initial capacity of internal table will be 16 entries and threshold for
expansion is 66% fill.
|
||||||
HashDictionary<K,V>(int capacity, double fill, IHasher<K> h) |
Create a hash dictionary using a custom hasher and prescribing the
initial size of the dictionary and a non-default threshold for internal table expansion.
|
void Add(K key, V val) |
Inherited from DictionaryBase{K,V}: void Add(K key, V val) |
bool Remove(K key) |
Inherited from DictionaryBase{K,V}: bool Remove(K key) |
bool Remove(K key, out V val) |
Inherited from DictionaryBase{K,V}: bool Remove(K key, out V val) |
void Clear() |
Inherited from DictionaryBase{K,V}: void Clear() |
bool Contains(K key) |
Inherited from DictionaryBase{K,V}: bool Contains(K key) |
bool Find(K key, out V val) |
Inherited from DictionaryBase{K,V}: bool Find(K key, out V val) |
bool Update(K key, V val) |
Inherited from DictionaryBase{K,V}: bool Update(K key, V val) |
bool FindOrAdd(K key, ref V val) |
Inherited from DictionaryBase{K,V}: bool FindOrAdd(K key, ref V val) |
bool UpdateOrAdd(K key, V val) |
Inherited from DictionaryBase{K,V}: bool UpdateOrAdd(K key, V val) |
bool Check() |
Inherited from DictionaryBase{K,V}: bool Check() |
System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
Inherited from DictionaryBase{K,V}: System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
N System.Type GetType() |
Inherited from object: System.Type GetType() |
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
string ToString() |
Inherited from object: string ToString() |
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
int GetHashCode() |
Inherited from object: int GetHashCode() |
P void Finalize() |
Inherited from object: void Finalize() |
ComparerBuilder.FromComparable<T>
object
ComparerBuilder.FromComparable<T>()
bool Equals(object obj)
, IComparer<T> Examine()
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
ComparerBuilder.FromComparable<T>() |
N S IComparer<T> Examine() |
Create a default comparer
Throws System.ArgumentException if T is not comparable.
|
||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
HasherBuilder.SequencedHasher<S,W>
IHasher<S>
object
HasherBuilder.SequencedHasher<S,W>()
bool Equals(S i1, S i2)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode(S item)
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
HasherBuilder.SequencedHasher<S,W>() |
int GetHashCode(S item) |
Get the hash code with respect to this sequenced hasher
|
||||||
bool Equals(S i1, S i2) |
Check if two items are equal with respect to this sequenced hasher
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
HasherBuilder.UnsequencedHasher<S,W>
IHasher<S>
object
HasherBuilder.UnsequencedHasher<S,W>()
bool Equals(S i1, S i2)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode(S item)
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
HasherBuilder.UnsequencedHasher<S,W>() |
int GetHashCode(S item) |
Get the hash code with respect to this unsequenced hasher
|
||||||
bool Equals(S i1, S i2) |
Check if two items are equal with respect to this unsequenced hasher
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
HasherBuilder.ByPrototype<T>
object
HasherBuilder.ByPrototype<T>()
bool Equals(object obj)
, IHasher<T> Examine()
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
HasherBuilder.ByPrototype<T>() |
N S IHasher<T> Examine() |
See class description
|
||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
HasherBuilder.ByInvoke<T>
IHasher<T>
object
bool Equals(T i1, T i2)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode(T item)
, int GetHashCode()
, System.Type GetType()
, IHasher<T> MakeHasher()
, object MemberwiseClone()
, string ToString()
N S IHasher<T> MakeHasher() |
|
||||||
int GetHashCode(T item) |
|
||||||
bool Equals(T i1, T i2) |
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
HasherBuilder.ByRTCG
object
HasherBuilder.ByRTCG()
IHasher<T> build<T>()
, IHasher<T> CreateHasher<T>(System.Reflection.MethodInfo hinfo, System.Reflection.MethodInfo einfo)
, void dump()
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
HasherBuilder.ByRTCG() |
N S IHasher<T> CreateHasher<T>(System.Reflection.MethodInfo hinfo, System.Reflection.MethodInfo einfo) |
|
||||||
N S IHasher<T> build<T>() |
|
||||||
N void dump() |
|||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
HashSet<T>
System.Collections.Generic.IEnumerable<T>
, ICollection<T>
, ICollectionValue<T>
, IExtensible<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
bool isReadOnly
, IHasher<T> itemhasher
, int size
, int stamp
bool AllowsDuplicates
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, HashSet<T>.Feature Features
, bool IsEmpty
, bool IsReadOnly
, object SyncRoot
HashSet<T>()
, HashSet<T>(IHasher<T> itemhasher)
, HashSet<T>(int capacity, IHasher<T> itemhasher)
, HashSet<T>(int capacity, double fill, IHasher<T> itemhasher)
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, ISortedDictionary<int,int> BucketSizeDistribution()
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, void modifycheck(int thestamp)
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
HashSet<T>.Feature Features |
Show which implementation features was chosen at compilation time |
Speed ContainsSpeed |
Value: Always returns Speed.ConstantThe complexity of the Contains operation |
bool AllowsDuplicates |
Value: Always falseReport if this is a set collection. |
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
int Count |
Inherited from CollectionBase{T}: int Count |
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
HashSet<T>() |
Create a hash set with natural item hasher and default fill threshold (66%) and initial table size (16). | ||||||
HashSet<T>(IHasher<T> itemhasher) |
Create a hash set with external item hasher and default fill threshold (66%)
and initial table size (16).
|
||||||
HashSet<T>(int capacity, IHasher<T> itemhasher) |
Create a hash set with external item hasher and default fill threshold (66%)
|
||||||
HashSet<T>(int capacity, double fill, IHasher<T> itemhasher) |
Create a hash set with external item hasher.
|
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection. Since this
collection has set semantics, only items not already in the collection
will be added.
|
||||
bool Contains(T item) |
Check if an item is in the set
|
||||
bool Find(ref T item) |
Check if an item (collection equal to a given one) is in the set and
if so report the actual item object found.
|
||||
bool Update(T item) |
Check if an item (collection equal to a given one) is in the set and
if so replace the item object in the set with the supplied one.
|
||||
bool FindOrAdd(ref T item) |
Check if an item (collection equal to a given one) is in the set.
If found, report the actual item object in the set,
else add the supplied one.
|
||||
bool UpdateOrAdd(T item) |
Check if an item (collection equal to a supplied one) is in the set and
if so replace the item object in the set with the supplied one; else
add the supplied one.
|
||||
bool Remove(T item) |
Remove an item from the set
|
||||
bool RemoveWithReturn(ref T item) |
Remove an item from the set, reporting the actual matching item object.
|
||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in a supplied collection from this set.
|
||||
void Clear() |
Remove all items from the set, resetting internal table to initial size. | ||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items *not* in a supplied collection from this set.
|
||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if all items in a supplied collection is in this set
(ignoring multiplicities).
|
||||
T[] ToArray() |
Create an array containing all items in this set (in enumeration order).
|
||||
int ContainsCount(T item) |
Count the number of times an item is in this set (either 0 or 1).
|
||||
void RemoveAllCopies(T item) |
Remove all (at most 1) copies of item from this set.
|
||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this set.
|
||||
bool Add(T item) |
Add an item to this set.
|
||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add all items of a collection to this set.
|
||||
bool Check() |
Test internal structure of data (invariants)
|
||||
N ISortedDictionary<int,int> BucketSizeDistribution() |
Produce statistics on distribution of bucket sizes. Current implementation is incomplete.
|
||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||
P void modifycheck(int thestamp) |
Inherited from CollectionBase{T}: void modifycheck(int thestamp) |
||||
P void updatecheck() |
Inherited from CollectionBase{T}: void updatecheck() |
||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
string ToString() |
Inherited from object: string ToString() |
||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
TreeSet<T>
The comparer (sorting order) may be either natural, because the item type is comparable (generic: See or non-generic: System.IComparable) or it can be external and supplied by the user in the constructor.
TODO: describe performance here
TODO: discuss persistence and its useful usage modes. Warn about the space leak possible with other usage modes.
System.Collections.Generic.IEnumerable<T>
, System.IDisposable
, ICollection<T>
, ICollectionValue<T>
, IDirectedCollectionValue<T>
, IDirectedEnumerable<T>
, IExtensible<T>
, IIndexed<T>
, IIndexedSorted<T>
, IPersistentSorted<T>
, IPriorityQueue<T>
, ISequenced<T>
, ISorted<T>
object
, EnumerableBase<T>
, CollectionValueBase<T>
, CollectionBase<T>
, SequencedBase<T>
bool isReadOnly
, IHasher<T> itemhasher
, int size
, int stamp
bool AllowsDuplicates
, IComparer<T> Comparer
, Speed ContainsSpeed
, int Count
, Speed CountSpeed
, EnumerationDirection Direction
, TreeSet<T>.Feature Features
, bool IsEmpty
, bool IsReadOnly
, T this[int i]
, IDirectedCollectionValue<T> this[int start, int end]
, object SyncRoot
TreeSet<T>()
, TreeSet<T>(IComparer<T> c)
, TreeSet<T>(IComparer<T> c, IHasher<T> h)
bool Add(T item)
, void AddAll<U>(System.Collections.Generic.IEnumerable<U> items)
, void AddAll(System.Collections.Generic.IEnumerable<T> items)
, void AddSorted(System.Collections.Generic.IEnumerable<T> items)
, bool All(Filter<T> filter)
, void Apply(Applier<T> a)
, IDirectedCollectionValue<T> Backwards()
, bool Check(string name)
, bool Check()
, void checkRange(int start, int count)
, void Clear()
, bool Contains(T item)
, bool ContainsAll(System.Collections.Generic.IEnumerable<T> items)
, int ContainsCount(T item)
, void CopyTo(T[] a, int i)
, int CountFrom(T bot)
, int CountFromTo(T bot, T top)
, int CountTo(T top)
, bool Cut(System.IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid)
, T DeleteMax()
, T DeleteMin()
, void Dispose()
, void dump()
, void dump(string msg)
, bool Equals(object obj)
, bool Exists(Filter<T> filter)
, void Finalize()
, bool Find(ref T item)
, IIndexedSorted<T> FindAll(Filter<T> filter)
, T FindMax()
, T FindMin()
, bool FindOrAdd(ref T item)
, System.Collections.Generic.IEnumerator<T> GetEnumerator()
, int GetHashCode()
, System.Type GetType()
, int IndexOf(T item)
, int LastIndexOf(T item)
, IIndexedSorted<V> Map<V>(Mapper<T,V> mapper, IComparer<V> c)
, object MemberwiseClone()
, void modifycheck(int thestamp)
, T Predecessor(T item)
, IDirectedCollectionValue<T> RangeAll()
, IDirectedCollectionValue<T> RangeFrom(T bot)
, IDirectedCollectionValue<T> RangeFromTo(T bot, T top)
, IDirectedCollectionValue<T> RangeTo(T top)
, bool Remove(T item)
, void RemoveAll(System.Collections.Generic.IEnumerable<T> items)
, void RemoveAllCopies(T item)
, T RemoveAt(int i)
, void RemoveInterval(int start, int count)
, void RemoveRangeFrom(T low)
, void RemoveRangeFromTo(T low, T hi)
, void RemoveRangeTo(T hi)
, bool RemoveWithReturn(ref T item)
, void RetainAll(System.Collections.Generic.IEnumerable<T> items)
, bool sequencedequals(ISequenced<T> that)
, int sequencedhashcode()
, ISorted<T> Snapshot()
, T Successor(T item)
, T[] ToArray()
, string ToString()
, bool unsequencedequals(ICollection<T> that)
, int unsequencedhashcode()
, bool Update(T item)
, void updatecheck()
, bool UpdateOrAdd(T item)
, T WeakPredecessor(T item)
, T WeakSuccessor(T item)
P bool isReadOnly |
Inherited from CollectionBase{T}: bool isReadOnly |
P int stamp |
Inherited from CollectionBase{T}: int stamp |
P int size |
Inherited from CollectionBase{T}: int size |
P IHasher<T> itemhasher |
Inherited from CollectionBase{T}: IHasher<T> itemhasher |
TreeSet<T>.Feature Features |
A debugging aid for making the selected compilation alternatives available to the user. (To be removed when selection is finally fixed for production version). | ||||
bool AllowsDuplicates |
Value: False since this tree has set semantics. | ||||
Speed ContainsSpeed |
Value: Speed.LogThe value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). | ||||
T this[int i] |
Value: The i'th item of this list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||
IDirectedCollectionValue<T> this[int start, int end] |
Value: The directed collection of items in a specific index interval.
Throws System.IndexOutOfRangeException .
|
||||
IComparer<T> Comparer |
Value: The comparerThe comparer object supplied at creation time for this collection | ||||
EnumerationDirection Direction |
Inherited from SequencedBase{T}: EnumerationDirection Direction |
||||
bool IsReadOnly |
Inherited from CollectionBase{T}: bool IsReadOnly |
||||
int Count |
Inherited from CollectionBase{T}: int Count |
||||
Speed CountSpeed |
Inherited from CollectionBase{T}: Speed CountSpeed |
||||
object SyncRoot |
Inherited from CollectionBase{T}: object SyncRoot |
||||
bool IsEmpty |
Inherited from CollectionBase{T}: bool IsEmpty |
TreeSet<T>() |
Create a red-black tree collection with natural comparer and item hasher. | ||||
TreeSet<T>(IComparer<T> c) |
Create a red-black tree collection with an external comparer (and natural item hasher,
assumed consistent).
|
||||
TreeSet<T>(IComparer<T> c, IHasher<T> h) |
Create a red-black tree collection with an external comparer aand an external
item hasher, assumed consistent.
|
void AddAll<U>(System.Collections.Generic.IEnumerable<U> items) |
Add the elements from another collection with a more specialized item type
to this collection. If this
collection has set semantics, only items not already in the collection
will be added.
|
||||||||||||
IIndexedSorted<V> Map<V>(Mapper<T,V> mapper, IComparer<V> c) |
Create a new indexed sorted collection consisting of the results of
mapping all items of this list.
Throws System.ArgumentException if the map is not increasing over
the items of this collection (with respect to the two given comparison
relations).
|
||||||||||||
System.Collections.Generic.IEnumerator<T> GetEnumerator() |
Create an enumerator for this tree
|
||||||||||||
bool Add(T item) |
Add an item to this collection if possible. If this collection has set
semantics, the item will be added if not already in the collection. If
bag semantics, the item will always be added.
|
||||||||||||
void AddAll(System.Collections.Generic.IEnumerable<T> items) |
Add the elements from another collection to this collection. If this
collection has set semantics, only items not already in the collection
will be added.
|
||||||||||||
void AddSorted(System.Collections.Generic.IEnumerable<T> items) |
Add all the items from another collection with an enumeration order that
is increasing in the items. Throws System.ArgumentException if the enumerated items turns out
not to be in increasing order.
|
||||||||||||
bool Contains(T item) |
Check if this collection contains (an item equivalent to according to the
itemhasher) a particular value.
|
||||||||||||
bool Find(ref T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found.
|
||||||||||||
bool FindOrAdd(ref T item) |
Find or add the item to the tree. If the tree does not contain
an item equivalent to this item add it, else return the exisiting
one in the ref argument.
|
||||||||||||
bool Update(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value. If the collection has bag semantics,
this updates all equivalent copies in
the collection.
|
||||||||||||
bool UpdateOrAdd(T item) |
Check if this collection contains an item equivalent according to the
itemhasher to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value; else add the value to the collection.
NOTE: the bag implementation is currently wrong!
|
||||||||||||
bool Remove(T item) |
Remove a particular item from this collection. If the collection has bag
semantics only one copy equivalent to the supplied item is removed.
|
||||||||||||
bool RemoveWithReturn(ref T item) |
Remove a particular item from this collection if found. If the collection
has bag semantics only one copy equivalent to the supplied item is removed,
which one is implementation dependent.
If an item was removed, report a binary copy of the actual item removed in
the argument.
|
||||||||||||
void Clear() |
Remove all items from this collection. | ||||||||||||
void RemoveAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items in another collection from this one. If this collection
has bag semantics, take multiplicities into account.
|
||||||||||||
void RetainAll(System.Collections.Generic.IEnumerable<T> items) |
Remove all items not in some other collection from this one. If this collection
has bag semantics, take multiplicities into account.
|
||||||||||||
bool ContainsAll(System.Collections.Generic.IEnumerable<T> items) |
Check if this collection contains all the values in another collection.
If this collection has bag semantics (NoDuplicates==false )
the check is made with respect to multiplicities, else multiplicities
are not taken into account.
|
||||||||||||
IIndexedSorted<T> FindAll(Filter<T> filter) |
Create a new indexed sorted collection consisting of the items of this
indexed sorted collection satisfying a certain predicate.
|
||||||||||||
int ContainsCount(T item) |
Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.
|
||||||||||||
void RemoveAllCopies(T item) |
Remove all items equivalent to a given value.
|
||||||||||||
int IndexOf(T item) |
Searches for an item in the list going forwrds from the start.
|
||||||||||||
int LastIndexOf(T item) |
Searches for an item in the list going backwords from the end.
|
||||||||||||
T RemoveAt(int i) |
Remove the item at a specific position of the list.
Throws System.IndexOutOfRangeException if i is negative or
>= the size of the collection.
|
||||||||||||
void RemoveInterval(int start, int count) |
Remove all items in an index interval.
Throws System.IndexOutOfRangeException ???.
|
||||||||||||
IDirectedCollectionValue<T> Backwards() |
Create a collection containing the same items as this collection, but
whose enumerator will enumerate the items backwards. The new collection
will become invalid if the original is modified. Method typicaly used as in
foreach (T x in coll.Backwards()) {...}
|
||||||||||||
T FindMin() |
Find the current least item of this priority queue.
|
||||||||||||
T DeleteMin() |
Remove the least item from this priority queue.
|
||||||||||||
T FindMax() |
Find the current largest item of this priority queue.
|
||||||||||||
T DeleteMax() |
Remove the largest item from this priority queue.
|
||||||||||||
T Predecessor(T item) |
Find the strict predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is less than or equal to the minimum of this collection.)
|
||||||||||||
T WeakPredecessor(T item) |
Find the weak predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than or equal to the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is less than the minimum of this collection.)
|
||||||||||||
T Successor(T item) |
Find the strict successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is greater than or equal to the maximum of this collection.)
|
||||||||||||
T WeakSuccessor(T item) |
Find the weak successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than or equal to the supplied value.
Throws System.InvalidOperationException if no such element exists (the
supplied value is greater than the maximum of this collection.)
|
||||||||||||
IDirectedCollectionValue<T> RangeFrom(T bot) |
Query this sorted collection for items greater than or equal to a supplied value.
|
||||||||||||
IDirectedCollectionValue<T> RangeFromTo(T bot, T top) |
Query this sorted collection for items between two supplied values.
|
||||||||||||
IDirectedCollectionValue<T> RangeTo(T top) |
Query this sorted collection for items less than a supplied value.
|
||||||||||||
IDirectedCollectionValue<T> RangeAll() |
Create a directed collection with the same items as this collection.
|
||||||||||||
bool Cut(System.IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid) |
Perform a search in the sorted collection for the ranges in which a
non-decreasing function from the item type to int is
negative, zero respectively positive. If the supplied cut function is
not non-decreasing, the result of this call is undefined.
|
||||||||||||
int CountFrom(T bot) |
Determine the number of items at or above a supplied threshold.
|
||||||||||||
int CountFromTo(T bot, T top) |
Determine the number of items between two supplied thresholds.
|
||||||||||||
int CountTo(T top) |
Determine the number of items below a supplied threshold.
|
||||||||||||
void RemoveRangeFrom(T low) |
Remove all items of this collection above or at a supplied threshold.
|
||||||||||||
void RemoveRangeFromTo(T low, T hi) |
Remove all items of this collection between two supplied thresholds.
|
||||||||||||
void RemoveRangeTo(T hi) |
Remove all items of this collection below a supplied threshold.
|
||||||||||||
void Dispose() |
If this tree is a snapshot, remove registration in base tree | ||||||||||||
P void Finalize() |
If this tree is a snapshot, remove registration in base tree | ||||||||||||
ISorted<T> Snapshot() |
Make a (read-only) snap shot of this collection.
|
||||||||||||
N void dump() |
Print the tree structure to the console stdout. | ||||||||||||
N void dump(string msg) |
Print the tree structure to the console stdout.
|
||||||||||||
N bool Check(string name) |
Checks red-black invariant. Dumps tree to console if bad
|
||||||||||||
bool Check() |
Checks red-black invariant. Dumps tree to console if bad
|
||||||||||||
N P int sequencedhashcode() |
Inherited from SequencedBase{T}: int sequencedhashcode() |
||||||||||||
N P bool sequencedequals(ISequenced<T> that) |
Inherited from SequencedBase{T}: bool sequencedequals(ISequenced<T> that) |
||||||||||||
N P void checkRange(int start, int count) |
Inherited from CollectionBase{T}: void checkRange(int start, int count) |
||||||||||||
N P int unsequencedhashcode() |
Inherited from CollectionBase{T}: int unsequencedhashcode() |
||||||||||||
N P bool unsequencedequals(ICollection<T> that) |
Inherited from CollectionBase{T}: bool unsequencedequals(ICollection<T> that) |
||||||||||||
P void modifycheck(int thestamp) |
Inherited from CollectionBase{T}: void modifycheck(int thestamp) |
||||||||||||
P void updatecheck() |
Inherited from CollectionBase{T}: void updatecheck() |
||||||||||||
void CopyTo(T[] a, int i) |
Inherited from CollectionValueBase{T}: void CopyTo(T[] a, int i) |
||||||||||||
T[] ToArray() |
Inherited from CollectionValueBase{T}: T[] ToArray() |
||||||||||||
void Apply(Applier<T> a) |
Inherited from CollectionValueBase{T}: void Apply(Applier<T> a) |
||||||||||||
bool Exists(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool Exists(Filter<T> filter) |
||||||||||||
bool All(Filter<T> filter) |
Inherited from CollectionValueBase{T}: bool All(Filter<T> filter) |
||||||||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||||||||
string ToString() |
Inherited from object: string ToString() |
||||||||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
TreeSet<T>.Enumerator
System.Collections.Generic.IEnumerator<T>
, System.IDisposable
object
T Current
TreeSet<T>.Enumerator(TreeSet<T> tree)
void Dispose()
, void Dispose(bool disposing)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool MoveNext()
, string ToString()
T Current |
Value: The current item of the enumerator.Undefined if enumerator is not valid (MoveNext hash been called returning true) |
TreeSet<T>.Enumerator(TreeSet<T> tree) |
Create a tree enumerator
|
bool MoveNext() |
Move enumerator to next item in tree, or the first item if
this is the first call to MoveNext.
Throws System.InvalidOperationException if underlying tree was modified.
|
||
void Dispose() |
Call Dispose(true) and then suppress finalization of this enumerator. | ||
P void Dispose(bool disposing) |
Remove the internal data (notably the stack array).
|
||
P void Finalize() |
Finalizer for enumeratir | ||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
TreeSet<T>.SnapEnumerator
System.Collections.Generic.IEnumerator<T>
, System.IDisposable
object
T Current
TreeSet<T>.SnapEnumerator(TreeSet<T> tree)
bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool MoveNext()
, string ToString()
T Current |
Value: The current value of the enumerator.Undefined if enumerator is not valid (MoveNext hash been called returning true) |
TreeSet<T>.SnapEnumerator(TreeSet<T> tree) |
Creta an enumerator for a snapshot of a node copy persistent red-black tree
collection
|
bool MoveNext() |
Move enumerator to next item in tree, or the first item if
this is the first call to MoveNext.
Throws System.InvalidOperationException if underlying tree was modified.
|
||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
TreeSet<T>.Range.Enumerator
System.Collections.Generic.IEnumerator<T>
, System.IDisposable
object
T Current
TreeSet<T>.Range.Enumerator(TreeSet<T>.Range range)
void Dispose()
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, bool MoveNext()
, string ToString()
T Current |
Value: The current value of the enumerator.Undefined if enumerator is not valid (MoveNext hash been called returning true) |
TreeSet<T>.Range.Enumerator(TreeSet<T>.Range range) |
|
bool MoveNext() |
Move enumerator to next item in tree, or the first item if
this is the first call to MoveNext.
Throws System.InvalidOperationException if underlying tree was modified.
|
||
void Dispose() |
|||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||
string ToString() |
Inherited from object: string ToString() |
||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||
P void Finalize() |
Inherited from object: void Finalize() |
KeyValuePairComparer<K,V>
IComparer<KeyValuePair<K,V>>
object
KeyValuePairComparer<K,V>(IComparer<K> c)
int Compare(KeyValuePair<K,V> a, KeyValuePair<K,V> b)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
KeyValuePairComparer<K,V>(IComparer<K> c) |
Create an entry comparer for a item comparer of the keys
|
int Compare(KeyValuePair<K,V> a, KeyValuePair<K,V> b) |
Compare two entries
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
KeyValuePairHasher<K,V>
IHasher<KeyValuePair<K,V>>
object
KeyValuePairHasher<K,V>()
, KeyValuePairHasher<K,V>(IHasher<K> c)
bool Equals(KeyValuePair<K,V> i1, KeyValuePair<K,V> i2)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode(KeyValuePair<K,V> item)
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
KeyValuePairHasher<K,V>() |
Create an entry hasher using the default hasher for keys | ||
KeyValuePairHasher<K,V>(IHasher<K> c) |
Create an entry hasher from a specified item hasher for the keys
|
int GetHashCode(KeyValuePair<K,V> item) |
Get the hash code of the entry
|
||||||
bool Equals(KeyValuePair<K,V> i1, KeyValuePair<K,V> i2) |
Test two entries for equality
|
||||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||||
string ToString() |
Inherited from object: string ToString() |
||||||
bool Equals(object obj) |
Inherited from object: bool Equals(object obj) |
||||||
int GetHashCode() |
Inherited from object: int GetHashCode() |
||||||
P void Finalize() |
Inherited from object: void Finalize() |
EnumerationDirection
System.IComparable
, System.IFormattable
, System.IConvertible
EnumerationDirection Backwards
, EnumerationDirection Forwards
, int value__
int CompareTo(object target)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, System.TypeCode GetTypeCode()
, object MemberwiseClone()
, string ToString()
, string ToString(string format, System.IFormatProvider provider)
, string ToString(System.IFormatProvider provider)
, string ToString(string format)
int value__ |
|
S EnumerationDirection Forwards |
Same direction |
S EnumerationDirection Backwards |
Opposite direction |
bool Equals(object obj) |
Inherited from System.Enum: bool Equals(object obj) |
int GetHashCode() |
Inherited from System.Enum: int GetHashCode() |
string ToString() |
Inherited from System.Enum: string ToString() |
string ToString(string format, System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(string format, System.IFormatProvider provider) |
int CompareTo(object target) |
Inherited from System.Enum: int CompareTo(object target) |
string ToString(System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(System.IFormatProvider provider) |
System.TypeCode GetTypeCode() |
Inherited from System.Enum: System.TypeCode GetTypeCode() |
N string ToString(string format) |
Inherited from System.Enum: string ToString(string format) |
N System.Type GetType() |
Inherited from object: System.Type GetType() |
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
P void Finalize() |
Inherited from object: void Finalize() |
SortedArray<T>.Feature
System.IComparable
, System.IFormattable
, System.IConvertible
SortedArray<T>.Feature Standard
, System.Int16 value__
int CompareTo(object target)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, System.TypeCode GetTypeCode()
, object MemberwiseClone()
, string ToString()
, string ToString(string format, System.IFormatProvider provider)
, string ToString(System.IFormatProvider provider)
, string ToString(string format)
System.Int16 value__ |
|
S SortedArray<T>.Feature Standard |
A debugging artifact. To be removed. |
bool Equals(object obj) |
Inherited from System.Enum: bool Equals(object obj) |
int GetHashCode() |
Inherited from System.Enum: int GetHashCode() |
string ToString() |
Inherited from System.Enum: string ToString() |
string ToString(string format, System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(string format, System.IFormatProvider provider) |
int CompareTo(object target) |
Inherited from System.Enum: int CompareTo(object target) |
string ToString(System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(System.IFormatProvider provider) |
System.TypeCode GetTypeCode() |
Inherited from System.Enum: System.TypeCode GetTypeCode() |
N string ToString(string format) |
Inherited from System.Enum: string ToString(string format) |
N System.Type GetType() |
Inherited from object: System.Type GetType() |
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
P void Finalize() |
Inherited from object: void Finalize() |
TreeBag<T>.Feature
System.IComparable
, System.IFormattable
, System.IConvertible
TreeBag<T>.Feature Dummy
, TreeBag<T>.Feature Heights
, TreeBag<T>.Feature NodeCopyPersistence
, TreeBag<T>.Feature Ranks
, TreeBag<T>.Feature Sizes
, TreeBag<T>.Feature Traceid
, System.Int16 value__
int CompareTo(object target)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, System.TypeCode GetTypeCode()
, object MemberwiseClone()
, string ToString()
, string ToString(string format, System.IFormatProvider provider)
, string ToString(System.IFormatProvider provider)
, string ToString(string format)
System.Int16 value__ |
|
S TreeBag<T>.Feature Dummy |
Nothing |
S TreeBag<T>.Feature NodeCopyPersistence |
Node copy persistence as explained in Tarjan1 |
S TreeBag<T>.Feature Sizes |
Maintain sub tree sizes |
S TreeBag<T>.Feature Heights |
Maintain precise node heights |
S TreeBag<T>.Feature Ranks |
Maintain node ranks (~ black height) |
S TreeBag<T>.Feature Traceid |
Maintain unique ids on tree nodes. |
bool Equals(object obj) |
Inherited from System.Enum: bool Equals(object obj) |
int GetHashCode() |
Inherited from System.Enum: int GetHashCode() |
string ToString() |
Inherited from System.Enum: string ToString() |
string ToString(string format, System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(string format, System.IFormatProvider provider) |
int CompareTo(object target) |
Inherited from System.Enum: int CompareTo(object target) |
string ToString(System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(System.IFormatProvider provider) |
System.TypeCode GetTypeCode() |
Inherited from System.Enum: System.TypeCode GetTypeCode() |
N string ToString(string format) |
Inherited from System.Enum: string ToString(string format) |
N System.Type GetType() |
Inherited from object: System.Type GetType() |
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
P void Finalize() |
Inherited from object: void Finalize() |
Speed
System.IComparable
, System.IFormattable
, System.IConvertible
Speed Constant
, Speed Linear
, Speed Log
, Speed PotentiallyInfinite
, System.Int16 value__
int CompareTo(object target)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, System.TypeCode GetTypeCode()
, object MemberwiseClone()
, string ToString()
, string ToString(string format, System.IFormatProvider provider)
, string ToString(System.IFormatProvider provider)
, string ToString(string format)
System.Int16 value__ |
|
S Speed PotentiallyInfinite |
Counting the collection with the Count property may not return
(for a synthetic and potentially infinite collection). |
S Speed Linear |
Lookup operations like Contains(T item) or the Count
property may take time O(n),
where n is the size of the collection. |
S Speed Log |
Lookup operations like Contains(T item) or the Count
property takes time O(log n),
where n is the size of the collection. |
S Speed Constant |
Lookup operations like Contains(T item) or the Count
property takes time O(1),
where n is the size of the collection. |
bool Equals(object obj) |
Inherited from System.Enum: bool Equals(object obj) |
int GetHashCode() |
Inherited from System.Enum: int GetHashCode() |
string ToString() |
Inherited from System.Enum: string ToString() |
string ToString(string format, System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(string format, System.IFormatProvider provider) |
int CompareTo(object target) |
Inherited from System.Enum: int CompareTo(object target) |
string ToString(System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(System.IFormatProvider provider) |
System.TypeCode GetTypeCode() |
Inherited from System.Enum: System.TypeCode GetTypeCode() |
N string ToString(string format) |
Inherited from System.Enum: string ToString(string format) |
N System.Type GetType() |
Inherited from object: System.Type GetType() |
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
P void Finalize() |
Inherited from object: void Finalize() |
HashSet<T>.Feature
System.IComparable
, System.IFormattable
, System.IConvertible
HashSet<T>.Feature Chaining
, HashSet<T>.Feature Dummy
, HashSet<T>.Feature InterHasher
, HashSet<T>.Feature LinearProbing
, HashSet<T>.Feature RandomInterHasher
, HashSet<T>.Feature RefTypeBucket
, HashSet<T>.Feature ShrinkTable
, System.Int16 value__
, HashSet<T>.Feature ValueTypeBucket
int CompareTo(object target)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, System.TypeCode GetTypeCode()
, object MemberwiseClone()
, string ToString()
, string ToString(string format, System.IFormatProvider provider)
, string ToString(System.IFormatProvider provider)
, string ToString(string format)
System.Int16 value__ |
|
S HashSet<T>.Feature Dummy |
Nothing |
S HashSet<T>.Feature RefTypeBucket |
Buckets are of reference type |
S HashSet<T>.Feature ValueTypeBucket |
Primary buckets are of value type |
S HashSet<T>.Feature LinearProbing |
Using linear probing to resolve index clashes |
S HashSet<T>.Feature ShrinkTable |
Shrink table when very sparsely filled |
S HashSet<T>.Feature Chaining |
Use chaining to resolve index clashes |
S HashSet<T>.Feature InterHasher |
Use hash function on item hash code |
S HashSet<T>.Feature RandomInterHasher |
Use a universal family of hash functions on item hash code |
bool Equals(object obj) |
Inherited from System.Enum: bool Equals(object obj) |
int GetHashCode() |
Inherited from System.Enum: int GetHashCode() |
string ToString() |
Inherited from System.Enum: string ToString() |
string ToString(string format, System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(string format, System.IFormatProvider provider) |
int CompareTo(object target) |
Inherited from System.Enum: int CompareTo(object target) |
string ToString(System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(System.IFormatProvider provider) |
System.TypeCode GetTypeCode() |
Inherited from System.Enum: System.TypeCode GetTypeCode() |
N string ToString(string format) |
Inherited from System.Enum: string ToString(string format) |
N System.Type GetType() |
Inherited from object: System.Type GetType() |
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
P void Finalize() |
Inherited from object: void Finalize() |
TreeSet<T>.Feature
System.IComparable
, System.IFormattable
, System.IConvertible
TreeSet<T>.Feature Dummy
, TreeSet<T>.Feature Heights
, TreeSet<T>.Feature NodeCopyPersistence
, TreeSet<T>.Feature Ranks
, TreeSet<T>.Feature Sizes
, TreeSet<T>.Feature Traceid
, System.Int16 value__
int CompareTo(object target)
, bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, System.TypeCode GetTypeCode()
, object MemberwiseClone()
, string ToString()
, string ToString(string format, System.IFormatProvider provider)
, string ToString(System.IFormatProvider provider)
, string ToString(string format)
System.Int16 value__ |
|
S TreeSet<T>.Feature Dummy |
Nothing |
S TreeSet<T>.Feature NodeCopyPersistence |
Node copy persistence as explained in Tarjan1 |
S TreeSet<T>.Feature Sizes |
Maintain sub tree sizes |
S TreeSet<T>.Feature Heights |
Maintain precise node heights |
S TreeSet<T>.Feature Ranks |
Maintain node ranks (~ black height) |
S TreeSet<T>.Feature Traceid |
Maintain unique ids on tree nodes. |
bool Equals(object obj) |
Inherited from System.Enum: bool Equals(object obj) |
int GetHashCode() |
Inherited from System.Enum: int GetHashCode() |
string ToString() |
Inherited from System.Enum: string ToString() |
string ToString(string format, System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(string format, System.IFormatProvider provider) |
int CompareTo(object target) |
Inherited from System.Enum: int CompareTo(object target) |
string ToString(System.IFormatProvider provider) |
Inherited from System.Enum: string ToString(System.IFormatProvider provider) |
System.TypeCode GetTypeCode() |
Inherited from System.Enum: System.TypeCode GetTypeCode() |
N string ToString(string format) |
Inherited from System.Enum: string ToString(string format) |
N System.Type GetType() |
Inherited from object: System.Type GetType() |
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
P void Finalize() |
Inherited from object: void Finalize() |
KeyValuePair<K,V>
K key
, V value
KeyValuePair<K,V>(K k, V v)
, KeyValuePair<K,V>(K k)
bool Equals(object obj)
, void Finalize()
, int GetHashCode()
, System.Type GetType()
, object MemberwiseClone()
, string ToString()
K key |
The key field of the entry |
V value |
The value field of the entry |
KeyValuePair<K,V>(K k, V v) |
Create an entry with specified key and value
|
||||
KeyValuePair<K,V>(K k) |
Create an entry with a specified key. The value is undefined.
|
string ToString() |
Pretty print an entry
|
||||
bool Equals(object obj) |
Check equality of entries
|
||||
int GetHashCode() |
Get the hash code of the key.
|
||||
N System.Type GetType() |
Inherited from object: System.Type GetType() |
||||
N P object MemberwiseClone() |
Inherited from object: object MemberwiseClone() |
||||
P void Finalize() |
Inherited from object: void Finalize() |
Applier<T>
Mapper<T,V>
Filter<T>