public sealed class <T> : MArray, IEnumerable<T>
A dynamic generic array combining the functionality of a List and a Dictionary.
public int
Num
The number of T in this MArray; the size.
Summary:
Initialises an MArray with the default settings.
Summary:
Initialises an MArray with an initial capacity.
Params:
InitialSize:
The number of elements this MArray will begin with.
public void
Summary:
Adds Item.
Params:
Item:
The unique element to add.
public void
Summary:
Adds a number of Items.
Params:
Items:
The list of elements to add.
public int
Summary:
Removes the most recent push of Item.
Remarks:
If you plan to Pull every element from the MArray, see PullAll(T).
Params:
Item:
The element to remove.
Returns:
The new size of this MArray, or kInvalid if Item doesn't exist.
public int
Summary:
Removes all occurrences of Item.
Params:
Item:
The item to remove.
Returns:
The new size of this MArray, or kInvalid if Item doesn't exist.
public int
Summary:
Conducts a single Pull operation on every T item.
Params:
Items:
The most recent push of each Item to pull.
Returns:
The new size of this MArray, or kInvalid if Item doesn't exist. Returns Num if Length of Items is 0.
public T
Summary:
Pulls an Item from an Index.
Params:
Index:
The Index to pull from.
Returns:
The pulled T from Index.
public MArray
Summary:
Pull from multiple indices.
Params:
Indices:
The index positions to remove.
Returns:
An MArray of the removed elements.
public static void
Summary:
Copies Num elements from an MArray to another MArray from Start.
Params:
Destination:
The MArray that will be copied *into*.
Source:
The MArray that will be copied *from*.
Start:
The index from Source to begin copying into Destination.
Num:
The number of elements to copy into Destination.
public T
Summary:
Any element.
Returns:
Any random element.
public AccessedData
Summary:
Accesses data specific to this Item in the MArray.
Params:
Item:
The Item to access its data.
Returns:
Accessed Data Occurrences and Positions, or AccessedData.None if this MArray does not have Item.
public int
Summary:
The index of the first occurrence of Item; index of Item's Earliest Push.
Params:
Item:
The Item to search for.
Returns:
Zero-indexed position, if found. Otherwise, kInvalid.
public int
Summary:
The index of the last occurrence of Item; index of Item's Latest Push.
Params:
Item:
The Item to search for.
Returns:
Zero-indexed position, if found. Otherwise, kInvalid.
public T
Returns:
The item at the front of the queue.
public T
Summary:
Pops the item at the front of the queue.
Returns:
The item that was at the front of the queue.
public T
Returns:
The item at the top of the stack.
public T
Summary:
Pops the item at the top of the stack.
Returns:
The item at the top of the stack.
public bool
Summary:
Whether or not Index is within range.
Params:
Index:
The Index to check for range.
Returns:
If this MArray is not empty Index is greater than or equal to zero and less than the number of elements.
public bool
Params:
Item:
Item to check for existence.
Returns:
Whether the HashCode of Item exists within the internal HashMap.
public void
Summary:
Clears this MArray.
public bool
Returns:
If this MArray is considered empty; Num == 0.
public T
Returns:
The mirror position of index over minimum zero, maximum Num.
public T
Returns:
The mirror position of index over Minimum to maximum Num.
public Reflected
Summary:
The incoming and reflected Item of this mirror from zero to maximum Num.
Returns:
Source and Reflected information.
public Reflected
Summary:
The incoming and reflected Item of this mirror from Minimum to maximum Num.
Returns:
Source and Reflected information.
public void
Summary:
Reflects over Minimum, Maximum with Index.
Returns:
Outs the incoming and reflected Item of this mirror of Minimum, maximum Num.
public void
Summary:
Sorts Items.
public void
Summary:
Sorts Items from Index for Count using Comparer.
public void
Summary:
Sorts Items with a Comparison
public void
Summary:
Sorts Items with an IComparer
public void
Summary:
Reverses Items.
public void
Summary:
Reverses Items from Index for Count.
public string
Summary:
Every Item in this MArray represented as a string with object.ToString().
Remarks:
Assumes that T has a readable ToString() defined.
Params:
bWithIndex:
Should the resulting string include the index of every item?
Separator:
The string that will separate each element.
Returns:
A string form of all T.
public T[]
Summary:
This MArray as T[].
Returns:
T[].
public List
Summary:
This MArray as List
Returns:
List
public T
Summary:
Square bracket accessor.
Params:
i:
The index to access T item.
Returns:
The Item at the specified index.
public static bool operator!
Summary:
If this MArray is null.
Params:
CheckIfNull:
The MArray to check whether it is uninitialised.
Returns:
True if CheckIfNull is null.
public static MArray<T> operator+
Summary:
Adds Right to the end of Left.
Params:
Left:
The MArray to append to.
Right:
The MArray to append to Left.
Returns:
A contiguous MArray from Left to Right.
public static MArray<T> operator&
Summary:
Left elements that exist in Right.
Params:
Left:
The MArray to check AND.
Right:
The MArray to compare to.
Returns:
An MArray of Left elements that also exist in Right.
public static MArray<T> operator^
Summary:
Left elements that do not exist in Right.
Params:
Left:
The MArray to check OR.
Right:
The MArray to compare to.
Returns:
An MArray of Left's elements that do not exist in Right.
public struct
The incoming and reflected Item of this mirror over the provided Minimum and Maximum Num.
public T
Source
In reflection.
public T
Reflection
Out reflection.
public class
The base class for an MArray.
kInvalid
Definition of an invalid position or illegal number associated with an MArray.
public static bool
Params:
Check:
The MArray to check for initialisation.
Returns:
True if Check is null.
public struct
Data of an Item in an MArray.
public static readonly AccessedData
None
No data available.
public int
Occurrences
The number of times an Item appears in an MArray.
public int[]
Positions
The index locations of this Item in an MArray.
The array order from left to right is Latest Push to Earliest Push.
public bool
Summary:
Data containing whether or not an accessed item has data associated with it.
Returns:
Whether or not an accessed item exists within an MArray{T}.