template<typename type_t>
class xtd::collections::generic::enumerable_generator< type_t >
Represents an enumerable enumerable_generator.
- Namespace
- xtd::collections::generic
- Library
- xtd.core
|
|
| enumerable_generator (const enumerable_generator &other)=delete |
| |
|
enumerable_generator & | operator= (const enumerable_generator &other)=delete |
| |
|
| enumerable_generator (enumerable_generator &&other) noexcept |
| |
|
enumerable_generator & | operator= (enumerable_generator &&other) noexcept |
| |
| xtd::collections::generic::enumerator< type_t > | get_enumerator () const override |
| | Returns an enumerator that iterates through a collection.
|
| |
| virtual auto | begin () const -> const_iterator |
| | Returns an iterator to the first element of the enumerable.
|
| |
| virtual auto | begin () -> iterator |
| | Returns an iterator to the first element of the enumerable.
|
| |
| virtual auto | cbegin () const -> const_iterator |
| | Returns an iterator to the first element of the enumerable.
|
| |
| virtual auto | cend () const -> const_iterator |
| | Returns an iterator to the element following the last element of the enumerable.
|
| |
| virtual auto | end () const -> const_iterator |
| | Returns an iterator to the element following the last element of the enumerable.
|
| |
| virtual auto | end () -> iterator |
| | Returns an iterator to the element following the last element of the enumerable.
|
| |
| auto | aggregate (const std::function< type_t(const type_t &, const type_t &)> &func) const -> type_t |
| | Applies an accumulator function over a sequence.
|
| |
| auto | aggregate (const type_t &seed, const std::function< type_t(const type_t &, const type_t &)> &func) const -> type_t |
| | Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
| |
| auto | aggregate (const accumulate_t &seed, const std::function< accumulate_t(const accumulate_t &, const type_t &)> &func) const -> accumulate_t |
| | Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
| |
| auto | aggregate (const type_t &seed, const std::function< type_t(const type_t &, const type_t &)> &func, const std::function< type_t(const type_t &)> &result_selector) const -> type_t |
| | Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
| |
| auto | aggregate (const accumulate_t &seed, const std::function< accumulate_t(const accumulate_t &, const type_t &)> &func, const std::function< result_t(const accumulate_t &)> &result_selector) const -> result_t |
| | Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
| |
| auto | all (const std::function< bool(const type_t &)> &predicate) const -> bool |
| | Determines whether all elements of a sequence satisfy a condition.
|
| |
| auto | any () const noexcept -> bool |
| | Determines whether a sequence contains any elements.
|
| |
| auto | any (const std::function< bool(const type_t &)> &predicate) const -> bool |
| | Determines whether any element of a sequence satisfies a condition.
|
| |
| auto | append (const type_t &element) const noexcept |
| | Appends a value to the end of the sequence.
|
| |
| auto | as_enumerable () const noexcept |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| |
| auto | average () const noexcept |
| | Computes the average of a sequence of source_t values.
|
| |
| auto | cast () const noexcept |
| | Casts the elements of an xtd::collections::generic::ienumerable to the specified type.
|
| |
| auto | chunk (xtd::size size) const |
| | Splits the elements of a sequence into chunks of size at most size.
|
| |
| auto | concat (const ienumerable< type_t > &second) const noexcept |
| | Concatenates two sequences.
|
| |
| auto | contains (const type_t &value) const noexcept -> bool |
| | Determines whether a sequence contains a specified element by using the default equality comparer.
|
| |
| auto | contains (const type_t &value, const xtd::collections::generic::iequality_comparer< type_t > &comparer) const noexcept -> bool |
| | Determines whether a sequence contains a specified element by using a specified equality comparer.
|
| |
| auto | count () const noexcept -> xtd::size |
| | Returns the number of elements in current sequence.
|
| |
| auto | count (const std::function< bool(const type_t &)> &predicate) const noexcept -> xtd::size |
| | Returns a number that represents how many elements in the specified sequence satisfy a condition.
|
| |
| auto | count (const type_t &value) const noexcept -> xtd::size |
| | Returns the number of elements with the specified value.
|
| |
| auto | count_by (const std::function< key_t(const type_t &)> &key_selector) const noexcept |
| | Returns the count of elements in the current sequence grouped by key.
|
| |
| auto | count_by (const std::function< key_t(const type_t &)> &key_selector, const xtd::collections::generic::iequality_comparer< key_t > &key_comparer) const noexcept |
| | Returns the count of elements in the current sequence grouped by key.
|
| |
| auto | default_if_empty () const noexcept |
| | Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the current sequence is empty.
|
| |
| auto | default_if_empty (const type_t &default_value) const noexcept |
| | Returns the elements of the specified sequence or the specified value in a singleton collection if the current sequence is empty.
|
| |
| auto | distinct () const noexcept |
| | Returns distinct elements from a sequence by using the default equality comparer to compare values.
|
| |
| auto | distinct (const xtd::collections::generic::iequality_comparer< type_t > &comparer) const noexcept |
| | Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_comparer <type_t> to compare values.
|
| |
| auto | first_or_default (const std::function< bool(const type_t &)> &predicate, const type_t &default_value) const noexcept -> type_t |
| | Returns the first element of the sequence that satisfies a condition, or a specified default value if no such element is found.
|
| |
| auto | first_or_default (const std::function< bool(const type_t &)> &predicate) const noexcept -> type_t |
| | Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
| |
| auto | first_or_default (const type_t default_value) const noexcept -> type_t |
| | Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
| |
| auto | first_or_default () const noexcept -> type_t |
| | Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
| |
| auto | order () const |
| | Sorts the elements of a sequence in ascending order.
|
| |
| auto | order (const xtd::collections::generic::icomparer< type_t > &comparer) const |
| | Sorts the elements of a sequence in ascending order.
|
| |
| auto | order_by (const std::function< type_t(const type_t &)> &key_selector) const |
| | Sorts the elements of a sequence in ascending order according to a key.
|
| |
| auto | order_by (const std::function< key_t(const type_t &)> &key_selector) const |
| | Sorts the elements of a sequence in ascending order according to a key.
|
| |
| auto | order_by_descending (const std::function< key_t(const type_t &)> &key_selector) const |
| | Sorts the elements of a sequence in descending order according to a key.
|
| |
| auto | order_by_descending (const std::function< type_t(const type_t &)> &key_selector) const |
| | Sorts the elements of a sequence in descending order according to a key.
|
| |
| auto | select (const std::function< result_t(const type_t &)> &selector) const |
| | Projects each element of a sequence into a new form.
|
| |
| auto | select (const std::function< type_t(const type_t &)> &selector) const |
| | Projects each element of a sequence into a new form.
|
| |
| auto | select (const std::function< result_t(const type_t &, xtd::size index)> &selector) const |
| | Projects each element of a sequence into a new form by incorporating the element's index.
|
| |
| auto | select (const std::function< type_t(const type_t &, xtd::size index)> &selector) const |
| | Projects each element of a sequence into a new form by incorporating the element's index.
|
| |
| auto | to_array () const noexcept -> xtd::array< type_t > |
| | Creates a xtd::array <type_t> from an xtd::collections::generic::ienumerable <type_t>.
|
| |
| auto | to_list () const noexcept -> xtd::collections::generic::list< type_t > |
| | Creates a xtd::collections::generic::list <type_t> from an xtd::collections::generic::ienumerable <type_t>.
|
| |
| auto | where (const std::function< bool(const type_t &)> &predicate) const |
| | Filters a sequence of values based on a predicate.
|
| |
| auto | where (const std::function< bool(const type_t &, xtd::size)> &predicate) const |
| | Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
|
| |
|
| using | value_type |
| | Represents the xtd::collections::generic::ienumerable value type.
|
| |
| using | iterator |
| | Represents the iterator of xtd::collections::generic::ienumerable value type.
|
| |
| using | const_iterator |
| | Represents the const iterator of xtd::collections::generic::ienumerable value type.
|
| |
| using | iterator |
| | Represents the iterator of enumerable value type.
|
| |
| using | const_iterator |
| | Represents the const iterator of enumerable value type.
|
| |
| using | enumerable_type |
| | Represents the ienumerable enumerable type.
|
| |
| using | source_type |
| | Represents the ienumerable source type.
|
| |
| using | ienumerable |
| | Represents the ienumerable value type.
|
| |
| using | list |
| | Represents the list value type.
|
| |
| static auto | to_const_iterator (typename source_collection_t::const_iterator &value, const source_collection_t &source_collection, const target_collection_t &target_collection) noexcept -> typename target_collection_t::const_iterator |
| | Converts source iterator to target iterator.
|
| |
| static auto | to_const_iterator (typename source_collection_t::const_iterator &value, source_collection_t &source_collection, target_collection_t &target_collection) noexcept -> typename target_collection_t::const_iterator |
| | Converts source iterator to target iterator.
|
| |
| static auto | to_iterator (typename source_collection_t::const_iterator &value, const source_collection_t &source_collection, const target_collection_t &target_collection) noexcept -> typename target_collection_t::const_iterator |
| | Converts source iterator to target iterator.
|
| |
| static auto | to_iterator (typename source_collection_t::iterator &value, const source_collection_t &source_collection, const target_collection_t &target_collection) noexcept -> typename target_collection_t::iterator |
| | Converts source iterator to target iterator.
|
| |
| static auto | to_iterator (typename source_collection_t::const_iterator &value, source_collection_t &source_collection, target_collection_t &target_collection) noexcept -> typename target_collection_t::const_iterator |
| | Converts source iterator to target iterator.
|
| |
| static auto | to_iterator (typename source_collection_t::iterator &value, source_collection_t &source_collection, target_collection_t &target_collection) noexcept -> typename target_collection_t::iterator |
| | Converts source iterator to target iterator.
|
| |