Class GuardedSequenced<T>

A read-only wrapper for a sequenced collection This is mainly interesting as a base of other guard classes

Implements

IEnumerable<T>, System.Collections.IEnumerable, System.IFormattable, System.ICloneable, System.Collections.Generic.ICollection<T>, ICollection<T>, ICollectionValue<T>, IDirectedCollectionValue<T>, IDirectedEnumerable<T>, IExtensible<T>, ISequenced<T>, IShowable

Bases

object, GuardedEnumerable<T>, GuardedCollectionValue<T>, GuardedCollection<T>

Base of

GuardedIndexedSorted<T>, GuardedList<T>, GuardedSorted<T>

Event overview

CollectionChanged, Inherited from GuardedCollectionValue<T> ,
CollectionCleared, Inherited from GuardedCollectionValue<T> ,
ItemInserted, Inherited from GuardedCollectionValue<T> ,
ItemRemovedAt, Inherited from GuardedCollectionValue<T> ,
ItemsAdded, Inherited from GuardedCollectionValue<T> ,
ItemsRemoved, Inherited from GuardedCollectionValue<T>

Property overview

ActiveEvents, Inherited from GuardedCollectionValue<T> ,
AllowsDuplicates, Inherited from GuardedCollection<T> ,
ContainsSpeed, Inherited from GuardedCollection<T> ,
Count, Inherited from GuardedCollectionValue<T> ,
CountSpeed, Inherited from GuardedCollectionValue<T> ,
Direction ,
DuplicatesByCounting, Inherited from GuardedCollection<T> ,
EqualityComparer, Inherited from GuardedCollection<T> ,
IsEmpty, Inherited from GuardedCollection<T> ,
IsReadOnly, Inherited from GuardedCollection<T> ,
ListenableEvents, Inherited from GuardedCollectionValue<T>

Constructor overview

GuardedSequenced<T>(ISequenced<T> sorted)

Method overview

Add(T item), Inherited from GuardedCollection<T> ,
AddAll<U>(IEnumerable<U> items), Inherited from GuardedCollection<T> ,
All(Fun<T,bool> filter), Inherited from GuardedCollectionValue<T> ,
Apply(Act<T> a), Inherited from GuardedCollectionValue<T> ,
Backwards() ,
Check(), Inherited from GuardedCollection<T> ,
Choose(), Inherited from GuardedCollectionValue<T> ,
Clear(), Inherited from GuardedCollection<T> ,
Clone() ,
Contains(T item), Inherited from GuardedCollection<T> ,
ContainsAll<U>(IEnumerable<U> items), Inherited from GuardedCollection<T> ,
ContainsCount(T item), Inherited from GuardedCollection<T> ,
CopyTo(T[] a, int i), Inherited from GuardedCollectionValue<T> ,
Equals(object obj), Inherited from object ,
Exists(Fun<T,bool> filter), Inherited from GuardedCollectionValue<T> ,
Filter(Fun<T,bool> filter), Inherited from GuardedCollectionValue<T> ,
Finalize(), Inherited from object ,
Find(ref T item), Inherited from GuardedCollection<T> ,
Find(Fun<T,bool> filter, out T item), Inherited from GuardedCollectionValue<T> ,
FindIndex(Fun<T,bool> predicate) ,
FindLast(Fun<T,bool> predicate, out T item) ,
FindLastIndex(Fun<T,bool> predicate) ,
FindOrAdd(ref T item), Inherited from GuardedCollection<T> ,
GetEnumerator(), Inherited from GuardedEnumerable<T> ,
GetHashCode(), Inherited from object ,
GetSequencedHashCode() ,
GetType(), Inherited from object ,
GetUnsequencedHashCode(), Inherited from GuardedCollection<T> ,
ItemMultiplicities(), Inherited from GuardedCollection<T> ,
MemberwiseClone(), Inherited from object ,
Remove(T item), Inherited from GuardedCollection<T> ,
Remove(T item, out T removeditem), Inherited from GuardedCollection<T> ,
RemoveAll<U>(IEnumerable<U> items), Inherited from GuardedCollection<T> ,
RemoveAllCopies(T item), Inherited from GuardedCollection<T> ,
RetainAll<U>(IEnumerable<U> items), Inherited from GuardedCollection<T> ,
SequencedEquals(ISequenced<T> that) ,
Show(System.Text.StringBuilder stringbuilder, ref int rest, System.IFormatProvider formatProvider), Inherited from GuardedCollectionValue<T> ,
ToArray(), Inherited from GuardedCollectionValue<T> ,
ToString(string format, System.IFormatProvider formatProvider), Inherited from GuardedCollectionValue<T> ,
ToString(), Inherited from object ,
UniqueItems(), Inherited from GuardedCollection<T> ,
UnsequencedEquals(ICollection<T> that), Inherited from GuardedCollection<T> ,
Update(T item), Inherited from GuardedCollection<T> ,
Update(T item, out T olditem), Inherited from GuardedCollection<T> ,
UpdateOrAdd(T item), Inherited from GuardedCollection<T> ,
UpdateOrAdd(T item, out T olditem), Inherited from GuardedCollection<T>

Property details

F EnumerationDirection DirectionAccess: Read-Only

Value:The enumeration direction relative to the original collection.

Forwards if same, else Backwards

Constructor details

GuardedSequenced<T>(ISequenced<T> sorted) Wrap a sequenced collection in a read-only wrapper
Parameters:
sorted:

Method details

IDirectedCollectionValue<T> Backwards() Get a collection that enumerates the wrapped collection in the opposite direction
Returns:The mirrored collection
object Clone()
Returns:
F int FindIndex(Fun<T,bool> predicate) Check if there exists an item that satisfies a specific predicate in this collection and return the index of the first one.
Returns:the index, if found, a negative value else
Parameters:
predicate:A delegate (Fun<A1,R> with R == bool) defining the predicate
bool FindLast(Fun<T,bool> predicate, out T item)
Returns:
Parameters:
predicate:
item:
F int FindLastIndex(Fun<T,bool> predicate) Check if there exists an item that satisfies a specific predicate in this collection and return the index of the last one.
Returns:the index, if found, a negative value else
Parameters:
predicate:A delegate (Fun<A1,R> with R == bool) defining the predicate
F int GetSequencedHashCode()
Returns:
F bool SequencedEquals(ISequenced<T> that)
Returns:
Parameters:
that: