xtd 0.2.0
Loading...
Searching...
No Matches
array_3.hpp
Go to the documentation of this file.
1
4
5#if !defined(__XTD_ARRAY_INTERNAL__)
6#error "Do not include this file: Internal use only. Include <xtd/array> or <xtd/array.h> instead."
7#endif
8
10namespace xtd {
39 template<typename type_t, typename allocator_t>
40 class array<type_t, 3, allocator_t> : public xtd::basic_array<type_t, allocator_t> {
41 public:
43
46 using value_type = type_t;
72
74
81 array() = default;
84 array(const array& array) : basic_array<type_t, allocator_t>(array) {}
87 array(const array&& array) : basic_array<type_t, allocator_t>(std::move(array)) {}
90 array(const base_type& array) : basic_array<type_t, allocator_t>(array) {}
93 array(base_type&& array) : basic_array<type_t, allocator_t>(array) {}
102 array(size_type length1, size_type length2, size_type length3) : basic_array<type_t, allocator_t>(array<xtd::size> {length1, length2, length3}) {}
105 array(std::initializer_list<std::initializer_list<std::initializer_list<type_t>>> items) : basic_array<type_t, allocator_t>(items) {}
107
109 ~array() {}
111
113
115 xtd::size rank() const noexcept override {return 3;}
117 };
118}
typename xtd::basic_array< type_t, allocator_t >::reference reference
Represents the reference of array value type.
Definition array_3.hpp:56
typename xtd::basic_array< type_t, allocator_t >::const_reference const_reference
Represents the const reference of array value type.
Definition array_3.hpp:58
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_3.hpp:70
array(const array &&array)
Move constructor with specified array.
Definition array_3.hpp:87
typename xtd::basic_array< type_t, allocator_t >::iterator iterator
Represents the iterator of array value type.
Definition array_3.hpp:64
typename xtd::basic_array< type_t, allocator_t >::const_pointer const_pointer
Represents the const pointer of array value type.
Definition array_3.hpp:62
array()=default
Initializes a new instance of the Array class that is empty.
array(const base_type &array)
Copy constructor with specified base type array.
Definition array_3.hpp:90
typename xtd::basic_array< type_t, allocator_t >::difference_type difference_type
Represents the array difference type (usually xtd::ptrdiff).
Definition array_3.hpp:54
array(std::initializer_list< std::initializer_list< std::initializer_list< type_t > > > items)
Constructs the container with the contents of the specified initializer list.
Definition array_3.hpp:105
array(const array &array)
Copy constructor with specified array.
Definition array_3.hpp:84
xtd::size rank() const noexcept override
Gets the rank (number of dimensions) of the array.
Definition array_3.hpp:115
typename xtd::basic_array< type_t, allocator_t >::const_iterator const_iterator
Represents the const iterator of array value type.
Definition array_3.hpp:66
typename xtd::basic_array< type_t, allocator_t >::allocator_type allocator_type
Represents the array allocator type.
Definition array_3.hpp:48
array(base_type &&array)
Move constructor with specified base type array.
Definition array_3.hpp:93
typename xtd::basic_array< type_t, allocator_t >::reverse_iterator reverse_iterator
Represents the reverse iterator of array value type.
Definition array_3.hpp:68
typename xtd::basic_array< type_t, allocator_t >::base_type base_type
Represents the array base type.
Definition array_3.hpp:50
array(size_type length1, size_type length2, size_type length3)
Initializes a new instance of the array class with lengths for each rank specified.
Definition array_3.hpp:102
type_t value_type
Represents the array value type.
Definition array_3.hpp:46
typename xtd::basic_array< type_t, allocator_t >::size_type size_type
Represents the array size type (usually xtd::size).
Definition array_3.hpp:52
typename xtd::basic_array< type_t, allocator_t >::pointer pointer
Represents the pointer of array value type.
Definition array_3.hpp:60
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
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
virtual const base_type & items() const noexcept
Returns the underlying base type items.
Definition basic_array.hpp:163
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
xtd::size size_type
Represents the array size type (usually xtd::size).
Definition basic_array.hpp:53
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