Internal enumarable iterators definition.
begin
and end
methods needed to be able to iterate the collection as for example : Public Aliases | |
using | iterator = enumerable_iterator |
Represents the iterator of enumarable value type. | |
using | const_iterator = const enumerable_iterator |
Represents the const iterator of enumarable value type. | |
Public Methods | |
virtual const_iterator | begin () const |
Returns an iterator to the first element of the enumarable. | |
virtual iterator | begin () |
Returns an iterator to the first element of the enumarable. | |
virtual const_iterator | cbegin () const |
Returns an iterator to the first element of the enumarable. | |
virtual const_iterator | cend () const |
Returns an iterator to the element following the last element of the enumarable. | |
virtual const_iterator | end () const |
Returns an iterator to the element following the last element of the enumarable. | |
virtual iterator | end () |
Returns an iterator to the element following the last element of the enumarable. | |
Public Static Methods | |
template<class source_collection_t , class target_collection_t > | |
static target_collection_t::const_iterator | to_iterator (typename source_collection_t::const_iterator &value, const source_collection_t &source_collection, const target_collection_t &target_collection) noexcept |
Converts source iterator to target iterator. | |
template<class source_collection_t , class target_collection_t > | |
static target_collection_t::iterator | to_iterator (typename source_collection_t::iterator &value, const source_collection_t &source_collection, const target_collection_t &target_collection) noexcept |
Converts source iterator to target iterator. | |
template<class source_collection_t , class target_collection_t > | |
static target_collection_t::const_iterator | to_iterator (typename source_collection_t::const_iterator &value, source_collection_t &source_collection, target_collection_t &target_collection) noexcept |
Converts source iterator to target iterator. | |
template<class source_collection_t , class target_collection_t > | |
static target_collection_t::iterator | to_iterator (typename source_collection_t::iterator &value, source_collection_t &source_collection, target_collection_t &target_collection) noexcept |
Converts source iterator to target iterator. | |
using xtd::collections::generic::extensions::enumerable_iterators< type_t, enumerable_t, iterator_tag_t >::iterator = enumerable_iterator |
Represents the iterator of enumarable value type.
using xtd::collections::generic::extensions::enumerable_iterators< type_t, enumerable_t, iterator_tag_t >::const_iterator = const enumerable_iterator |
Represents the const iterator of enumarable value type.
|
inlinevirtual |
Returns an iterator to the first element of the enumarable.
Reimplemented in xtd::basic_array< type_t, allocator_t >, xtd::basic_array< byte, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< value_type, allocator_t >, xtd::basic_array< xtd::array< xtd::byte >, allocator_t >, xtd::basic_array< xtd::basic_string, allocator_t >, xtd::basic_array< xtd::byte, allocator_t >, xtd::basic_array< xtd::drawing::color, allocator_t >, xtd::basic_array< xtd::drawing::imaging::encoder_parameter, allocator_t >, xtd::basic_array< xtd::net::ip_address, allocator_t >, xtd::basic_array< xtd::string, allocator_t >, xtd::basic_array< xtd::uint16, allocator_t >, xtd::collections::bit_array, xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >, xtd::collections::generic::list< type_t, allocator_t >, xtd::collections::generic::list< byte >, xtd::collections::generic::list< int32 >, xtd::collections::generic::list< xtd::byte >, xtd::collections::generic::list< xtd::drawing::color >, xtd::collections::generic::list< xtd::forms::style_sheets::shadow >, xtd::collections::generic::list< xtd::shared_ptr_object< xtd::forms::menu_item > >, xtd::collections::generic::list< xtd::sptr< xtd::diagnostics::trace_listener > >, xtd::collections::generic::list< xtd::time_zone_info::adjustement_rule >, xtd::collections::generic::list< xtd::tunit::test >, and xtd::basic_string< char_t, traits_t, allocator_t >.
|
inlinevirtual |
Returns an iterator to the first element of the enumarable.
Reimplemented in xtd::basic_array< type_t, allocator_t >, xtd::basic_array< byte, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< value_type, allocator_t >, xtd::basic_array< xtd::array< xtd::byte >, allocator_t >, xtd::basic_array< xtd::basic_string, allocator_t >, xtd::basic_array< xtd::byte, allocator_t >, xtd::basic_array< xtd::drawing::color, allocator_t >, xtd::basic_array< xtd::drawing::imaging::encoder_parameter, allocator_t >, xtd::basic_array< xtd::net::ip_address, allocator_t >, xtd::basic_array< xtd::string, allocator_t >, xtd::basic_array< xtd::uint16, allocator_t >, xtd::collections::bit_array, xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >, xtd::collections::generic::list< type_t, allocator_t >, xtd::collections::generic::list< byte >, xtd::collections::generic::list< int32 >, xtd::collections::generic::list< xtd::byte >, xtd::collections::generic::list< xtd::drawing::color >, xtd::collections::generic::list< xtd::forms::style_sheets::shadow >, xtd::collections::generic::list< xtd::shared_ptr_object< xtd::forms::menu_item > >, xtd::collections::generic::list< xtd::sptr< xtd::diagnostics::trace_listener > >, xtd::collections::generic::list< xtd::time_zone_info::adjustement_rule >, and xtd::collections::generic::list< xtd::tunit::test >.
|
inlinevirtual |
Returns an iterator to the first element of the enumarable.
Reimplemented in xtd::basic_array< type_t, allocator_t >, xtd::basic_array< byte, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< value_type, allocator_t >, xtd::basic_array< xtd::array< xtd::byte >, allocator_t >, xtd::basic_array< xtd::basic_string, allocator_t >, xtd::basic_array< xtd::byte, allocator_t >, xtd::basic_array< xtd::drawing::color, allocator_t >, xtd::basic_array< xtd::drawing::imaging::encoder_parameter, allocator_t >, xtd::basic_array< xtd::net::ip_address, allocator_t >, xtd::basic_array< xtd::string, allocator_t >, xtd::basic_array< xtd::uint16, allocator_t >, xtd::collections::bit_array, xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >, xtd::collections::generic::list< type_t, allocator_t >, xtd::collections::generic::list< byte >, xtd::collections::generic::list< int32 >, xtd::collections::generic::list< xtd::byte >, xtd::collections::generic::list< xtd::drawing::color >, xtd::collections::generic::list< xtd::forms::style_sheets::shadow >, xtd::collections::generic::list< xtd::shared_ptr_object< xtd::forms::menu_item > >, xtd::collections::generic::list< xtd::sptr< xtd::diagnostics::trace_listener > >, xtd::collections::generic::list< xtd::time_zone_info::adjustement_rule >, xtd::collections::generic::list< xtd::tunit::test >, and xtd::basic_string< char_t, traits_t, allocator_t >.
|
inlinevirtual |
Returns an iterator to the element following the last element of the enumarable.
Reimplemented in xtd::basic_array< type_t, allocator_t >, xtd::basic_array< byte, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< value_type, allocator_t >, xtd::basic_array< xtd::array< xtd::byte >, allocator_t >, xtd::basic_array< xtd::basic_string, allocator_t >, xtd::basic_array< xtd::byte, allocator_t >, xtd::basic_array< xtd::drawing::color, allocator_t >, xtd::basic_array< xtd::drawing::imaging::encoder_parameter, allocator_t >, xtd::basic_array< xtd::net::ip_address, allocator_t >, xtd::basic_array< xtd::string, allocator_t >, xtd::basic_array< xtd::uint16, allocator_t >, xtd::collections::bit_array, xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >, xtd::collections::generic::list< type_t, allocator_t >, xtd::collections::generic::list< byte >, xtd::collections::generic::list< int32 >, xtd::collections::generic::list< xtd::byte >, xtd::collections::generic::list< xtd::drawing::color >, xtd::collections::generic::list< xtd::forms::style_sheets::shadow >, xtd::collections::generic::list< xtd::shared_ptr_object< xtd::forms::menu_item > >, xtd::collections::generic::list< xtd::sptr< xtd::diagnostics::trace_listener > >, xtd::collections::generic::list< xtd::time_zone_info::adjustement_rule >, xtd::collections::generic::list< xtd::tunit::test >, and xtd::basic_string< char_t, traits_t, allocator_t >.
|
inlinevirtual |
Returns an iterator to the element following the last element of the enumarable.
Reimplemented in xtd::basic_array< type_t, allocator_t >, xtd::basic_array< byte, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< value_type, allocator_t >, xtd::basic_array< xtd::array< xtd::byte >, allocator_t >, xtd::basic_array< xtd::basic_string, allocator_t >, xtd::basic_array< xtd::byte, allocator_t >, xtd::basic_array< xtd::drawing::color, allocator_t >, xtd::basic_array< xtd::drawing::imaging::encoder_parameter, allocator_t >, xtd::basic_array< xtd::net::ip_address, allocator_t >, xtd::basic_array< xtd::string, allocator_t >, xtd::basic_array< xtd::uint16, allocator_t >, xtd::collections::bit_array, xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >, xtd::collections::generic::list< type_t, allocator_t >, xtd::collections::generic::list< byte >, xtd::collections::generic::list< int32 >, xtd::collections::generic::list< xtd::byte >, xtd::collections::generic::list< xtd::drawing::color >, xtd::collections::generic::list< xtd::forms::style_sheets::shadow >, xtd::collections::generic::list< xtd::shared_ptr_object< xtd::forms::menu_item > >, xtd::collections::generic::list< xtd::sptr< xtd::diagnostics::trace_listener > >, xtd::collections::generic::list< xtd::time_zone_info::adjustement_rule >, xtd::collections::generic::list< xtd::tunit::test >, and xtd::basic_string< char_t, traits_t, allocator_t >.
|
inlinevirtual |
Returns an iterator to the element following the last element of the enumarable.
Reimplemented in xtd::basic_array< type_t, allocator_t >, xtd::basic_array< byte, allocator_t >, xtd::basic_array< type_t, allocator_t >, xtd::basic_array< value_type, allocator_t >, xtd::basic_array< xtd::array< xtd::byte >, allocator_t >, xtd::basic_array< xtd::basic_string, allocator_t >, xtd::basic_array< xtd::byte, allocator_t >, xtd::basic_array< xtd::drawing::color, allocator_t >, xtd::basic_array< xtd::drawing::imaging::encoder_parameter, allocator_t >, xtd::basic_array< xtd::net::ip_address, allocator_t >, xtd::basic_array< xtd::string, allocator_t >, xtd::basic_array< xtd::uint16, allocator_t >, xtd::collections::bit_array, xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >, xtd::collections::generic::list< type_t, allocator_t >, xtd::collections::generic::list< byte >, xtd::collections::generic::list< int32 >, xtd::collections::generic::list< xtd::byte >, xtd::collections::generic::list< xtd::drawing::color >, xtd::collections::generic::list< xtd::forms::style_sheets::shadow >, xtd::collections::generic::list< xtd::shared_ptr_object< xtd::forms::menu_item > >, xtd::collections::generic::list< xtd::sptr< xtd::diagnostics::trace_listener > >, xtd::collections::generic::list< xtd::time_zone_info::adjustement_rule >, and xtd::collections::generic::list< xtd::tunit::test >.
|
inlinestaticnoexcept |
Converts source iterator to target iterator.
value | The source iterator to convert. |
source | The source collection from which the source iterator originates. |
target_collection | The target collection from which the target iterator originates. |
std::distance(source_collection.begin(), value);
. Then simply move the target iterator from target_collection.begin();
.
|
inlinestaticnoexcept |
Converts source iterator to target iterator.
value | The source iterator to convert. |
source | The source collection from which the source iterator originates. |
target_collection | The target collection from which the target iterator originates. |
std::distance(source_collection.begin(), value);
. Then simply move the target iterator from target_collection.begin();
.
|
inlinestaticnoexcept |
Converts source iterator to target iterator.
value | The source iterator to convert. |
source | The source collection from which the source iterator originates. |
target_collection | The target collection from which the target iterator originates. |
std::distance(source_collection.begin(), value);
. Then simply move the target iterator from target_collection.begin();
.
|
inlinestaticnoexcept |
Converts source iterator to target iterator.
value | The source iterator to convert. |
source | The source collection from which the source iterator originates. |
target_collection | The target collection from which the target iterator originates. |
std::distance(source_collection.begin(), value);
. Then simply move the target iterator from target_collection.begin();
.