5#if !defined(__XTD_ARRAY_INTERNAL__)
6#error "Do not include this file: Internal use only. Include <xtd/array> or <xtd/array.h> instead."
39 template<
typename type_t,
typename allocator_t>
110 template<xtd::size length>
137 template<
typename iterator_t>
138 array(iterator_t first, iterator_t last) :
basic_array<type_t, allocator_t>(first, last) {}
array(size_type length)
Initializes a new instance of the array class with lengths for each rank specified.
Definition array_1.h:100
typename xtd::basic_array< type_t, allocator_t >::const_reference const_reference
Represents the const reference of array value type.
Definition array_1.h:58
typename xtd::basic_array< type_t, allocator_t >::const_pointer const_pointer
Represents the const pointer of array value type.
Definition array_1.h:62
array(base_type &&array)
Move constructor with specified base type array.
Definition array_1.h:93
array(const xtd::collections::generic::ienumerable< type_t > &enumerable)
Initializes a new instance of the array and copy array array specified.
Definition array_1.h:126
array(const array &&array)
Move constructor with specified array.
Definition array_1.h:87
array(const xtd::collections::generic::ilist< type_t > &list)
Initializes a new instance of the array and copy array array specified.
Definition array_1.h:133
typename xtd::basic_array< type_t, allocator_t >::difference_type difference_type
Represents the array difference type (usually xtd::ptrdiff).
Definition array_1.h:54
typename xtd::basic_array< type_t, allocator_t >::reverse_iterator reverse_iterator
Represents the reverse iterator of array value type.
Definition array_1.h:68
array()=default
Initializes a new instance of the Array class that is empty.
typename xtd::basic_array< type_t, allocator_t >::pointer pointer
Represents the pointer of array value type.
Definition array_1.h:60
typename xtd::basic_array< type_t, allocator_t >::const_iterator const_iterator
Represents the const iterator of array value type.
Definition array_1.h:66
typename xtd::basic_array< type_t, allocator_t >::iterator iterator
Represents the iterator of array value type.
Definition array_1.h:64
typename xtd::basic_array< type_t, allocator_t >::const_reverse_iterator const_reverse_iterator
Represents the const reverse iterator of array value type.
Definition array_1.h:70
array(std::initializer_list< type_t > items)
Constructs the container with the contents of the specified initializer list.
Definition array_1.h:103
array(const array &array)
Copy constructor with specified array.
Definition array_1.h:84
const value_type & get_value(size_type index) const
Gets the value at the specified position in the one-dimensional Array. The index is specified as a 32...
Definition array_1.h:178
typename xtd::basic_array< type_t, allocator_t >::base_type base_type
Represents the array base type.
Definition array_1.h:50
value_type & operator[](size_type index) override
Sets a value to the element at the specified position in the one-dimensional Array....
Definition array_1.h:225
array(iterator_t first, iterator_t last)
Constructs the container with the contents of the range [first, last).
Definition array_1.h:138
const value_type & operator[](size_type index) const override
Gets the element at the specified index.
Definition array_1.h:235
value_type & operator()(size_type index)
Sets a value to the element at the specified position in the one-dimensional Array....
Definition array_1.h:205
typename xtd::basic_array< type_t, allocator_t >::reference reference
Represents the reference of array value type.
Definition array_1.h:56
array(const base_type &array)
Copy constructor with specified base type array.
Definition array_1.h:90
xtd::size rank() const noexcept override
Gets the rank (number of dimensions) of the array.
Definition array_1.h:148
void copy_to(xtd::array< type_t > &array, size_type index) const override
Copies all the elements of the current one-dimensional array to the specified one-dimensional array s...
Definition array_1.h:170
void set_value(const value_type &value, size_type index)
Sets a value to the element at the specified position in the one-dimensional Array....
Definition array_1.h:186
array(const type_t(&array)[length])
Initializes a new instance of the array and copy array[] type_t.
Definition array_1.h:111
typename xtd::basic_array< type_t, allocator_t >::size_type size_type
Represents the array size type (usually xtd::size).
Definition array_1.h:52
typename xtd::basic_array< type_t, allocator_t >::allocator_type allocator_type
Represents the array allocator type.
Definition array_1.h:48
array(const type_t *array, size_type length)
Initializes a new instance of the array and copy array[] type_t with length specified.
Definition array_1.h:119
const value_type & operator()(size_type index) const
Gets the value at the specified position in the one-dimensional Array. The index is specified as a 32...
Definition array_1.h:215
type_t value_type
Represents the array value type.
Definition array_1.h:46
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.h:58
Base object that represent array.
Definition basic_array.h:27
typename base_type::const_reverse_iterator const_reverse_iterator
Represents the const reverse iterator of array value type.
Definition basic_array.h:71
const value_type & const_reference
Represents the const reference of array value type.
Definition basic_array.h:59
typename xtd::collections::generic::ilist< type_t >::iterator iterator
Represents the iterator of array value type.
Definition basic_array.h:65
void set_value(const type_t &value, const xtd::array< size_type > &indexes)
Sets a value to the element at the specified position in the multidimensional array.
Definition basic_array.h:373
const value_type & get_value(const xtd::array< size_type > &indexes) const
Gets the value at the specified position in the multidimensional array. The indexes are specified as ...
xtd::ptrdiff difference_type
Represents the array difference type (usually xtd::ptrdiff).
Definition basic_array.h:55
typename xtd::collections::generic::ilist< type_t >::const_iterator const_iterator
Represents the const iterator of array value type.
Definition basic_array.h:67
xtd::collections::generic::helpers::allocator< typename std::conditional< std::is_same< bool, value_type >::value, xtd::byte, value_type >::type > allocator_type
Represents the array allocator type.
Definition basic_array.h:49
typename base_type::reverse_iterator reverse_iterator
Represents the reverse iterator of array value type.
Definition basic_array.h:69
const value_type * const_pointer
Represents the const pointer of array value type.
Definition basic_array.h:63
value_type * pointer
Represents the pointer of array value type.
Definition basic_array.h:61
value_type & reference
Represents the reference of array value type.
Definition basic_array.h:57
void copy_to(xtd::array< type_t > &array, size_type index) const override
Copies the elements of the xtd::collections::generic::icollection <type_t> to an xtd::array,...
Definition basic_array.h:244
virtual size_type length() const noexcept
Gets a size that represents the total number of elements in all the dimensions of the array.
Definition basic_array.h:174
virtual const base_type & items() const noexcept
Returns the underlying base type items.
Definition basic_array.h:163
const_reference operator[](size_type index) const override
Returns a reference to the element at specified location index.
Definition basic_array.h:475
std::vector< typename std::conditional< std::is_same< bool, value_type >::value, xtd::byte, value_type >::type, allocator_type > base_type
Represents the array base type.
Definition basic_array.h:51
type_t & operator()(const xtd::array< size_type > &indexes)
Gets the value at the specified position in the multidimensional array. The indexes are specified as ...
xtd::size size_type
Represents the array size type (usually xtd::size).
Definition basic_array.h:53
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Definition ienumerable.h:35
Represents a collection of objects that can be individually accessed by index.
Definition ilist.h:41
size_t size
Represents a size of any object in bytes.
Definition size.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10