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.hpp:100
typename xtd::basic_array< type_t, allocator_t >::const_reference const_reference
Represents the const reference of array value type.
Definition array_1.hpp:58
typename xtd::basic_array< type_t, allocator_t >::const_pointer const_pointer
Represents the const pointer of array value type.
Definition array_1.hpp:62
array(base_type &&array)
Move constructor with specified base type array.
Definition array_1.hpp: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.hpp:126
array(const array &&array)
Move constructor with specified array.
Definition array_1.hpp: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.hpp:133
typename xtd::basic_array< type_t, allocator_t >::difference_type difference_type
Represents the array difference type (usually xtd::ptrdiff).
Definition array_1.hpp:54
typename xtd::basic_array< type_t, allocator_t >::reverse_iterator reverse_iterator
Represents the reverse iterator of array value type.
Definition array_1.hpp: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.hpp:60
typename xtd::basic_array< type_t, allocator_t >::const_iterator const_iterator
Represents the const iterator of array value type.
Definition array_1.hpp:66
typename xtd::basic_array< type_t, allocator_t >::iterator iterator
Represents the iterator of array value type.
Definition array_1.hpp: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.hpp:70
array(std::initializer_list< type_t > items)
Constructs the container with the contents of the specified initializer list.
Definition array_1.hpp:103
array(const array &array)
Copy constructor with specified array.
Definition array_1.hpp: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.hpp:178
typename xtd::basic_array< type_t, allocator_t >::base_type base_type
Represents the array base type.
Definition array_1.hpp: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.hpp:225
array(iterator_t first, iterator_t last)
Constructs the container with the contents of the range [first, last).
Definition array_1.hpp:138
const value_type & operator[](size_type index) const override
Gets the element at the specified index.
Definition array_1.hpp: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.hpp:205
typename xtd::basic_array< type_t, allocator_t >::reference reference
Represents the reference of array value type.
Definition array_1.hpp:56
array(const base_type &array)
Copy constructor with specified base type array.
Definition array_1.hpp:90
xtd::size rank() const noexcept override
Gets the rank (number of dimensions) of the array.
Definition array_1.hpp: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.hpp: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.hpp:186
array(const type_t(&array)[length])
Initializes a new instance of the array and copy array[] type_t.
Definition array_1.hpp:111
typename xtd::basic_array< type_t, allocator_t >::size_type size_type
Represents the array size type (usually xtd::size).
Definition array_1.hpp:52
typename xtd::basic_array< type_t, allocator_t >::allocator_type allocator_type
Represents the array allocator type.
Definition array_1.hpp: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.hpp: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.hpp:215
type_t value_type
Represents the array value type.
Definition array_1.hpp:46
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:58
Base object that represent array.
Definition basic_array.hpp:27
typename base_type::const_reverse_iterator const_reverse_iterator
Represents the const reverse iterator of array value type.
Definition basic_array.hpp:71
const value_type & const_reference
Represents the const reference of array value type.
Definition basic_array.hpp:59
typename xtd::collections::generic::ilist< type_t >::iterator iterator
Represents the iterator of array value type.
Definition basic_array.hpp: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.hpp: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.hpp:55
typename xtd::collections::generic::ilist< type_t >::const_iterator const_iterator
Represents the const iterator of array value type.
Definition basic_array.hpp: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.hpp:49
typename base_type::reverse_iterator reverse_iterator
Represents the reverse iterator of array value type.
Definition basic_array.hpp:69
const value_type * const_pointer
Represents the const pointer of array value type.
Definition basic_array.hpp:63
value_type * pointer
Represents the pointer of array value type.
Definition basic_array.hpp:61
value_type & reference
Represents the reference of array value type.
Definition basic_array.hpp: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.hpp: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.hpp:174
virtual const base_type & items() const noexcept
Returns the underlying base type items.
Definition basic_array.hpp:163
const_reference operator[](size_type index) const override
Returns a reference to the element at specified location index.
Definition basic_array.hpp: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.hpp: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.hpp:53
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Definition ienumerable.hpp:35
Represents a collection of objects that can be individually accessed by index.
Definition ilist.hpp:41
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10