Curvy  8.3.0
SubArrayList< T > Struct Template Reference

Detailed Description

A class that simulates very minimal features of a List, but using a SubArray<T> instead of an System.Array as a storage

See also
SubArray<T>

Public Attributes

T[] Array => subArray.Array
 The System.Array used by the underlying SubArray<T> for storage More...
 

Properties

int Count [get]
 The number of elements occupied in the storage More...
 

Public Member Functions

void Add (T element)
 Adds a new element to the array More...
 
bool Equals (SubArrayList< T > other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
 SubArrayList (int initialCapacity, ArrayPool< T > typePool)
 Creates an instance More...
 
SubArray< T > ToSubArray ()
 Returns a SubArray<T> instance that will have Array as an array (not a copy of it), and Count as its SubArray<T>.Count More...
 

Static Public Member Functions

static bool operator!= (SubArrayList< T > a, SubArrayList< T > b)
 
static bool operator== (SubArrayList< T > a, SubArrayList< T > b)
 

Constructor & Destructor Documentation

SubArrayList ( int  initialCapacity,
ArrayPool< T >  typePool 
)

Creates an instance

Parameters
initialCapacityThe initial capacity of the underlying storage
typePoolA pool that will be used to, if needed, allocate a bigger array if elements

Member Function Documentation

void Add ( element)

Adds a new element to the array

bool Equals ( SubArrayList< T >  other)
override bool Equals ( object  obj)
override int GetHashCode ( )
static bool operator!= ( SubArrayList< T >  a,
SubArrayList< T >  b 
)
static
static bool operator== ( SubArrayList< T >  a,
SubArrayList< T >  b 
)
static
SubArray<T> ToSubArray ( )

Returns a SubArray<T> instance that will have Array as an array (not a copy of it), and Count as its SubArray<T>.Count

Returns

Member Data Documentation

T [] Array => subArray.Array

The System.Array used by the underlying SubArray<T> for storage

Property Documentation

int Count
get

The number of elements occupied in the storage


The documentation for this struct was generated from the following file: