Inherits System::Object, and System::Collections::Generic::IList< T >.
Classes | |
class | Enumerator |
Public Types | |
using | ValueType = T |
Alias for the type of the elements of the array. More... | |
using | UnderlyingType = typename System::Details::SelectType< T >::type |
Alias for the type used to represent each element of the array. More... | |
typedef SharedPtr< Collections::Generic::IEnumerable< T > > | EnumerablePtr |
An alias for shared pointer type pointing to IEnumerable object containing elements of type T . More... | |
typedef SharedPtr< Collections::Generic::IEnumerator< T > > | EnumeratorPtr |
An alias for shared pointer type pointing to IEnumerator object containing elements of type T . More... | |
typedef vector_t::iterator | iterator |
Iterator type. More... | |
typedef vector_t::const_iterator | const_iterator |
Const iterator type. More... | |
typedef vector_t::reverse_iterator | reverse_iterator |
Reverse iterator type. More... | |
typedef vector_t::const_reverse_iterator | const_reverse_iterator |
Const reverse iterator type. More... | |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
![]() | |
typedef ICollection< T > | BaseType |
Base type. More... | |
typedef IList< T > | ThisType |
This type. More... | |
typedef T | ValueType |
Value type. More... | |
![]() | |
typedef T | ValueType |
Value type name. More... | |
typedef ICollection< T > | ThisType |
Collection type name. More... | |
![]() | |
typedef IEnumerator< T > | IEnumeratorType |
Enumerator type. More... | |
using | ValueType = T |
using | iterator = System::Details::VirtualizedIterator< T > |
Iterator type. More... | |
using | const_iterator = System::Details::VirtualizedConstIterator< T > |
Const iterator type. More... | |
using | virtualized_iterator = System::Details::VirtualizedIteratorBase< T > |
Inner iterator base type. More... | |
using | virtualized_iterator_element = T |
Inner iterator element type. More... | |
Public Member Functions | |
Array () | |
Constructs an empty array. More... | |
Array (int count, const T &init=T()) | |
template<typename ValueType > | |
Array (typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< ValueType >::value &&std::is_convertible< ValueType, T >::value, int >::type count, ValueType init) | |
Array (int count, const T inits[]) | |
Array (vector_t &&value) | |
Array (const vector_t &assgn) | |
template<typename Q , typename = typename std::enable_if<std::is_same<Q, T>::value && !std::is_same<std::vector<Q>, vector_t>::value, std::vector<Q>>::type> | |
Array (const std::vector< Q > &value) | |
template<typename Q , typename = typename std::enable_if<std::is_same<Q, T>::value && !std::is_same<std::vector<Q>, vector_t>::value, std::vector<Q>>::type> | |
Array (std::vector< Q > &&value) | |
Array (std::initializer_list< UnderlyingType > init) | |
template<std::size_t InitArraySize> | |
Array (const std::array< UnderlyingType, InitArraySize > &init) | |
Array (std::initializer_list< bool > init, int=0) | |
virtual EnumeratorPtr | GetEnumerator () override |
virtual int | get_Count () const override |
Returns the size of the array. More... | |
virtual void | Add (const T &) override |
virtual void | Clear () override |
void | SetTemplateWeakPtr (uint32_t argument) override |
virtual bool | Contains (const T &item) const override |
virtual bool | Remove (const T &) override |
virtual bool | get_IsReadOnly () const override |
virtual void | CopyTo (ArrayPtr< T > arr, int arrayIndex) override |
virtual int | IndexOf (const T &item) const override |
virtual void | Insert (int, const T &) override |
virtual void | RemoveAt (int) override |
virtual T | idx_get (int index) const override |
virtual void | idx_set (int index, T value) override |
ArrayPtr< T > | Init (const T inits[]) |
void | Initialize () |
Fills the array with the default constructed objects of type T . More... | |
UnderlyingType & | operator[] (int index) |
UnderlyingType const & | operator[] (int index) const |
ArrayPtr< T > | Clone () |
int | GetLength (int dimension) |
int64_t | GetLongLength (int dimension) |
int | GetLowerBound (int dimension) const |
int | GetUpperBound (int dimension) |
int32_t | get_Rank () const |
NOT IMPLEMENTED. More... | |
int32_t | get_Length () const |
int64_t | get_LongLength () const |
size_t | GetSizeTLength () const |
int | Count () const |
template<typename DstType > | |
void | CopyTo (const ArrayPtr< DstType > &dstArray, int64_t dstIndex) const |
template<typename DstType > | |
void | CopyTo (const System::Details::ArrayView< DstType > &dstArray, int64_t dstIndex) const |
template<typename DstType > | |
void | CopyTo (const ArrayPtr< DstType > &dstArray, int64_t srcIndex, int64_t dstIndex, int64_t count) const |
template<typename DstType > | |
void | CopyTo (const System::Details::ArrayView< DstType > &dstArray, int64_t srcIndex, int64_t dstIndex, int64_t count) const |
void | SetValue (const T &value, int index) |
vector_t & | data () |
Returns a reference to the internal data structure used to store the array elements. More... | |
const vector_t & | data () const |
Returns a constant reference to the internal data structure used to store the array elements. More... | |
vector_t::pointer | data_ptr () |
Returns a raw pointer to the beginning of the memory buffer where the array elements are stored. More... | |
const UnderlyingType * | data_ptr () const |
Returns a constant raw pointer to the beginning of the memory buffer where the array elements are stored. More... | |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cend () const noexcept |
reverse_iterator | rbegin () noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | crbegin () const noexcept |
reverse_iterator | rend () noexcept |
const_reverse_iterator | rend () const noexcept |
const_reverse_iterator | crend () const noexcept |
UnderlyingType | Min () const |
UnderlyingType | Max () const |
System::Details::VirtualizedIteratorBase< T > * | virtualizeBeginIterator () override |
System::Details::VirtualizedIteratorBase< T > * | virtualizeEndIterator () override |
System::Details::VirtualizedIteratorBase< T > * | virtualizeBeginConstIterator () const override |
System::Details::VirtualizedIteratorBase< T > * | virtualizeEndConstIterator () const override |
![]() | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
![]() | |
bool | get_IsFixedSize () |
![]() | |
ICollection & | operator= (ICollection &&) noexcept |
ICollection & | operator= (const ICollection &) |
ICollection () | |
Default constructor. More... | |
ICollection (const ICollection &) | |
Copy constructor. More... | |
ICollection (ICollection &&) noexcept | |
Move constructor. More... | |
virtual | ~ICollection () |
Destructor. More... | |
SharedPtr< Object > | get_SyncRoot () const |
Gets the object the collection is being synchronized through. More... | |
![]() | |
T | LINQ_ElementAt (int index) |
T | LINQ_First () |
T | LINQ_First (const Func< T, bool > &predicate) |
T | LINQ_FirstOrDefault () |
T | LINQ_FirstOrDefault (std::function< bool(T)> predicate) |
T | LINQ_Last () |
T | LINQ_LastOrDefault () |
SharedPtr< List< T > > | LINQ_ToList () |
int | LINQ_Count () |
int | LINQ_Count (const Func< T, bool > &predicate) |
System::ArrayPtr< T > | LINQ_ToArray () |
bool | LINQ_All (std::function< bool(T)> predicate) |
bool | LINQ_Any () |
bool | LINQ_Any (std::function< bool(T)> predicate) |
SharedPtr< IEnumerable< T > > | LINQ_Where (std::function< bool(T)> predicate) |
bool | LINQ_Contains (T value) |
template<typename ResultType > | |
SharedPtr< IEnumerable< ResultType > > | LINQ_Cast () |
template<typename Key > | |
SharedPtr< IEnumerable< T > > | LINQ_OrderBy (const Func< T, Key > &keySelector) |
template<typename Key > | |
SharedPtr< IEnumerable< T > > | LINQ_OrderByDescending (const Func< T, Key > &keySelector) |
template<typename ResultType > | |
SharedPtr< IEnumerable< ResultType > > | LINQ_OfType () |
template<typename ResultType > | |
SharedPtr< IEnumerable< ResultType > > | LINQ_Select (const Func< T, ResultType > &selector) |
template<typename ResultType > | |
SharedPtr< IEnumerable< ResultType > > | LINQ_Select (const Func< T, int32_t, ResultType > &selector) |
SharedPtr< IEnumerable< T > > | LINQ_Concat (SharedPtr< IEnumerable< T >> sequence) |
template<typename Key > | |
System::SharedPtr< IEnumerable< System::SharedPtr< System::Linq::IGrouping< Key, T > > > > | LINQ_GroupBy (System::Func< T, Key > keyPredicate) |
template<typename ResultType > | |
SharedPtr< IEnumerable< ResultType > > | LINQ_SelectMany (const Func< T, SharedPtr< IEnumerable< ResultType >>> &selector) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
template<typename Result > | |
SharedPtr< IEnumerable< Result > > | LINQ_Cast () |
template<typename Result > | |
SharedPtr< IEnumerable< Result > > | LINQ_OfType () |
template<typename Result > | |
SharedPtr< IEnumerable< Result > > | LINQ_Select (const Func< Source, Result > &selector) |
template<typename Result > | |
SharedPtr< IEnumerable< Result > > | LINQ_Select (const Func< Source, int32_t, Result > &selector) |
template<typename Key > | |
SharedPtr< IEnumerable< Source > > | LINQ_OrderBy (const Func< Source, Key > &keySelector) |
template<typename Key > | |
SharedPtr< IEnumerable< Source > > | LINQ_OrderByDescending (const Func< Source, Key > &keySelector) |
template<typename Key > | |
SharedPtr< IEnumerable< SharedPtr< System::Linq::IGrouping< Key, Source > > > > | LINQ_GroupBy (System::Func< Source, Key > keyPredicate) |
template<typename Result > | |
SharedPtr< IEnumerable< Result > > | LINQ_SelectMany (const Func< Source, SharedPtr< IEnumerable< Result >>> &selector) |
Static Public Member Functions | |
static int | BinarySearch (System::ArrayPtr< T > arr, const T &item) |
template<typename Y , typename Z > | |
static int | BinarySearch (System::ArrayPtr< T > arr, const Y &item, const SharedPtr< Collections::Generic::IComparer< Z >> &comparer) |
template<typename InputType , typename OutputType > | |
static ArrayPtr< OutputType > | ConvertAll (ArrayPtr< InputType > input_array, Converter< InputType, OutputType > converter) |
template<typename InputType , typename OutputType > | |
static ArrayPtr< OutputType > | ConvertAll (ArrayPtr< InputType > input_array, std::function< OutputType(InputType)> converter) |
static int | FindIndex (System::ArrayPtr< T > arr, System::Predicate< T > match) |
static T | Find (System::ArrayPtr< T > arr, System::Predicate< T > match) |
static System::ArrayPtr< T > | FindAll (System::ArrayPtr< T > arr, System::Predicate< T > match) |
static bool | TrueForAll (System::ArrayPtr< T > arr, System::Predicate< T > match) |
static void | ForEach (const ArrayPtr< T > &arr, System::Action< T > action) |
template<typename ArrayType , typename ValueType > | |
static int | IndexOf (const ArrayPtr< ArrayType > &arr, const ValueType &value) |
template<typename ArrayType , typename ValueType > | |
static int | IndexOf (const ArrayPtr< ArrayType > &arr, const ValueType &value, int startIndex) |
template<typename ArrayType , typename ValueType > | |
static int | IndexOf (const ArrayPtr< ArrayType > &arr, const ValueType &value, int startIndex, int count) |
template<typename ArrayType , typename ValueType > | |
static int | LastIndexOf (const ArrayPtr< ArrayType > &arr, const ValueType &value, int startIndex, int count) |
template<typename ArrayType , typename ValueType > | |
static int | LastIndexOf (const ArrayPtr< ArrayType > &items, const ValueType &value, int startIndex) |
template<typename ArrayType , typename ValueType > | |
static int | LastIndexOf (const ArrayPtr< ArrayType > &items, const ValueType &value) |
template<typename Type > | |
static void | Clear (const ArrayPtr< Type > &arr, int startIndex, int count) |
template<typename SrcType , typename DstType > | |
static void | Copy (const ArrayPtr< SrcType > &srcArray, const ArrayPtr< DstType > &dstArray, int64_t count) |
template<typename SrcType , typename DstType > | |
static void | Copy (System::Details::ArrayView< SrcType > srcArray, const ArrayPtr< DstType > &dstArray, int64_t count) |
template<typename SrcType , typename DstType > | |
static void | Copy (const ArrayPtr< SrcType > &srcArray, System::Details::ArrayView< DstType > dstArray, int64_t count) |
template<typename SrcType , typename DstType > | |
static void | Copy (System::Details::ArrayView< SrcType > srcArray, System::Details::ArrayView< DstType > dstArray, int64_t count) |
template<typename SrcType , std::size_t N, typename DstType > | |
static void | Copy (System::Details::StackArray< SrcType, N > &srcArray, const ArrayPtr< DstType > &dstArray, int64_t count) |
template<typename SrcType , typename DstType , std::size_t N> | |
static void | Copy (const ArrayPtr< SrcType > &srcArray, System::Details::StackArray< DstType, N > &dstArray, int64_t count) |
template<typename SrcType , std::size_t NS, typename DstType , std::size_t ND> | |
static void | Copy (System::Details::StackArray< SrcType, NS > &srcArray, System::Details::StackArray< DstType, ND > &dstArray, int64_t count) |
template<typename SrcType , typename DstType > | |
static void | Copy (const ArrayPtr< SrcType > &srcArray, int64_t srcIndex, const ArrayPtr< DstType > &dstArray, int64_t dstIndex, int64_t count) |
template<typename SrcType , typename DstType > | |
static void | Copy (System::Details::ArrayView< SrcType > srcArray, int64_t srcIndex, const ArrayPtr< DstType > &dstArray, int64_t dstIndex, int64_t count) |
template<typename SrcType , typename DstType > | |
static void | Copy (const ArrayPtr< SrcType > &srcArray, int64_t srcIndex, System::Details::ArrayView< DstType > dstArray, int64_t dstIndex, int64_t count) |
template<typename SrcType , typename DstType > | |
static void | Copy (System::Details::ArrayView< SrcType > srcArray, int64_t srcIndex, System::Details::ArrayView< DstType > dstArray, int64_t dstIndex, int64_t count) |
template<typename SrcType , std::size_t N, typename DstType > | |
static void | Copy (System::Details::StackArray< SrcType, N > &srcArray, int64_t srcIndex, const ArrayPtr< DstType > &dstArray, int64_t dstIndex, int64_t count) |
template<typename SrcType , typename DstType , std::size_t N> | |
static void | Copy (const ArrayPtr< SrcType > &srcArray, int64_t srcIndex, System::Details::StackArray< DstType, N > &dstArray, int64_t dstIndex, int64_t count) |
template<typename SrcType , std::size_t NS, typename DstType , std::size_t ND> | |
static void | Copy (System::Details::StackArray< SrcType, NS > &srcArray, int64_t srcIndex, System::Details::StackArray< DstType, ND > &dstArray, int64_t dstIndex, int64_t count) |
template<typename SrcType , typename DstType , std::size_t ND> | |
static void | Copy (System::Details::ArrayView< SrcType > &srcArray, int64_t srcIndex, System::Details::StackArray< DstType, ND > &dstArray, int64_t dstIndex, int64_t count) |
template<typename Type > | |
static void | Sort (const ArrayPtr< Type > &arr) |
template<typename Type > | |
static void | Sort (const ArrayPtr< Type > &arr, int startIndex, int count) |
template<typename Type > | |
static void | Sort (const ArrayPtr< Type > &arr, const SharedPtr< System::Collections::Generic::IComparer< T >> &comparator) |
template<typename Type , typename Y > | |
static void | Sort (const ArrayPtr< Type > &arr, const SharedPtr< System::Collections::Generic::IComparer< Y >> &comparator) |
template<typename TKey , typename TValue > | |
static void | Sort (const ArrayPtr< TKey > &keys, const ArrayPtr< TValue > &items) |
template<typename TKey , typename TValue > | |
static void | Sort (const ArrayPtr< TKey > &keys, const ArrayPtr< TValue > &items, int index, int length) |
template<typename Type > | |
static void | Reverse (const ArrayPtr< Type > &arr) |
template<typename Type > | |
static void | Reverse (const ArrayPtr< Type > &arr, int startIndex, int count) |
template<typename Type > | |
static void | Resize (ArrayPtr< Type > &arr, int new_size) |
static bool | Exists (ArrayPtr< T > arr, std::function< bool(T)> match) |
![]() | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Protected Types | |
typedef System::Details::CollectionHelpers::ContainerPointerMode< UnderlyingType > | pointer_mode_t |
Type to keep information on whether to treat array elements as shared or weak pointers, if applicable. More... | |
typedef std::vector< UnderlyingType, typename pointer_mode_t::allocator_type > | vector_t |
An alias for the type used to store the array's elements. More... | |
Protected Member Functions | |
~Array () override | |
Destructor. More... | |
![]() | |
~IEnumerable () override | |
Destructor. More... | |
virtualized_iterator * | GetEnumeratorAsVirtualizedIterator () |
virtualized_iterator * | GetEnumeratorAsVirtualizedIterator () const |
Protected Attributes | |
pointer_mode_t | m_pointer_mode |
Information on whether to treat array elements as shared or weak pointers, if applicable. More... | |
vector_t | m_data |
The storage for array's elements. More... | |
Class that represents an array data structure. Objects of this class should only be allocated using System::MakeArray() and System::MakeObject() functions. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
T | Type of elements of an array |
typedef vector_t::const_iterator System::Array< T >::const_iterator |
Const iterator type.
typedef vector_t::const_reverse_iterator System::Array< T >::const_reverse_iterator |
Const reverse iterator type.
typedef SharedPtr<Collections::Generic::IEnumerable<T> > System::Array< T >::EnumerablePtr |
An alias for shared pointer type pointing to IEnumerable object containing elements of type T
.
typedef SharedPtr<Collections::Generic::IEnumerator<T> > System::Array< T >::EnumeratorPtr |
An alias for shared pointer type pointing to IEnumerator object containing elements of type T
.
typedef vector_t::iterator System::Array< T >::iterator |
Iterator type.
|
protected |
Type to keep information on whether to treat array elements as shared or weak pointers, if applicable.
typedef vector_t::reverse_iterator System::Array< T >::reverse_iterator |
Reverse iterator type.
using System::Array< T >::UnderlyingType = typename System::Details::SelectType<T>::type |
Alias for the type used to represent each element of the array.
using System::Array< T >::ValueType = T |
Alias for the type of the elements of the array.
|
protected |
An alias for the type used to store the array's elements.
|
inline |
Constructs an empty array.
|
inline |
Filling constructor.
count | Initial size of the array |
init | The initial value used to fill the array with |
|
inline |
Filling constructor.
count | Initial size of the array |
init | The initial value used to fill the array with |
ValueType | Type of initial value |
|
inline |
Filling constructor.
count | Initial size of the array |
inits | Values to fill the array with |
|
inline |
Move constructor.
value | std::vector, elements of which are acquired by the array |
|
inline |
Copy constructor.
assgn | std::vector to copy values from |
|
inline |
Constructs an Array object and fills it with values copied from an std::vector object whose values' type is the same as T
but different from UnderlyingType
value | std::vector to copy the values from |
Q | The type of the elements of the std::vector object to copy the elements from |
|
inline |
Constructs an Array object and fills it with values moved from an std::vector object whose values' type is the same as T
but different from UnderlyingType
value | std::vector to copy the values from |
Q | The type of the elements of the std::vector object to move the elements from |
|
inline |
Constructs an Array object and fills it with values from the specified initializer list containing elements of UnderlyingType
type.
init | Initializer list containing elements to fill the array with |
|
inline |
|
inline |
Constructs an Array object and fills it with values from the specified initializer list containing elements of bool type.
init | Initializer list containing elements to fill the array with |
|
inlineoverrideprotected |
Destructor.
|
inlineoverridevirtual |
Not supported because the array represented by the current object is read-only.
NotSupportedException | always |
Implements System::Collections::Generic::ICollection< T >.
|
inlinenoexcept |
Returns an iterator to the first element of the container. If the container is empty, the returned iterator will be equal to end().
|
inlinenoexcept |
Returns an iterator to the first element of the const-qualified container. If the container is empty, the returned iterator will be equal to end().
|
inlinestatic |
Performs binary search in the sorted array.
arr | Sorted array to perform search in |
item | An item to search for |
|
inlinestatic |
NOT IMPLEMENTED.
NotImplementedException | Always |
|
inlinenoexcept |
Returns an iterator to the first const-qualified element of the container. If the container is empty, the returned iterator will be equal to cend().
|
inlinenoexcept |
Returns an iterator to the element following the last element of the container. This element acts as a placeholder; attempting to access it results in undefined behavior.
|
inlineoverridevirtual |
Not supported because the array represented by the current object is read-only.
NotSupportedException | always |
Implements System::Collections::Generic::ICollection< T >.
|
inlinestatic |
Replaces count
values starting at the startIndex
index in the specified array with default values.
arr | Target array |
startIndex | Index at which to start replacing the items |
count | The number of items to replace |
Type | Type of elements in the target array |
|
inline |
Clones the array.
|
inlineoverridevirtual |
Determines if the specified item is in the array.
item | Item to look for in the array |
Implements System::Collections::Generic::ICollection< T >.
|
inlinestatic |
Constructs a new Array object and fills it with elements of the specified array converted to OutputType
type using the specified converter delegate.
input_array | An Array object |
converter | A Converter object used to convert each element of the input array to equivalent values of OutputType type |
OutputType
type equivalent to the values of input_array
InputType | The type of elements of input array |
OutputType | The type of elements of the resulting array |
|
inlinestatic |
Constructs a new Array object and fills it with elements of the specified array converted to OutputType
type using the specified converter function object.
input_array | An Array object |
converter | A function object used to convert each element of the input array to equivalent values of OutputType type |
OutputType
type equivalent to the values of input_array
InputType | The type of elements of input array |
OutputType | The type of elements of the resulting array |
|
inlinestatic |
Copies the specified number of elements from the source array to the destination array.
srcArray | Source array |
dstArray | Destination array |
count | The number of elements to copy |
|
inlinestatic |
Copies the specified number of elements from the source array view to the destination array.
srcArray | Source array view |
dstArray | Destination array |
count | The number of elements to copy |
|
inlinestatic |
Copies the specified number of elements from the source array to the destination array view.
srcArray | Source array |
dstArray | Destination array view |
count | The number of elements to copy |
|
inlinestatic |
Copies the specified number of elements from the source array view to the destination array view.
srcArray | Source array view |
dstArray | Destination array view |
count | The number of elements to copy |
|
inlinestatic |
Copies the specified number of elements from the source array on stack to the destination array.
srcArray | Source array on stack |
dstArray | Destination array |
count | The number of elements to copy |
|
inlinestatic |
Copies the specified number of elements from the source array to the destination array on stack.
srcArray | Source array |
dstArray | Destination array on stack |
count | The number of elements to copy |
|
inlinestatic |
Copies the specified number of elements from the source array on stack to the destination array on stack.
srcArray | Source array on stack |
dstArray | Destination array on stack |
count | The number of elements to copy |
|
inlinestatic |
Copies a specified number of elements from the source array starting at the specified index to the specified position in destination array.
srcArray | Source array |
srcIndex | Index in the source array designating the beginning of the range of items to copy |
dstArray | Destination array |
dstIndex | Index in destination array to start inserting copied items at |
count | The number of elements to copy |
SrcType | Type of elements in source array |
DstType | Type of elements in destination array |
|
inlinestatic |
Copies a specified number of elements from the source array view starting at the specified index to the specified position in destination array.
srcArray | Source array view |
srcIndex | Index in the source array view designating the beginning of the range of items to copy |
dstArray | Destination array |
dstIndex | Index in destination array to start inserting copied items at |
count | The number of elements to copy |
SrcType | Type of elements in source array view |
DstType | Type of elements in destination array |
|
inlinestatic |
Copies a specified number of elements from the source array starting at the specified index to the specified position in destination array view.
srcArray | Source array |
srcIndex | Index in the source array designating the beginning of the range of items to copy |
dstArray | Destination array view |
dstIndex | Index in destination array view to start inserting copied items at |
count | The number of elements to copy |
SrcType | Type of elements in source array |
DstType | Type of elements in destination array view |
|
inlinestatic |
Copies a specified number of elements from the source array view starting at the specified index to the specified position in destination array view.
srcArray | Source array view |
srcIndex | Index in the source array view designating the beginning of the range of items to copy |
dstArray | Destination array view |
dstIndex | Index in destination array view to start inserting copied items at |
count | The number of elements to copy |
SrcType | Type of elements in source array view |
DstType | Type of elements in destination array view |
|
inlinestatic |
Copies a specified number of elements from the source array on stack starting at the specified index to the specified position in destination array.
srcArray | Source array on stack |
srcIndex | Index in the source array on stack designating the beginning of the range of items to copy |
dstArray | Destination array |
dstIndex | Index in destination array to start inserting copied items at |
count | The number of elements to copy |
SrcType | Type of elements in source array on stack |
DstType | Type of elements in destination array |
|
inlinestatic |
Copies a specified number of elements from the source array starting at the specified index to the specified position in destination array on stack.
srcArray | Source array |
srcIndex | Index in the source array designating the beginning of the range of items to copy |
dstArray | Destination array on stack |
dstIndex | Index in destination array on stack to start inserting copied items at |
count | The number of elements to copy |
SrcType | Type of elements in source array |
DstType | Type of elements in destination array on stack |
|
inlinestatic |
Copies a specified number of elements from the source array on stack starting at the specified index to the specified position in destination array on stack.
srcArray | Source array on stack |
srcIndex | Index in the source array on stack designating the beginning of the range of items to copy |
dstArray | Destination array on stack |
dstIndex | Index in destination array on stack to start inserting copied items at |
count | The number of elements to copy |
SrcType | Type of elements in source array on stack |
DstType | Type of elements in destination array on stack |
|
inlinestatic |
Copies a specified number of elements from the source array view starting at the specified index to the specified position in destination array on stack.
srcArray | Source array view |
srcIndex | Index in the source array view designating the beginning of the range of items to copy |
dstArray | Destination array on stack |
dstIndex | Index in destination array on stack to start inserting copied items at |
count | The number of elements to copy |
SrcType | Type of elements in source array on stack |
DstType | Type of elements in destination array on stack |
|
inlineoverridevirtual |
Copies all elements of the current array to the specified destination array. Elements are inserted into destination array starting at index specified by arrayIndex argument.
arr | Destination array |
arrayIndex | Index in destination array to start inserting copied items at |
Implements System::Collections::Generic::ICollection< T >.
|
inline |
Copies all elements of the current array to the specified destination array. Elements are inserted into the destination array starting at index specified by dstIndex argument.
dstArray | Destination array |
dstIndex | Index in destination array to start inserting copied items at |
DstType | Type of elements in destination array |
|
inline |
Copies all elements of the current array to the specified destination array view. Elements are inserted into the destination array view starting at index specified by dstIndex argument.
dstArray | Destination array view |
dstIndex | Index in destination array view to start inserting copied items at |
DstType | Type of elements in destination array view |
|
inline |
Copies a specified number of elements from the current array starting at specified position to specified destination array. Elements are inserted into the destination array starting at index specified by dstIndex argument.
dstArray | Destination array |
srcIndex | Index in source array to start copying items at |
dstIndex | Index in destination array to start inserting copied items at |
count | Number of elements to copy |
DstType | Type of elements in destination array |
|
inline |
Copies a specified number of elements from the current array starting at specified position to specified destination array view. Elements are inserted into the destination array view starting at index specified by dstIndex argument.
dstArray | Destination array view |
srcIndex | Index in source array to start copying items at |
dstIndex | Index in destination array view to start inserting copied items at |
count | Number of elements to copy |
DstType | Type of elements in destination array view |
|
inline |
Returns a number that represents the total number of all elements in all dimensions of the array.
|
inlinenoexcept |
Returns a reverse iterator to the first element of the reversed container. It corresponds to the last element of the non-reversed container. If the container is empty, the returned iterator is equal to crend().
|
inlinenoexcept |
Returns a reverse iterator to the element following the last element of the reversed container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior.
|
inline |
Returns a reference to the internal data structure used to store the array elements.
|
inline |
Returns a constant reference to the internal data structure used to store the array elements.
|
inline |
Returns a raw pointer to the beginning of the memory buffer where the array elements are stored.
|
inline |
Returns a constant raw pointer to the beginning of the memory buffer where the array elements are stored.
|
inlinenoexcept |
Returns an iterator to the element following the last element of the container. This element acts as a placeholder; attempting to access it results in undefined behavior.
|
inlinenoexcept |
Returns an iterator to the element following the last element of the const-qualified container. This element acts as a placeholder; attempting to access it results in undefined behavior.
|
inlinestatic |
Determines if the specified Array object contains an element that satisfies requirements of the specified predicate.
arr | The array to look for the element in |
match | Function object that defines requirements and checks if an element satisfies them |
arr
contains an element that satisfies requirements defined by match
|
inlinestatic |
Searches for the first element in the specified array that satisfies the conditions of the specified predicate.
arr | Array to search an element in |
match | A predicate that defines the conditions to match array elements against |
|
inlinestatic |
Retrieves all the elements that match the conditions defined by the specified predicate.
arr | Array to search an elements in |
match | A predicate that defines the conditions to match array elements against |
|
inlinestatic |
Searches for the first element in the specified array that satisfies the conditions of the specified predicate.
arr | Array to search an element in |
match | A predicate that defines the conditions to match array elements against |
|
inlinestatic |
Performs specified action on each element of the specified array.
arr | Target array |
action | The action to perform on each element of the array |
|
inlineoverridevirtual |
Returns the size of the array.
Implements System::Collections::Generic::ICollection< T >.
|
inlineoverridevirtual |
Indicates whether the array is read-only.
Reimplemented from System::Collections::Generic::ICollection< T >.
|
inline |
Returns 32-bit integer that represents the total number of all elements in all dimensions of the array.
|
inline |
Returns 64-bit integer that represents the total number of all elements in all dimensions of the array.
|
inline |
NOT IMPLEMENTED.
|
inlineoverridevirtual |
Returns a pointer to Enumerator object that provides IEnumerator interface to elements of the array represented by the current object.
Implements System::Collections::Generic::IEnumerable< T >.
|
inline |
Returns the number of elements in the specified dimension.
dimension | A dimension the length of which to return |
|
inline |
Returns the number of elements in the specified dimension as 64-bit integer.
dimension | A dimension the length of which to return |
|
inline |
Returns the lower bound of the specified dimension.
dimension | Dimension to return the lower bound of |
|
inline |
Returns an std::size_t variable that represents the total number of all elements in all dimensions of the array.
|
inline |
Returns the upper bound of the specified dimension.
dimension | Dimension to return the upper bound of |
|
inlineoverridevirtual |
Returns the item at the specified index.
index | Index of the item to be returned |
Implements System::Collections::Generic::IList< T >.
|
inlineoverridevirtual |
Sets the specified value as the item of the array at the specified index.
index | Index to set value at |
value | Value to set at specified index |
Implements System::Collections::Generic::IList< T >.
|
inlineoverridevirtual |
Determines the index of the first occurrence of the specified item in the array.
item | Item index of which is to be determined |
Implements System::Collections::Generic::IList< T >.
|
inlinestatic |
Determines the index of the first occurrence of specified item in the array.
arr | Array to search the specified item in |
value | Item index of which is to be determined |
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
|
inlinestatic |
Determines the index of the first occurrence of the specified item in the array starting from the specified index.
arr | Array to search the specified item in |
value | Item index of which is to be determined |
startIndex | Index at which the search is started |
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
|
inlinestatic |
Determines the index of the first occurrence of the specified item in a range of items of the array specified by the start index and the number of elements in the range.
arr | Array to search the specified item in |
value | Item index of which is to be determined |
startIndex | Index at which the search is started |
count | Number of elements of the range to search in |
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
|
inline |
Fills the array represented by the current object with the values from the specified array.
inits | The array to copy the values from |
|
inline |
Fills the array with the default constructed objects of type T
.
|
inlineoverridevirtual |
Not supported because array represented by the current object is read-only.
NotSupportedException | always |
Implements System::Collections::Generic::IList< T >.
|
inlinestatic |
Determines the index of the last occurrence of the specified item in a range of items of the array specified by the start index and the number of elements in the range.
arr | Array to search the specified item in |
value | Item index of which is to be determined |
startIndex | Index at which the search is started |
count | Number of elements of the range to search in |
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
|
inlinestatic |
Determines the index of the last occurrence of the specified item in the array starting from the specified index.
items | Array to search the specified item in |
value | Item index of which is to be determined |
startIndex | Index at which the search is started |
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
|
inlinestatic |
Determines the index of the last occurrence of the specified item in the array.
items | Array to search the specified item in |
value | Item index of which is to be determined |
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
|
inline |
Finds the largest element in the array using operator<() to compare elements.
|
inline |
Finds the smallest element in the array using operator<() to compare elements.
|
inline |
Returns an item at the specified index.
index | Index of the item to return |
|
inline |
Returns an item at the specified index.
index | Index of the item to return |
|
inlinenoexcept |
Returns a reverse iterator to the first element of the reversed container. It corresponds to the last element of the non-reversed container. If the container is empty, the returned iterator is equal to rend().
|
inlinenoexcept |
Returns a reverse iterator to the first element of the reversed container. It corresponds to the last element of the non-reversed container. If the container is empty, the returned iterator is equal to rend().
|
inlineoverridevirtual |
Not supported because the array represented by the current object is read-only.
NotSupportedException | always |
Implements System::Collections::Generic::ICollection< T >.
|
inlineoverridevirtual |
Not supported because array represented by the current object is read-only.
NotSupportedException | always |
Implements System::Collections::Generic::IList< T >.
|
inlinenoexcept |
Returns a reverse iterator to the element following the last element of the reversed container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior.
|
inlinenoexcept |
Returns a reverse iterator to the element following the last element of the reversed container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior.
|
inlinestatic |
Changes the size of the specified array to the specified value or crates new array with specified size.
arr | Array to resize. If arr is null-pointer, the new array will be created |
new_size | The new size of the array, or the size of the new array of arr is null |
|
inlinestatic |
Reverses elements in the specified array.
arr | Target array |
|
inlinestatic |
Reverses a range of elements in the specified array.
arr | Target array |
startIndex | Index in the array at which the range to reverse start |
count | The size of the range to reverse |
|
inlineoverridevirtual |
Makes array treat stored pointers as weak (if applicable).
argument | Should be 0 as there is only one template argument present. |
Reimplemented from System::Object.
|
inline |
Sets value of the element at specified index.
value | A const reference to the value to set |
index | Index of the element |
|
inlinestatic |
Sorts elements in the specified array using default comparer.
arr | Targed array |
|
inlinestatic |
Sorts a range of elements in the specified array using default comparer.
arr | Targed array |
startIndex | The index designating the beginning of the range of elements to sort |
count | The size of the range of elements to sort |
|
inlinestatic |
Sorts elements in the specified array using specified comparer.
arr | Targed array |
comparator | IComparer<T> object used to compare elements of the array |
|
inlinestatic |
NOT IMPLEMENTED.
NotImplementedException | Always |
|
inlinestatic |
Sorts two arrays one containing keys and the other - corresponding items, based on the values of array containing keys, elements of which are compared using operator<.
keys | Array that contains key values |
items | Array that contains items that are mapped to the key values in keys array |
TKey | The type of the elements in the keys array |
TValue | the type of the elements in the items array |
|
inlinestatic |
Sorts two arrays one containing keys and the other - corresponding items, based on the values of array containing keys, elements of which are compared using default comparer.
keys | Array that contains key values |
items | Array that contains items that are mapped to the key values in keys array |
index | The index designating the beginning of the range to sort |
length | The number of elements in the range to sort |
TKey | The type of the elements in the keys array |
TValue | the type of the elements in the items array |
|
inlinestatic |
Determines whether all elements in the specified array satisfy the conditions defined by specified predicate
arr | Array elements of which to match against the conditions |
match | A predicate that defines the conditions to match array elements against |
|
inlineoverridevirtual |
Gets the implementation of begin const iterator for the current container.
Reimplemented from System::Collections::Generic::IEnumerable< T >.
|
inlineoverridevirtual |
Gets the implementation of begin iterator for the current container.
Reimplemented from System::Collections::Generic::IEnumerable< T >.
|
inlineoverridevirtual |
Gets the implementation of end const iterator for the current container.
Reimplemented from System::Collections::Generic::IEnumerable< T >.
|
inlineoverridevirtual |
Gets the implementation of end iterator for the current container.
Reimplemented from System::Collections::Generic::IEnumerable< T >.
|
protected |
The storage for array's elements.
|
protected |
Information on whether to treat array elements as shared or weak pointers, if applicable.