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.
More...
|
| Array () |
| Constructs an empty array. More...
|
|
| Array (int count, const T &init=T()) |
| Filling constructor. More...
|
|
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) |
| Filling constructor. More...
|
|
| Array (int count, const T inits[]) |
| Filling constructor. More...
|
|
| Array (vector_t &&value) |
| Move constructor. More...
|
|
| Array (const vector_t &assgn) |
| Copy constructor. More...
|
|
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) |
| 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 . More...
|
|
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) |
| 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 . More...
|
|
| Array (std::initializer_list< UnderlyingType > init) |
| Constructs an Array object and fills it with values from the specified initializer list containing elements of UnderlyingType type. More...
|
|
template<std::size_t InitArraySize> |
| Array (const std::array< UnderlyingType, InitArraySize > &init) |
| Constructs an Array object and fills it with values from the specified array containing elements of UnderlyingType type. More...
|
|
| Array (std::initializer_list< bool > init, int=0) |
| Constructs an Array object and fills it with values from the specified initializer list containing elements of bool type. More...
|
|
virtual EnumeratorPtr | GetEnumerator () override |
| Returns a pointer to Enumerator object that provides IEnumerator interface to elements of the array represented by the current object. More...
|
|
virtual int | get_Count () const override |
| Returns the size of the array. More...
|
|
virtual void | Add (const T &) override |
| Not supported because the array represented by the current object is read-only. More...
|
|
virtual void | Clear () override |
| Not supported because the array represented by the current object is read-only. More...
|
|
void | SetTemplateWeakPtr (uint32_t argument) override |
| Makes array treat stored pointers as weak (if applicable). More...
|
|
virtual bool | Contains (const T &item) const override |
| Determines if the specified item is in the array. More...
|
|
virtual bool | Remove (const T &) override |
| Not supported because the array represented by the current object is read-only. More...
|
|
virtual bool | get_IsReadOnly () const override |
| Indicates whether the array is read-only. More...
|
|
virtual void | CopyTo (ArrayPtr< T > arr, int arrayIndex) override |
| 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. More...
|
|
virtual int | IndexOf (const T &item) const override |
| Determines the index of the first occurrence of the specified item in the array. More...
|
|
virtual void | Insert (int, const T &) override |
| Not supported because array represented by the current object is read-only. More...
|
|
virtual void | RemoveAt (int) override |
| Not supported because array represented by the current object is read-only. More...
|
|
virtual T | idx_get (int index) const override |
| Returns the item at the specified index. More...
|
|
virtual void | idx_set (int index, T value) override |
| Sets the specified value as the item of the array at the specified index. More...
|
|
ArrayPtr< T > | Init (const T inits[]) |
| Fills the array represented by the current object with the values from the specified array. More...
|
|
void | Initialize () |
| Fills the array with the default constructed objects of type T . More...
|
|
UnderlyingType & | operator[] (int index) |
| Returns an item at the specified index. More...
|
|
UnderlyingType const & | operator[] (int index) const |
| Returns an item at the specified index. More...
|
|
ArrayPtr< T > | Clone () |
| Clones the array. More...
|
|
int | GetLength (int dimension) |
| Returns the number of elements in the specified dimension. More...
|
|
int64_t | GetLongLength (int dimension) |
| Returns the number of elements in the specified dimension as 64-bit integer. More...
|
|
int | GetLowerBound (int dimension) const |
| Returns the lower bound of the specified dimension. More...
|
|
int | GetUpperBound (int dimension) |
| Returns the upper bound of the specified dimension. More...
|
|
int32_t | get_Rank () const |
| NOT IMPLEMENTED. More...
|
|
int32_t | get_Length () const |
| Returns 32-bit integer that represents the total number of all elements in all dimensions of the array. More...
|
|
int64_t | get_LongLength () const |
| Returns 64-bit integer that represents the total number of all elements in all dimensions of the array. More...
|
|
size_t | GetSizeTLength () const |
| Returns an std::size_t variable that represents the total number of all elements in all dimensions of the array. More...
|
|
int | Count () const |
| Returns a number that represents the total number of all elements in all dimensions of the array. More...
|
|
template<typename DstType > |
void | CopyTo (const ArrayPtr< DstType > &dstArray, int64_t dstIndex) const |
| 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. More...
|
|
template<typename DstType > |
void | CopyTo (const System::Details::ArrayView< DstType > &dstArray, int64_t dstIndex) const |
| 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. More...
|
|
template<typename DstType > |
void | CopyTo (const ArrayPtr< DstType > &dstArray, int64_t srcIndex, int64_t dstIndex, int64_t count) const |
| 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. More...
|
|
template<typename DstType > |
void | CopyTo (const System::Details::ArrayView< DstType > &dstArray, int64_t srcIndex, int64_t dstIndex, int64_t count) const |
| 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. More...
|
|
void | SetValue (const T &value, int index) |
| Sets value of the element at specified index. More...
|
|
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 |
| Returns an iterator to the first element of the container. If the container is empty, the returned iterator will be equal to end(). More...
|
|
const_iterator | begin () const noexcept |
| 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(). More...
|
|
const_iterator | cbegin () const noexcept |
| 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(). More...
|
|
iterator | end () noexcept |
| 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. More...
|
|
const_iterator | end () const noexcept |
| 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. More...
|
|
const_iterator | cend () const noexcept |
| 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. More...
|
|
reverse_iterator | rbegin () noexcept |
| 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(). More...
|
|
const_reverse_iterator | rbegin () const noexcept |
| 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(). More...
|
|
const_reverse_iterator | crbegin () const noexcept |
| 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(). More...
|
|
reverse_iterator | rend () noexcept |
| 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. More...
|
|
const_reverse_iterator | rend () const noexcept |
| 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. More...
|
|
const_reverse_iterator | crend () const noexcept |
| 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. More...
|
|
UnderlyingType | Min () const |
| Finds the smallest element in the array using operator<() to compare elements. More...
|
|
UnderlyingType | Max () const |
| Finds the largest element in the array using operator<() to compare elements. More...
|
|
System::Details::VirtualizedIteratorBase< T > * | virtualizeBeginIterator () override |
| Gets the implementation of begin iterator for the current container. More...
|
|
System::Details::VirtualizedIteratorBase< T > * | virtualizeEndIterator () override |
| Gets the implementation of end iterator for the current container. More...
|
|
System::Details::VirtualizedIteratorBase< T > * | virtualizeBeginConstIterator () const override |
| Gets the implementation of begin const iterator for the current container. More...
|
|
System::Details::VirtualizedIteratorBase< T > * | virtualizeEndConstIterator () const override |
| Gets the implementation of end const iterator for the current container. More...
|
|
| Object () |
| Creates object. Initializes all internal data structures. More...
|
|
virtual | ~Object () |
| Destroys object. Frees all internal data structures. More...
|
|
| 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...
|
|
void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
|
|
void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
|
|
virtual bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics. More...
|
|
virtual int32_t | GetHashCode () const |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
|
virtual String | ToString () const |
| Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
|
virtual ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
|
|
virtual const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call. More...
|
|
virtual bool | Is (const TypeInfo &targetType) const |
| Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
|
|
virtual void | SetTemplateWeakPtr (uint32_t argument) |
| Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
|
|
virtual bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| For internal purposes only. More...
|
|
template<> |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
| Specialization of Object::ReferenceEquals for case of string and nullptr. More...
|
|
template<> |
bool | ReferenceEquals (String const &str1, String const &str2) |
| Specialization of Object::ReferenceEquals for case of strings. More...
|
|
virtual int | IndexOf (const T &item) const =0 |
| Gets index of first appearance of item in container. More...
|
|
virtual void | Insert (int index, const T &item)=0 |
| Inserts element into specified position, shifting other elements. More...
|
|
virtual void | RemoveAt (int index)=0 |
| Removes element at specified index. More...
|
|
virtual T | idx_get (int index) const =0 |
| Gets element at specified index. More...
|
|
virtual void | idx_set (int index, T value)=0 |
| Sets element at specified index. More...
|
|
bool | get_IsFixedSize () |
| Checks whether the collection is of fixed size. More...
|
|
virtual int | get_Count () const =0 |
| Gets number of elements in collection. More...
|
|
virtual void | Add (const T &item)=0 |
| Adds element into collection. More...
|
|
virtual void | Clear ()=0 |
| Deletes all elements from collection. More...
|
|
virtual bool | Contains (const T &item) const =0 |
| Checks if element is present in collection. More...
|
|
virtual bool | Remove (const T &item)=0 |
| Deletes element from collection. More...
|
|
virtual bool | get_IsReadOnly () const |
| Checks if collection is read only. More...
|
|
virtual void | CopyTo (System::ArrayPtr< T > array, int arrayIndex)=0 |
| Copies all collection elements to existing array elements. More...
|
|
ICollection & | operator= (ICollection &&) noexcept |
| Move assignment operator. More...
|
|
ICollection & | operator= (const ICollection &) |
| Move assignment operator. More...
|
|
| 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...
|
|
virtual SharedPtr< IEnumerator< T > > | GetEnumerator ()=0 |
| Gets enumerator. More...
|
|
T | LINQ_Aggregate (const Func< T, T, T > &func) |
| Applies an accumulator function over a sequence. More...
|
|
T | LINQ_ElementAt (int index) |
| Returns the element at a specified index in a sequence. More...
|
|
T | LINQ_ElementAtOrDefault (int index) |
| Returns the element at a specified index in a sequence. More...
|
|
T | LINQ_First () |
| Returns the first element of a sequence. More...
|
|
T | LINQ_First (const Func< T, bool > &predicate) |
| Returns the first element of a sequence that satisfy the specified condition. More...
|
|
T | LINQ_FirstOrDefault () |
| Returns the first element of a sequence, or a default value if the sequence is empty. More...
|
|
T | LINQ_FirstOrDefault (std::function< bool(T)> predicate) |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. More...
|
|
T | LINQ_Last () |
| Returns the last element of a sequence. More...
|
|
T | LINQ_LastOrDefault () |
| Returns the last element of a sequence, or a default value if the sequence is empty. More...
|
|
SharedPtr< List< T > > | LINQ_ToList () |
| Creates a List<T> from a sequence. More...
|
|
int | LINQ_Count () |
| Returns the number of elements in the sequence (calculated via direct counting). More...
|
|
int | LINQ_Count (const Func< T, bool > &predicate) |
| Returns the number of elements in the sequence that satisfy the specified condition. More...
|
|
System::ArrayPtr< T > | LINQ_ToArray () |
| Creates an array from a sequence. More...
|
|
bool | LINQ_All (std::function< bool(T)> predicate) |
| Determines whether all elements of a sequence satisfy a condition. More...
|
|
bool | LINQ_Any () |
| Determines whether a sequence contains any elements. More...
|
|
bool | LINQ_Any (std::function< bool(T)> predicate) |
| Determines whether any element of a sequence exists or satisfies a condition. More...
|
|
SharedPtr< IEnumerable< T > > | LINQ_Where (std::function< bool(T)> predicate) |
| Filters a sequence based on the specified predicate. More...
|
|
bool | LINQ_Contains (T value) |
| Determines if a sequence contains a specified value. More...
|
|
template<typename ResultType > |
SharedPtr< IEnumerable< ResultType > > | LINQ_Cast () |
| Casts the elements to the specified type. More...
|
|
template<typename Key > |
SharedPtr< Linq::IOrderedEnumerable< T > > | LINQ_OrderBy (const Func< T, Key > &keySelector) |
| Sorts the elements of a sequence in ascending order according to the key values selected by keySelector. More...
|
|
template<typename Key > |
SharedPtr< Linq::IOrderedEnumerable< T > > | LINQ_OrderByDescending (const Func< T, Key > &keySelector) |
| Sorts the elements of a sequence in descending order according to the key values selected by keySelector. More...
|
|
template<typename ResultType > |
SharedPtr< IEnumerable< ResultType > > | LINQ_OfType () |
| Filters the elements of the sequence based on the specified type. More...
|
|
template<typename ResultType > |
SharedPtr< IEnumerable< ResultType > > | LINQ_Select (const Func< T, ResultType > &selector) |
| Transforms elements of a sequence. More...
|
|
template<typename ResultType > |
SharedPtr< IEnumerable< ResultType > > | LINQ_Select (const Func< T, int32_t, ResultType > &selector) |
| Transforms each element of a sequence into a new form by incorporating the element's index. More...
|
|
SharedPtr< IEnumerable< T > > | LINQ_Concat (SharedPtr< IEnumerable< T > > sequence) |
| Concatenates two sequences. More...
|
|
SharedPtr< IEnumerable< T > > | LINQ_Reverse () |
| Inverts the order of the elements in a sequence. More...
|
|
template<typename Key > |
System::SharedPtr< IEnumerable< System::SharedPtr< System::Linq::IGrouping< Key, T > > > > | LINQ_GroupBy (System::Func< T, Key > keyPredicate) |
| Groups the elements of a sequence. More...
|
|
template<typename ResultType > |
SharedPtr< IEnumerable< ResultType > > | LINQ_SelectMany (const Func< T, SharedPtr< IEnumerable< ResultType > > > &selector) |
| Projects each element of a sequence and combines the resulting sequences into one sequence. More...
|
|
SharedPtr< IEnumerable< T > > | LINQ_Take (int32_t count) |
| Returns a specified number of contiguous elements from the start of a sequence. More...
|
|
template<typename ResultType > |
ResultType | LINQ_Min (const Func< T, ResultType > &selector) |
| Invokes a transform function on each element of a generic sequence and returns the minimum resulting value. More...
|
|
template<typename ResultType > |
ResultType | LINQ_Max (const Func< T, ResultType > &selector) |
| Invokes a transform function on each element of a generic sequence and returns the maximum resulting value. More...
|
|
iterator | begin () |
| Gets iterator pointing to the first element (if any) of the collection. This iterator can't be used to change a referenced object because GetEnumerator() returns a copy-object of T. More...
|
|
iterator | end () |
| Gets iterator pointing right after the last element (if any) of the collection. This iterator can't be used to change a referenced object because GetEnumerator() returns a copy-object of T. More...
|
|
const_iterator | begin () const |
| Gets iterator pointing to the first element (if any) of the const-qualified instance of the collection. More...
|
|
const_iterator | end () const |
| Gets iterator pointing right after the last element (if any) of the const-qualified instance of the collection. More...
|
|
const_iterator | cbegin () const |
| Gets iterator pointing to the first const-qualified element (if any) of the collection. More...
|
|
const_iterator | cend () const |
| Gets iterator pointing right after the last const-qualified element (if any) of the collection. More...
|
|
virtual virtualized_iterator * | virtualizeBeginIterator () |
| Gets the implementation of begin iterator for the current container. More...
|
|
virtual virtualized_iterator * | virtualizeEndIterator () |
| Gets the implementation of end iterator for the current container. More...
|
|
virtual virtualized_iterator * | virtualizeBeginConstIterator () const |
| Gets the implementation of begin const iterator for the current container. More...
|
|
virtual virtualized_iterator * | virtualizeEndConstIterator () const |
| Gets the implementation of end const iterator for the current container. More...
|
|
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< Linq::IOrderedEnumerable< Source > > | LINQ_OrderBy (const Func< Source, Key > &keySelector) |
|
template<typename Key > |
SharedPtr< Linq::IOrderedEnumerable< 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) |
|
template<typename ResultType > |
ResultType | LINQ_Min (const Func< Source, ResultType > &selector) |
|
template<typename ResultType > |
ResultType | LINQ_Max (const Func< Source, ResultType > &selector) |
|
|
static int | BinarySearch (System::ArrayPtr< T > arr, const T &item) |
| Performs binary search in the sorted array. More...
|
|
template<typename Y , typename Z > |
static int | BinarySearch (System::ArrayPtr< T > arr, const Y &item, const SharedPtr< Collections::Generic::IComparer< Z > > &comparer) |
| NOT IMPLEMENTED. More...
|
|
template<typename InputType , typename OutputType > |
static ArrayPtr< OutputType > | ConvertAll (ArrayPtr< InputType > input_array, Converter< InputType, OutputType > converter) |
| Constructs a new Array object and fills it with elements of the specified array converted to OutputType type using the specified converter delegate. More...
|
|
template<typename InputType , typename OutputType > |
static ArrayPtr< OutputType > | ConvertAll (ArrayPtr< InputType > input_array, std::function< OutputType(InputType)> converter) |
| Constructs a new Array object and fills it with elements of the specified array converted to OutputType type using the specified converter function object. More...
|
|
static int | FindIndex (System::ArrayPtr< T > arr, System::Predicate< T > match) |
| Searches for the first element in the specified array that satisfies the conditions of the specified predicate. More...
|
|
static T | Find (System::ArrayPtr< T > arr, System::Predicate< T > match) |
| Searches for the first element in the specified array that satisfies the conditions of the specified predicate. More...
|
|
static System::ArrayPtr< T > | FindAll (System::ArrayPtr< T > arr, System::Predicate< T > match) |
| Retrieves all the elements that match the conditions defined by the specified predicate. More...
|
|
static bool | TrueForAll (System::ArrayPtr< T > arr, System::Predicate< T > match) |
| Determines whether all elements in the specified array satisfy the conditions defined by specified predicate. More...
|
|
static void | ForEach (const ArrayPtr< T > &arr, System::Action< T > action) |
| Performs specified action on each element of the specified array. More...
|
|
template<typename ArrayType , typename ValueType > |
static int | IndexOf (const ArrayPtr< ArrayType > &arr, const ValueType &value) |
| Determines the index of the first occurrence of specified item in the array. More...
|
|
template<typename ArrayType , typename ValueType > |
static int | IndexOf (const ArrayPtr< ArrayType > &arr, const ValueType &value, int startIndex) |
| Determines the index of the first occurrence of the specified item in the array starting from the specified index. More...
|
|
template<typename ArrayType , typename ValueType > |
static int | IndexOf (const ArrayPtr< ArrayType > &arr, const ValueType &value, int startIndex, int count) |
| 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. More...
|
|
template<typename ArrayType , typename ValueType > |
static int | LastIndexOf (const ArrayPtr< ArrayType > &arr, const ValueType &value, int startIndex, int count) |
| 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. More...
|
|
template<typename ArrayType , typename ValueType > |
static int | LastIndexOf (const ArrayPtr< ArrayType > &items, const ValueType &value, int startIndex) |
| Determines the index of the last occurrence of the specified item in the array starting from the specified index. More...
|
|
template<typename ArrayType , typename ValueType > |
static int | LastIndexOf (const ArrayPtr< ArrayType > &items, const ValueType &value) |
| Determines the index of the last occurrence of the specified item in the array. More...
|
|
template<typename Type > |
static void | Clear (const ArrayPtr< Type > &arr, int startIndex, int count) |
| Replaces count values starting at the startIndex index in the specified array with default values. More...
|
|
template<typename SrcType , typename DstType > |
static void | ConstrainedCopy (const ArrayPtr< SrcType > &srcArray, int64_t srcIndex, const ArrayPtr< DstType > &dstArray, int64_t dstIndex, int64_t count) |
| Copies a range of elements from an System.Array starting at the specified source. More...
|
|
template<typename SrcType , typename DstType > |
static void | Copy (const ArrayPtr< SrcType > &srcArray, const ArrayPtr< DstType > &dstArray, int64_t count) |
| Copies the specified number of elements from the source array to the destination array. More...
|
|
template<typename SrcType , typename DstType > |
static void | Copy (System::Details::ArrayView< SrcType > srcArray, const ArrayPtr< DstType > &dstArray, int64_t count) |
| Copies the specified number of elements from the source array view to the destination array. More...
|
|
template<typename SrcType , typename DstType > |
static void | Copy (const ArrayPtr< SrcType > &srcArray, System::Details::ArrayView< DstType > dstArray, int64_t count) |
| Copies the specified number of elements from the source array to the destination array view. More...
|
|
template<typename SrcType , typename DstType > |
static void | Copy (System::Details::ArrayView< SrcType > srcArray, System::Details::ArrayView< DstType > dstArray, int64_t count) |
| Copies the specified number of elements from the source array view to the destination array view. More...
|
|
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) |
| Copies the specified number of elements from the source array on stack to the destination array. More...
|
|
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) |
| Copies the specified number of elements from the source array to the destination array on stack. More...
|
|
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) |
| Copies the specified number of elements from the source array on stack to the destination array on stack. More...
|
|
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) |
| Copies a specified number of elements from the source array starting at the specified index to the specified position in destination array. More...
|
|
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) |
| Copies a specified number of elements from the source array view starting at the specified index to the specified position in destination array. More...
|
|
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) |
| Copies a specified number of elements from the source array starting at the specified index to the specified position in destination array view. More...
|
|
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) |
| Copies a specified number of elements from the source array view starting at the specified index to the specified position in destination array view. More...
|
|
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) |
| Copies a specified number of elements from the source array on stack starting at the specified index to the specified position in destination array. More...
|
|
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) |
| Copies a specified number of elements from the source array starting at the specified index to the specified position in destination array on stack. More...
|
|
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) |
| 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. More...
|
|
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) |
| 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. More...
|
|
template<typename Type > |
static void | Sort (const ArrayPtr< Type > &arr) |
| Sorts elements in the specified array using default comparer. More...
|
|
template<typename Type > |
static void | Sort (const ArrayPtr< Type > &arr, int startIndex, int count) |
| Sorts a range of elements in the specified array using default comparer. More...
|
|
template<typename Type > |
static void | Sort (const ArrayPtr< Type > &arr, const SharedPtr< System::Collections::Generic::IComparer< T > > &comparator) |
| Sorts elements in the specified array using specified comparer. More...
|
|
template<typename Type , typename Y > |
static void | Sort (const ArrayPtr< Type > &arr, const SharedPtr< System::Collections::Generic::IComparer< Y > > &comparator) |
| NOT IMPLEMENTED. More...
|
|
template<typename TKey , typename TValue > |
static void | Sort (const ArrayPtr< TKey > &keys, const ArrayPtr< TValue > &items) |
| 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<. More...
|
|
template<typename TKey , typename TValue > |
static void | Sort (const ArrayPtr< TKey > &keys, const ArrayPtr< TValue > &items, int index, int length) |
| 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. More...
|
|
template<typename Type > |
static void | Reverse (const ArrayPtr< Type > &arr) |
| Reverses elements in the specified array. More...
|
|
template<typename Type > |
static void | Reverse (const ArrayPtr< Type > &arr, int startIndex, int count) |
| Reverses a range of elements in the specified array. More...
|
|
template<typename Type > |
static void | Resize (ArrayPtr< Type > &arr, int new_size) |
| Changes the size of the specified array to the specified value or crates new array with specified size. More...
|
|
static bool | Exists (ArrayPtr< T > arr, std::function< bool(T)> match) |
| Determines if the specified Array object contains an element that satisfies requirements of the specified predicate. More...
|
|
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...
|
|
template<> |
bool | Equals (float const &objA, float const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
|
template<> |
bool | Equals (double const &objA, double const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
|