Represents a fixed array class.
Public Aliases | |
| using | value_type |
| Represents the array value type. | |
| using | base_type |
| Represents the array base type. | |
| using | const_base_type |
| Represents the const array base type. | |
| using | reference |
| Represents the reference of array value type. | |
| using | const_reference |
| Represents the const reference of array value type. | |
| using | iterator |
| Represents the iterator of array value type. | |
| using | const_iterator |
| Represents the const iterator of array value type. | |
| using | pointer |
| Represents the pointer of array value type. | |
| using | const_pointer |
| Represents the const pointer of array value type. | |
| using | size_type |
| Represents the array size type (usually xtd::size). | |
| using | difference_type |
| Represents the array difference type (usually xtd::ptrdiff). | |
| using | reverse_iterator |
| Represents the reverse iterator of array value type. | |
| using | const_reverse_iterator |
| Represents the const reverse iterator of array value type. | |
Public Constructors | |
| fixed_array (fixed_array &&)=default | |
| fixed_array & | operator= (fixed_array &&)=default |
| fixed_array (const fixed_array &)=default | |
| fixed_array & | operator= (const fixed_array &)=default |
| fixed_array (std::initializer_list< type_t > il) | |
| virtual const_reference | at (size_type index) const |
| Returns a reference to the element at specified location pos, with bounds checking. | |
| virtual reference | at (size_type index) |
| Returns a reference to the element at specified location pos, with bounds checking. | |
| void | clear () noexcept |
| Clears the contents of this xtd::span <type> object. | |
| void | fill (const type_t &value) |
| Fills the elements of this span with a specified value. | |
| virtual xtd::array< value_type > | to_array () const noexcept |
| Copies the elements of the xtd::collections::generic::list <type_t> to a new array. | |
| xtd::string | to_string () const noexcept override |
| Returns a xtd::string that represents the current object. | |
Public Properties | |
| virtual reference | back () |
| Returns a reference to the last element in the container. | |
| virtual const_reference | back () const |
| Returns a reference to the last element in the container. | |
| const_iterator | begin () const noexcept |
| Returns an iterator to the first element of the enumerable. | |
| iterator | begin () noexcept |
| Returns an iterator to the first element of the enumerable. | |
| const_iterator | cbegin () const noexcept |
| Returns an iterator to the first element of the enumerable. | |
| const_iterator | cend () const noexcept |
| Returns an iterator to the element following the last element of the enumerable. | |
| size_type | count () const noexcept |
| Gets the number of elements contained in the xtd::collections::generic::list <type_t>. | |
| const_pointer | data () const noexcept |
| Returns pointer to the underlying array serving as element storage. | |
| pointer | data () noexcept |
| Returns pointer to the underlying array serving as element storage. | |
| virtual bool | empty () const noexcept |
| Checks if the container has no elements, i.e. whether xtd::array::begin() == xtd::array::end(). | |
| const_iterator | end () const noexcept |
| Returns an iterator to the element following the last element of the enumerable. | |
| iterator | end () noexcept |
| Returns an iterator to the element following the last element of the enumerable. | |
| virtual reference | front () |
| Returns a reference to the first element in the container. | |
| virtual const_reference | front () const |
| Returns a reference to the first element in the container. | |
| virtual const_base_type | items () const noexcept |
| Returns the underlying base type items. | |
| virtual base_type | items () noexcept |
| Returns the underlying base type items. | |
| virtual size_type | length () const noexcept |
| Gets a size that represents the total number of elements in all the dimensions of the array. | |
| xtd::size | size () const noexcept |
| Returns the number of elements in the container, i.e. std::distance(xtd::array::begin(), xtd::array::end()). | |
Public Operators | |
| const_reference | operator[] (xtd::size index) const |
| Returns a reference to the element at specified location index. | |
| reference | operator[] (xtd::size index) |
| Returns a reference to the element at specified location index. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. | |
| virtual xtd::size | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. | |
| template<class object_t> | |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object. | |
| template<class object_a_t, class object_b_t> | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal. | |
| template<class object_a_t, class object_b_t> | |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance. | |
| using xtd::fixed_array< type_t, len >::value_type |
Represents the array value type.
| using xtd::fixed_array< type_t, len >::base_type |
Represents the array base type.
| using xtd::fixed_array< type_t, len >::const_base_type |
Represents the const array base type.
| using xtd::fixed_array< type_t, len >::reference |
Represents the reference of array value type.
| using xtd::fixed_array< type_t, len >::const_reference |
Represents the const reference of array value type.
| using xtd::fixed_array< type_t, len >::iterator |
Represents the iterator of array value type.
| using xtd::fixed_array< type_t, len >::const_iterator |
Represents the const iterator of array value type.
| using xtd::fixed_array< type_t, len >::pointer |
Represents the pointer of array value type.
| using xtd::fixed_array< type_t, len >::const_pointer |
Represents the const pointer of array value type.
| using xtd::fixed_array< type_t, len >::size_type |
Represents the array size type (usually xtd::size).
| using xtd::fixed_array< type_t, len >::difference_type |
Represents the array difference type (usually xtd::ptrdiff).
| using xtd::fixed_array< type_t, len >::reverse_iterator |
Represents the reverse iterator of array value type.
| using xtd::fixed_array< type_t, len >::const_reverse_iterator |
Represents the const reverse iterator of array value type.
|
inlinevirtual |
Returns a reference to the last element in the container.
|
inlinevirtual |
Returns a reference to the last element in the container.
|
inlinenoexcept |
Returns an iterator to the first element of the enumerable.
|
inlinenoexcept |
Returns an iterator to the first element of the enumerable.
|
inlinenoexcept |
Returns an iterator to the first element of the enumerable.
|
inlinenoexcept |
Returns an iterator to the element following the last element of the enumerable.
|
inlinenoexcept |
Gets the number of elements contained in the xtd::collections::generic::list <type_t>.
|
inlinenoexcept |
Returns pointer to the underlying array serving as element storage.
|
inlinenoexcept |
Returns pointer to the underlying array serving as element storage.
|
inlinevirtualnoexcept |
Checks if the container has no elements, i.e. whether xtd::array::begin() == xtd::array::end().
true if the container is empty, false otherwise.
|
inlinenoexcept |
Returns an iterator to the element following the last element of the enumerable.
|
inlinenoexcept |
Returns an iterator to the element following the last element of the enumerable.
|
inlinevirtual |
Returns a reference to the first element in the container.
|
inlinevirtual |
Returns a reference to the first element in the container.
|
inlinevirtualnoexcept |
Returns the underlying base type items.
|
inlinevirtualnoexcept |
Returns the underlying base type items.
|
inlinevirtualnoexcept |
Gets a size that represents the total number of elements in all the dimensions of the array.
|
inlinenoexcept |
Returns the number of elements in the container, i.e. std::distance(xtd::array::begin(), xtd::array::end()).
|
inlinevirtual |
Returns a reference to the element at specified location pos, with bounds checking.
| index | The position of the element to return. |
| std::out_of_range | If pos is not within the range of the container. |
|
inlinevirtual |
Returns a reference to the element at specified location pos, with bounds checking.
| index | The position of the element to return. |
| std::out_of_range | If pos is not within the range of the container. |
|
inlinenoexcept |
Clears the contents of this xtd::span <type> object.
|
inline |
Fills the elements of this span with a specified value.
| value | The value to assign to each element of the span. |
|
inlinevirtualnoexcept |
Copies the elements of the xtd::collections::generic::list <type_t> to a new array.
|
inlineoverridevirtualnoexcept |
Returns a xtd::string that represents the current object.
Reimplemented from xtd::object.
|
inline |
Returns a reference to the element at specified location index.
| index | The position of the element to return. |
| std::out_of_range | If `index` is not within the range of the container. |
|
inline |
Returns a reference to the element at specified location index.
| index | The position of the element to return. |