|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Doubly-linked list (defined in tpl_dynList.H). More...
#include <htlist.H>
Classes | |
| class | Iterator |
| Iterator on the items of list. More... | |
Public Types | |
| using | Item_Type = T |
| using | Key_Type = T |
| using | Const_Iterator = Aleph::Const_Iterator< Iterator > |
| Read-only iterator: the iterator of a constant container. | |
Public Types inherited from StlAlephIterator< SetName > | |
| using | iterator = StlIterator< SetName > |
| using | const_iterator = StlConstIterator< SetName > |
Public Member Functions | |
| Slinknc * | get_head () const noexcept=delete |
| Slinknc * | get_tail () const noexcept=delete |
| DynList & | swap (DynList &l) noexcept |
| size_t | size () const noexcept |
| Return the number of items of the list, in constant time. | |
| DynList () noexcept | |
| Initialize an empty list. It allocates nothing. | |
| DynList (const DynList &l) | |
Initialize a list with a copy of all the items of list l | |
| T & | insert (const T &item) |
| T & | insert (T &&item) |
| Insert a new item by movement. | |
| T & | push (const T &item) |
See insert(const T & item). | |
| T & | push (T &&item) |
See insert(T && item). | |
| T & | put (const T &item) |
See insert(const T & item). | |
| T & | put (T &&item) |
See insert(T && item). | |
| T & | append (const T &item) |
| T & | append (T &&item) |
| T | remove_ne () noexcept(std::is_nothrow_move_constructible_v< T >) |
| Remove the first item of the list, which must not be empty. | |
| T | remove () |
| Remove the first item of the list. | |
| T | remove_first_ne () noexcept(std::is_nothrow_move_constructible_v< T >) |
See remove_ne(). | |
| T | remove_first () |
See remove(). | |
| T | pop () |
See remove(). | |
| T | get () |
See remove(). | |
| T & | get_last_ne () noexcept |
| Return the last item of the list without exception. | |
| const T & | get_last_ne () const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const. | |
| T & | get_first_ne () noexcept |
| Return the first item of the list without exception. | |
| const T & | get_first_ne () const noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const. | |
| T & | get_last () |
| Return the last item of the list. | |
| const T & | get_last () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const. | |
| T & | get_first () |
| Return the first item of the list. | |
| const T & | get_first () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const. | |
| T & | top () |
See get_first(). | |
| const T & | top () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const. | |
| void | empty () noexcept |
| empty the list | |
| void | clear () noexcept |
| Empties the container. | |
| ~DynList () | |
| DynList & | reverse () noexcept |
| DynList & | rev () noexcept |
| DynList | reverse () const |
Return a reversed copy of this. | |
| DynList | rev () const |
| template<class Equal = std::equal_to<T>> | |
| T | remove_ne (Equal eq) noexcept |
| template<class Equal = std::equal_to<T>> | |
| T | remove (Equal eq) |
| Remove the first element matching an equality criteria. | |
| DynList (DynList &&l) noexcept | |
Initialize the list with all the items of l moved to this. | |
| DynList & | operator= (const DynList &l) |
Assign to this a copy of l | |
| DynList & | operator= (DynList &&l) noexcept |
Assign to this by movement the list l | |
| DynList & | append (DynList &&list) noexcept |
Append listat the end of this by movement. | |
| DynList & | insert (DynList &&list) noexcept |
Insert listat the beginning of this by movement. | |
| DynList & | append (const DynList &list) |
Append to this a copy of list. | |
| DynList & | insert (const DynList &list) |
Insert to this a copy of list. | |
| void | concat (DynList &l) noexcept |
Append the items of l to this, in constant time; l becomes empty. | |
| void | concat_list (DynList &l) noexcept |
See concat(DynList & l). | |
| void | cut (Slinknc *link, DynList &list) noexcept |
Move to list, which must be empty, the items that follow the node link of this. | |
| void | cut_list (Slinknc *link, DynList &list) noexcept |
See cut(Slinknc * link, DynList & list). | |
| Slinknc * | remove_head_ne () noexcept |
| Remove the first node of the list, which must not be empty; the caller takes the node, and its item. | |
| Slinknc * | remove_head () |
| Remove the first node of the list; the caller takes the node, and its item. | |
| void | remove_all_and_delete () noexcept |
| Delete all the items, as empty() does. | |
| void | reset () noexcept |
| Forget all the nodes of the list, without deleting them, as HTList::reset() does; the list becomes empty. | |
| size_t | split_list_ne (DynList &l, DynList &r) noexcept |
| Split the list in two. | |
| size_t | split_list (DynList &l, DynList &r) noexcept |
See split_list_ne(DynList & l, DynList & r). | |
| size_t | split (DynList &l, DynList &r) noexcept |
See split_list_ne(DynList & l, DynList & r). | |
| T & | get (const size_t i) |
Obtains a modifiable reference to the i-th item of this. | |
| T & | operator[] (const size_t &i) |
Array-style access to the i-th item. Equivalent to get(i). | |
Public Member Functions inherited from Aleph::HTList | |
| HTList () noexcept | |
| void | reset () noexcept |
| constexpr bool | is_empty () const noexcept |
| bool | is_unitarian () const noexcept |
| Return true if the list contains exactly just one. | |
| bool | is_unitarian_or_empty () const noexcept |
| Return true if list contains one element or is empty. | |
| Slinknc * | get_head () const noexcept |
| Slinknc * | get_tail () const noexcept |
| Slinknc * | get_first () const noexcept |
| Slinknc * | get_first_ne () const noexcept |
| Return the first item of the list; the list must not be empty. | |
| Slinknc * | get_last () const noexcept |
Return the last item of the list (nullptr if the list is empty) | |
| HTList & | swap (HTList &l) noexcept |
| void | insert (Slinknc *link) noexcept |
| void | append (Slinknc *link) noexcept |
| void | append (HTList &l) noexcept |
| void | put (Slinknc *link) noexcept |
| void | concat (HTList &l) noexcept |
| Concat to 'this' all 'l' list; 'l' becomes empty. | |
| void | concat_list (HTList &l) noexcept |
See concat(HTList & l). | |
| void | insert (HTList &l) noexcept |
| Insert starting in link (contained in 'this' list) the. | |
| void | insert (Slinknc *link, HTList &list) noexcept |
Insert a list into this after one of its items. | |
| Slinknc * | remove_head_ne () noexcept |
| It deletes head element (first one). Return deleted. | |
| Slinknc * | remove_head () |
| Remove the header item from the list. | |
| Slinknc * | remove_first_ne () noexcept |
| Remove the header item from the list. | |
| Slinknc * | remove_first () |
| bool | remove (Slinknc *link) |
| void | push (Slinknc *link) noexcept |
| Slinknc * | pop () |
Remove the first item of this. | |
| Slinknc * | top () const |
| size_t | split_list (HTList &l, HTList &r) noexcept |
| It divides 'this' into two equal lists without modifying. | |
| size_t | split_list_ne (HTList &l, HTList &r) noexcept |
| size_t | split (HTList &l, HTList &r) noexcept |
See split_list(HTList & l, HTList & r). | |
| size_t | reverse () noexcept |
| It inverts all list elements. It returns list size. | |
| size_t | reverse_list () noexcept |
See reverse(). | |
| void | cut (Slinknc *link, HTList &list) noexcept |
| It cuts 'this' over 'link' element and it puts all. | |
| void | cut_list (Slinknc *link, HTList &list) noexcept |
See cut(Slinknc * link, HTList & list). | |
| void | remove_all_and_delete () noexcept |
| size_t | size () const noexcept |
| Count the number of elements of the list. | |
| void | rotate_left (size_t n) |
| Rotate to left the list n positions. | |
Public Member Functions inherited from GenericTraverse< Container > | |
| template<class Operation > requires Aleph::PredicateWith<Operation &, typename Aleph::concepts_detail::traverse_arg<Container, Operation>::type> | |
| bool | traverse (Operation &operation) noexcept(traverse_is_noexcept< Operation, typename Aleph::concepts_detail::traverse_arg< Container, Operation >::type, Container & >()) |
| Traverse the container via its iterator and performs a conditioned operation on each item. | |
| template<class Operation > requires Aleph::PredicateWith<Operation &, typename Aleph::concepts_detail::traverse_carg<Container, Operation>::type> | |
| bool | traverse (Operation &operation) const noexcept(traverse_is_noexcept< Operation, typename Aleph::concepts_detail::traverse_carg< Container, Operation >::type, const_source_t< Operation > >()) |
| Traverse a constant container; each item is handed out as a constant reference. | |
| template<class Operation > requires Aleph::PredicateWith<Operation &, typename Aleph::concepts_detail::traverse_carg<Container, Operation>::type> | |
| bool | traverse (Operation &&operation) const noexcept(traverse_is_noexcept< Operation, typename Aleph::concepts_detail::traverse_carg< Container, Operation >::type, const_source_t< Operation > >()) |
Overload of traverse(Operation &) const that accepts rvalues. | |
| template<class Operation > requires Aleph::PredicateWith<Operation &, typename Aleph::concepts_detail::traverse_arg<Container, Operation>::type> | |
| bool | traverse (Operation &&operation) noexcept(traverse_is_noexcept< Operation, typename Aleph::concepts_detail::traverse_arg< Container, Operation >::type, Container & >()) |
Overload of traverse(Operation &) that accepts rvalues. | |
Public Member Functions inherited from LocateFunctions< Container, Type > | |
| auto | get_it () |
| Return a properly initialized iterator positioned at the first item on the container. | |
| auto | get_it () const |
| Read-only iterator positioned at the first item. | |
| auto | get_it (const size_t pos) |
Return a properly initialized iterator positioned at the pos item on the container. | |
| auto | get_it (const size_t pos) const |
Read-only iterator positioned at the pos item. | |
| auto | get_itor () |
Alias of get_it(). | |
| auto | get_itor () const |
See get_itor(). | |
| template<class C = Container> requires Aleph::dry_detail::MutablyTraversable<C, Type> | |
| Type & | nth_ne (const size_t n) noexcept(Aleph::dry_detail::mutable_traversal_is_noexcept< C, Type >) |
| Return the n‑th element without bounds checking. | |
| const Type & | nth_ne (const size_t n) const noexcept(Aleph::dry_detail::const_traversal_is_noexcept< Container, Type >) |
Constant overload of nth_ne(size_t). | |
| template<class C = Container> requires Aleph::dry_detail::MutablyTraversable<C, Type> | |
| Type & | nth (const size_t n) |
| Return the n-th item of the container. | |
| const Type & | nth (const size_t n) const |
Const overload of nth(size_t). | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, Type &> | |
| and Aleph::dry_detail::MutablyTraversable< typename Aleph::concepts_detail::defer< Container, Operation >::type, Type > Type * | find_ptr (Operation &operation) noexcept(mutable_search_is_noexcept< Operation >()) |
| Find a pointer to an item in the container according to a searching criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| const Type * | find_ptr (Operation &operation) const noexcept(const_search_is_noexcept< Operation >()) |
Const overload of find_ptr(Operation&). | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| const Type * | find_ptr (Operation &&operation) const noexcept(const_search_is_noexcept< Operation >()) |
| Overload of find_ptr() const that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, Type &> | |
| and Aleph::dry_detail::MutablyTraversable< typename Aleph::concepts_detail::defer< Container, Operation >::type, Type > Type * | find_ptr (Operation &&operation) noexcept(mutable_search_is_noexcept< Operation >()) |
| Overload of find_ptr() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| size_t | find_index (Operation &operation) const noexcept(const_search_is_noexcept< Operation >()) |
| Find the position of an item in the container according to a searching criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| size_t | find_index (Operation &&operation) const noexcept(const_search_is_noexcept< Operation >()) |
| Overload of find_index() that accepts rvalues. | |
| template<class Operation , class T = Type> requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| and std::default_initializable< T > and std::copy_constructible< T > std::tuple< bool, Type > | find_item (Operation &operation) const noexcept(find_item_is_noexcept< Operation >()) |
| Safe sequential searching of an item matching a criterion. | |
| template<class Operation , class T = Type> requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| and std::default_initializable< T > and std::copy_constructible< T > std::tuple< bool, Type > | find_item (Operation &&operation) const noexcept(find_item_is_noexcept< Operation >()) |
| Overload of find_item() that accepts rvalues. | |
| template<class Operation , class T = Type> requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| and std::copy_constructible< T > std::optional< Type > | find_opt (Operation &operation) const |
| Copy of the first item satisfying a criterion, if any. | |
| template<class Operation , class T = Type> requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| and std::copy_constructible< T > std::optional< Type > | find_opt (Operation &&operation) const |
| Overload of find_opt() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const Type &> | |
| bool | contains_if (Operation &&operation) const noexcept(const_search_is_noexcept< Operation >()) |
| Test if an item satisfying a criterion is present in the container. | |
| template<class T = Type> requires requires(const T & a, const T & b) { { a == b } -> std::convertible_to<bool>; } | |
| bool | contains (const Type &item) const |
| Test if an item is present in the container using equality. | |
Public Member Functions inherited from SpecialCtors< Container, T > | |
| SpecialCtors ()=default | |
| Default constructor; it appends nothing. | |
| SpecialCtors (const SpecialCtors &)=default | |
| Copy constructor; the derived container copies its items. | |
| SpecialCtors (SpecialCtors &&) noexcept | |
| Move constructor; the derived container moves its items. | |
| SpecialCtors & | operator= (const SpecialCtors &)=default |
| Copy assignment; the derived container copies its items. | |
| SpecialCtors & | operator= (SpecialCtors &&) noexcept |
| Move assignment; the derived container moves its items. | |
| SpecialCtors (const Aleph::DynList< T > &l) | |
Build the container by inserting all items of the list l. | |
| template<class It > requires (not std::is_arithmetic_v<It> and requires(It it) { *it; ++it; it != it; }) | |
| SpecialCtors (It b, It e) | |
| Construct the container from a range of iterators. | |
| SpecialCtors (std::initializer_list< T > l) | |
| Construct the container from an initializer list. | |
Public Member Functions inherited from FunctionalMethods< Container, T > | |
| void | emplace (Args &&... args) |
| Appends a new element into the container by constructing it from the given args. | |
| void | emplace_end (Args &&... args) |
See emplace(Args && ... args). | |
| void | emplace_ins (Args &&... args) |
| template<typename... Args> requires ((std::convertible_to<Args &&, T> and ...) and (Aleph::InsertableWith<typename Aleph::concepts_detail::defer<Container, std::tuple<Args...>>::type, Item_Arg<Args>> and ...)) | |
| size_t | ninsert (Args &&... args) |
| Insert n variadic items. | |
| template<typename... Args> requires ((std::convertible_to<Args &&, T> and ...) and (Aleph::AppendableWith<typename Aleph::concepts_detail::defer<Container, std::tuple<Args...>>::type, Item_Arg<Args>> and ...)) | |
| size_t | nappend (Args &&... args) |
| Append n variadic items. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, const T &> | |
| void | for_each (Operation &operation) const |
| Traverse all the container and performs an operation on each element. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, const T &> | |
| void | for_each (Operation &&operation) const |
| Overload of for_each() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, const T &> | |
| void | each (Operation &operation) const |
| Alias of for_each(). | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, const T &> | |
| void | each (Operation &&operation) const |
| Alias of for_each() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, const T &> | |
| void | each (const size_t pos, const size_t slice, Operation &operation) const |
Traverse the container starting at pos taking one item every slice, performing an operation on each visited element. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, const T &> | |
| void | each (const size_t pos, const size_t slice, Operation &&operation) const |
See each(size_t pos, size_t slice, Operation & operation) const. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, T &> | |
| and Aleph::dry_detail::MutablyTraversable< typename Aleph::concepts_detail::defer< Container, Operation >::type, T > void | each (const size_t pos, const size_t slice, Operation &operation) |
Traverse the container starting at pos taking one item every slice, performing an operation that may modify each visited item. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, T &> | |
| and Aleph::dry_detail::MutablyTraversable< typename Aleph::concepts_detail::defer< Container, Operation >::type, T > void | each (const size_t pos, const size_t slice, Operation &&operation) |
See each(size_t pos, size_t slice, Operation & operation). | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, T &> | |
| and Aleph::dry_detail::MutablyTraversable< typename Aleph::concepts_detail::defer< Container, Operation >::type, T > void | mutable_for_each (Operation &operation) |
| Apply a mutable operation to each element of the container. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, T &> | |
| and Aleph::dry_detail::MutablyTraversable< typename Aleph::concepts_detail::defer< Container, Operation >::type, T > void | mutable_for_each (Operation &&operation) |
See mutable_for_each(Operation & operation). | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| bool | all (Operation &operation) const |
| Check if all the elements of the container satisfy a condition. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| bool | all (Operation &&operation) const |
| Overload of all() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| bool | exists (Operation &op) const |
| Test for existence in the container of an element satisfying a criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| bool | exists (Operation &&op) const |
| Overload of exists() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| bool | none (Operation &op) const |
| Test that no element satisfies a criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| bool | none (Operation &&op) const |
| Overload of none() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| size_t | count_if (Operation &op) const |
| Count the elements that satisfy a criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| size_t | count_if (Operation &&op) const |
| Overload of count_if() that accepts rvalues. | |
| Aleph::DynList< Aleph::dry_detail::map_result_t< R, Operation &, T > > | maps (Operation &op) const |
| Aleph::DynList< Aleph::dry_detail::map_result_t< R, Operation &, T > > | maps (Operation &&op) const |
| Aleph::DynList< Aleph::dry_detail::map_result_t< R, Operation &, T > > | maps_if (Prop prop, Operation &op) const |
| Aleph::DynList< Aleph::dry_detail::map_result_t< R, Operation &, T > > | maps_if (Prop prop, Operation &&op) const |
| Aleph::DynList< Aleph::dry_detail::map_result_t< R, Operation &, T > > | map (Operation &op) const |
| Aleph::DynList< Aleph::dry_detail::map_result_t< R, Operation &, T > > | map (Operation &&op) const |
| Aleph::DynList< Aleph::dry_detail::map_result_t< R, Operation &, T > > | map_if (Prop prop, Operation &op) const |
| Aleph::DynList< Aleph::dry_detail::map_result_t< R, Operation &, T > > | map_if (Prop prop, Operation &&op) const |
| template<class Operation > requires Aleph::InvocableWith<Operation &, const T &> | |
| auto | flat_map (Operation &op) const |
| Map each element to a container and concatenate the results. | |
| template<class Operation > requires Aleph::InvocableWith<Operation &, const T &> | |
| auto | flat_map (Operation &&op) const |
| Overload of flat_map() that accepts rvalues. | |
| Aleph::DynList< T > | to_dynlist () const |
| Convert container to DynList. | |
| std::vector< T > | to_vector () const |
| Convert container to std::vector. | |
| template<typename Acc = T, class Op > requires Aleph::dry_detail::FoldOperation<Op, Acc, T> | |
| Acc | foldl (const Acc &init, Op &op) const |
| Fold the elements of the container to a specific result. | |
| template<typename Acc = T, class Op > requires Aleph::dry_detail::FoldOperation<Op, Acc, T> | |
| Acc | foldl (const Acc &init, Op &&op) const |
| Overload of foldl() that accepts rvalues. | |
| template<typename Acc = T, class Op > requires Aleph::dry_detail::FoldOperation<Op, Acc, T> | |
| Acc | fold_left (const Acc &init, Op &op) const |
| Alias for foldl(). | |
| template<typename Acc = T, class Op > requires Aleph::dry_detail::FoldOperation<Op, Acc, T> | |
| Acc | fold_left (const Acc &init, Op &&op) const |
| Overload of fold_left() that accepts rvalues. | |
| template<class Operation > requires Aleph::dry_detail::FoldOperation<Operation, T, T> | |
| T | fold (const T &init, Operation &operation) const |
| Simplified version of foldl() where the folded type is the same type of elements stored in the container. | |
| template<class Operation > requires Aleph::dry_detail::FoldOperation<Operation, T, T> | |
| T | fold (const T &init, Operation &&operation) const |
| Overload of fold() that accepts rvalues. | |
| template<typename Acc = T, class Op > requires Aleph::dry_detail::FoldRightOperation<Op, Acc, T> | |
| Acc | foldr (const Acc &init, Op &op) const |
| Fold the elements from the last to the first. | |
| template<typename Acc = T, class Op > requires Aleph::dry_detail::FoldRightOperation<Op, Acc, T> | |
| Acc | foldr (const Acc &init, Op &&op) const |
| Overload of foldr() that accepts rvalues. | |
| template<class Op , class U = T> requires Aleph::dry_detail::FoldOperation<Op, T, T> | |
| and std::copy_constructible< U > std::optional< T > | reduce (Op &op) const |
| Fold the elements with no initial value. | |
| template<class Op , class U = T> requires Aleph::dry_detail::FoldOperation<Op, T, T> | |
| and std::copy_constructible< U > std::optional< T > | reduce (Op &&op) const |
| Overload of reduce() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< T > | filter (Operation &operation) const |
| Filter the elements of a container according to a matching criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< T > | filter (Operation &&operation) const |
| Overload of filter() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< const T * > | ptr_filter (Operation &operation) const |
| Filter the elements of a container according to a matching criterion and return a pointer to the matched items in the container. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< const T * > | ptr_filter (Operation &&operation) const |
| Overload of ptr_filter() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< std::tuple< T, size_t > > | pfilter (Operation &operation) const |
| Filter the elements of a container according to a matching criterion and determine its positions respect to the traversal of container. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< std::tuple< T, size_t > > | pfilter (Operation &&operation) const |
| Overload of pfilter() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| std::pair< Aleph::DynList< T >, Aleph::DynList< T > > | partition (Operation &op) const |
| Exclusive partition of container according to a filter criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| std::pair< Aleph::DynList< T >, Aleph::DynList< T > > | partition (Operation &&op) const |
| Overload of partition() that accepts rvalues. | |
| std::pair< Aleph::DynList< T >, Aleph::DynList< T > > | partition (size_t n) const |
| Exclusive partition of container in the nth item. | |
| std::pair< Aleph::DynList< T >, Aleph::DynList< T > > | split_half () const |
| Split the container into two halves by alternating elements. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| std::tuple< Aleph::DynList< T >, Aleph::DynList< T > > | tpartition (Operation &op) const |
| Exclusive partition of container according to a filter criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| std::tuple< Aleph::DynList< T >, Aleph::DynList< T > > | tpartition (Operation &&op) const |
| Overload of tpartition() that accepts rvalues. | |
| size_t | length () const noexcept(Aleph::dry_detail::const_traversal_is_noexcept< Container, T >) |
| Count the number of elements of a container. | |
| Aleph::DynList< T > | rev () const |
| Return a list with the elements of container in reverse order respect to its traversal order. | |
| Aleph::DynList< T > | take (const size_t n) const |
| Return a list with the first n elements seen in the container during its traversal. | |
| Aleph::DynList< T > | take (size_t i, const size_t j, const size_t step=1) const |
Return a list with the elements at positions i, i + step, i + 2 step, ... that are not greater than j, respect to the traversal order. | |
| Aleph::DynList< T > | drop (const size_t n) const |
| Drop the first n elements seen in the container during its traversal. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< T > | take_while (Operation &op) const |
| The longest prefix of elements that satisfy a criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< T > | take_while (Operation &&op) const |
| Overload of take_while() that accepts rvalues. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< T > | drop_while (Operation &op) const |
| The elements after the longest prefix that satisfies a criterion. | |
| template<class Operation > requires Aleph::InvocablePredicateWith<Operation &, const T &> | |
| Aleph::DynList< T > | drop_while (Operation &&op) const |
| Overload of drop_while() that accepts rvalues. | |
| template<class C = Container> requires requires (C & c) { c.remove(); } | |
| void | mutable_drop (const size_t n) |
| Drop the first n elements seen from container. | |
Public Member Functions inherited from GenericItems< Container, T > | |
| Aleph::DynList< T > | items () const |
| Return a list of all the elements of a container sorted by traversal order. | |
| Aleph::DynList< T > | keys () const |
See items(). | |
Public Member Functions inherited from EqualSequenceMethod< Container > | |
| bool | equal_to (const Container &r) const |
Equality test between this and r. | |
Public Member Functions inherited from StlAlephIterator< SetName > | |
| iterator | begin () noexcept |
| Return an STL-compatible iterator to the first element. | |
| iterator | end () noexcept |
| Return an STL-compatible end iterator. | |
| const_iterator | begin () const noexcept |
| Return a const iterator to the first element. | |
| const_iterator | end () const noexcept |
| Return a const end iterator. | |
| const_iterator | cbegin () const noexcept |
| Return a const iterator to the first element. | |
| const_iterator | cend () const noexcept |
| Return a const end iterator. | |
Private Types | |
| using | CtorBase = SpecialCtors< DynList< T >, T > |
Private Member Functions | |
| T & | __insert (Snodenc< T > *p) noexcept |
| T & | __append (Snodenc< T > *p) noexcept |
| T | remove_first_whose_move_throws () |
Friends | |
| template<typename U > | |
| void | in_place_transpose (DynList< DynList< U > > &l) |
Additional Inherited Members | |
Static Public Member Functions inherited from FunctionalMethods< Container, T > | |
| template<typename... Items> requires ((std::convertible_to<Items &&, T> and ...) and (Aleph::AppendableWith<typename Aleph::concepts_detail::defer<Container, std::tuple<Items...>>::type, Item_Arg<Items>> and ...)) | |
| static Container | build (Items &&... items) |
| Build a container that holds the given items. | |
| template<class D , typename... Items> requires (std::derived_from<D, typename Aleph::concepts_detail::defer<Container, D>::type> and std::default_initializable<D> and (std::convertible_to<Items &&, T> and ...) and (Aleph::AppendableWith<typename Aleph::concepts_detail::defer<Container, std::tuple<D, Items...>>::type, Item_Arg<Items>> and ...)) | |
| static D | build_as (Items &&... items) |
Build a D, a class derived from the container, holding the given items. | |
Public Attributes inherited from FunctionalMethods< Container, T > | |
| template<typename... Args> requires (typename Aleph::concepts_detail::defer<Container, std::tuple<Args...>>::type & c, T && x) | |
| and { c.append(std::move(x)) | |
| Insert a new element into the container by constructing it from the given args. | |
| template<typename R = void, class Prop , class Operation > requires (Aleph::DynList<Aleph::dry_detail::map_result_t<R, Operation &, T>> & l, Operation & op, const T & item) | |
| and Aleph::InvocableWith< Operation &, const T & > | and { l.append(std::invoke(op, item)) |
| Conditional mapping of the elements of the container. | |
Private Attributes inherited from Aleph::htlist_detail::Item_Count | |
| size_t | num_items = 0 |
| The number of items of the list. | |
Doubly-linked list (defined in tpl_dynList.H).
Dynamic singly linked list with functional programming support.
Forward-declared here so functional algorithms can use DynList<T> as a default container without a circular include.
DynList<T> is a versatile singly linked list that combines efficient list operations with a rich set of functional programming methods inherited from the FunctionalMethods mixin.
This is one of the most commonly used containers in Aleph-w, providing:
| T | The type of elements stored in the list (default: int). |
HTList, as with a call qualified with HTList::, or through its nodes, as with Slinknc::insert() or remove_next(), does not update it, and leaves size() wrong.| using Aleph::DynList< T >::Const_Iterator = Aleph::Const_Iterator<Iterator> |
|
private |
| using Aleph::DynList< T >::Item_Type = T |
| using Aleph::DynList< T >::Key_Type = T |
|
inlinenoexcept |
|
inline |
|
inline |
Definition at line 1604 of file htlist.H.
References Aleph::DynList< T >::empty().
|
inlinenoexcept |
Initialize the list with all the items of l moved to this.
This constructor copies (by moving) all the items of list l. Consequently, no copy is done and the construction takes \(O(1)\).
l is a rvalue reference, take care of that if you are interested in to avoid the copy. So, if you have a lvalue reference to a list, use std::move(), upon your responsibility, if and only if you are absolutely sure that the list will not be needed after.| [in] | l | a rvalue containing a entire list. |
Definition at line 1825 of file htlist.H.
References l, and Aleph::DynList< T >::swap().
|
inlineprivatenoexcept |
Definition at line 1288 of file htlist.H.
References Aleph::HTList::append(), and Aleph::htlist_detail::Item_Count::num_items.
Referenced by Aleph::DynList< T >::append(), and Aleph::DynList< T >::append().
|
inlineprivatenoexcept |
Definition at line 1279 of file htlist.H.
References Aleph::HTList::insert(), and Aleph::htlist_detail::Item_Count::num_items.
Referenced by Aleph::DynList< T >::insert(), and Aleph::DynList< T >::insert().
|
inline |
Append to this a copy of list.
This version of append(l) traverses the items of l and appends them (copies) into this.
| [in] | list | list to be copied at the end |
| bad_alloc | if there is no enough memory |
Definition at line 1924 of file htlist.H.
References Aleph::DynList< T >::append(), and Aleph::copy().
|
inline |
Append a new item by copy.
Allocate memory for a new item, copy and append it at the end of the list.
| `bad_alloc` | if there is no enough memory |
Definition at line 1362 of file htlist.H.
References Aleph::DynList< T >::__append().
Referenced by ComplexArray::ComplexArray(), Container< Ctype >::Container(), List_of_25_items::List_of_25_items(), WorkersSet< WorkerFct >::WorkersSet(), Aleph::__compute_cut_nodes(), Aleph::__dfp_phase2_list(), Aleph::Gen_MultiPolynomial< Coefficient, MonomOrder >::_factorize_as_univariate_in_var(), Aleph::Const_Graph_View< GT >::adjacent_nodes(), Aleph::DynList< T >::append(), Aleph::Const_Graph_View< GT >::arcs(), Aleph::Path< GT >::arcs(), Aleph::Const_Graph_View< GT >::arcs(), Aleph::arcs(), Aleph::Const_Graph_View< GT >::arcs_map(), Aleph::binary_search_dup(), Aleph::binindex_dup(), Aleph::binindex_dup(), Aleph::BitArray::bits_list(), Aleph::bsearch_dup(), Aleph::bsearch_dup(), Aleph::bsearch_dup(), Aleph::Gen_Mo_On_Trees< GT, Policy >::build(), Aleph::Gen_Mo_On_Tree_Node< T, Policy >::build(), build_complete_bipartite(), build_complete_graph(), build_cycle(), Aleph::build_feasible_spanning_tree(), DynListSortTest::build_list(), DynDlistSortTest::build_list(), Aleph::build_perms(), build_point_set(), Aleph::Network_Simplex< Net >::build_spanning_tree(), Aleph::Build_Subgraph< GT, SA >::build_subgraph(), Aleph::k_shortest_paths_detail::build_suffix_state(), build_wheel(), Aleph::chromatic_number(), Aleph::VoronoiDiagramFromDelaunay::clipped_cells(), Aleph::VoronoiDiagramFortune::clipped_cells(), GraphCommon< GT, Node, Arc >::collect_arcs_if(), Aleph::complete_rows(), Aleph::k_shortest_paths_detail::compose_candidate(), Aleph::k_shortest_paths_detail::compose_general_candidate(), Aleph::Net_Sup_Dem_Graph< NodeT, ArcT >::compute_aux_net(), Aleph::compute_bipartite_all_components(), Aleph::compute_cut_nodes(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::compute_idom(), Aleph::Lengauer_Tarjan_Post_Dominators< GT, SA >::compute_ipdom(), Aleph::Unconnected_Components< GT, SA >::compute_lists(), Aleph::compute_min_cut(), Aleph::concat(), Aleph::DynList< T >::concat(), Aleph::DynList< T >::concat_list(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), create_list(), QueueTheadsPool< T >::create_thread(), Aleph::decompose_flow(), demo_advanced_algorithms(), demo_build(), demo_convex_hull_cities(), demo_convex_hull_performance(), demo_coverage_area(), demo_dynlist(), demo_fold(), demo_list_dynlist(), demo_performance(), demo_perm_predicates(), demo_permutations(), demo_practical(), demo_sieve_of_eratosthenes(), demo_simple_bloom_filter(), demo_subset_enumeration(), demo_transformation(), demo_transpose(), demo_traverse(), demo_vector_dynlist(), demo_zipping(), Aleph::deque_to_DynList(), Aleph::Gen_Polynomial< Coefficient >::divide_scalar_inplace(), FunctionalMethods< Container, T >::drop(), Aleph::drop_while(), FunctionalMethods< Container, T >::drop_while(), Aleph::dynarray_to_DynList(), Aleph::dyndlist_to_DynList(), Aleph::enumerate(), Aleph::enumerate_tuple(), Aleph::eppstein_k_shortest_paths(), extract_from_stl_container(), Aleph::Gen_Polynomial< Coefficient >::factor_mod_p(), Aleph::Gen_MultiPolynomial< Coefficient, MonomOrder >::factor_recombination(), Aleph::Gen_MultiPolynomial< Coefficient, MonomOrder >::factorize(), Aleph::Gen_Polynomial< Coefficient >::factorize(), Aleph::Karger_Min_Cut< GT, SA >::fast(), Aleph::FunctionalMixin< Derived, Type >::filter(), FunctionalMethods< Container, T >::filter(), Aleph::Const_Graph_View< GT >::filter_arcs(), Aleph::Const_Graph_View< GT >::filter_arcs(), Aleph::filter_in_arcs(), Aleph::filter_in_arcs(), Aleph::Const_Graph_View< GT >::filter_nodes(), Aleph::filter_out_arcs(), Aleph::filter_perm(), Aleph::Gen_Interval_Tree< NodeType, T, Compare >::find_all_overlaps(), Aleph::find_disjoint_negative_cycles(), Aleph::ShortestPathInPolygon::find_sleeve(), Aleph::flat_map(), FunctionalMethods< Container, T >::flat_map(), Aleph::flatten(), Aleph::flatten(), Aleph::flatten(), Aleph::flatten(), Aleph::format_string_csv(), Aleph::gen_seq_list_tuples(), generate_points(), Aleph::Hungarian_Assignment< Cost_Type >::get_assignments(), Aleph::get_curr_list(), Aleph::ZipIterator< C >::get_curr_list(), Aleph::get_futures(), QuadNode::get_neighbors_by_side(), Aleph::Hungarian_Result< Cost_Type >::get_pairs(), Aleph::get_partial_arcs(), get_pre_in_list(), Aleph::get_unitarian_DynList(), Aleph::Bloom_Filter< T >::hash_seeds(), Aleph::Bloom_Filter< T >::hashes(), Aleph::Gen_Polynomial< Coefficient >::hensel_lift(), Aleph::in_arcs(), GraphCommon< GT, Node, Arc >::in_arcs(), Aleph::in_arcs(), Aleph::in_nodes(), GraphCommon< GT, Node, Arc >::in_nodes(), Aleph::in_nodes(), Aleph::in_pairs(), Aleph::in_pairs(), Aleph::in_place_transpose(), Aleph::inconnected_components(), Aleph::infix(), Aleph::init_to_DynList(), Aleph::HTList::insert(), Aleph::MapOpenHash< Key, Data, Cmp, HashTable >::items_ptr(), Aleph::DynMapTree< Key, Data, Tree, Compare >::items_ptr(), Aleph::DynMapHashTable< Key, Data, HashTable, Cmp >::items_ptr(), QuadTree::join(), Aleph::Random_Graph< GT, Init_Node, Init_Arc >::join_arc(), Aleph::Random_Graph< GT, Init_Node, Init_Arc >::join_through_the_complement(), Aleph::Karger_Min_Cut< GT, SA >::karger_min_cut(), Aleph::howard_detail::karp_by_component(), Aleph::karp_minimum_mean_cycle(), Aleph::FlatMap< Key, T, Compare >::keys(), Aleph::kosaraju_connected_components(), Aleph::kosaraju_connected_components(), Aleph::list_to_DynList(), Aleph::load_file_lines(), main(), main(), Moved_From_Case< RangeTree2D >::make(), Aleph::Net_Graph< NodeT, ArcT >::make_super_sink(), Aleph::Net_Graph< NodeT, ArcT >::make_super_source(), Aleph::map_cut_graph(), Aleph::map_in_arcs(), Aleph::map_in_arcs(), Aleph::map_keys_to_DynList(), Aleph::map_out_arcs(), Aleph::map_perm(), Aleph::map_to_DynList(), Aleph::map_values_to_DynList(), Aleph::maphash_keys_to_DynList(), Aleph::maphash_to_DynList(), Aleph::maphash_values_to_DynList(), Aleph::maps(), FunctionalMethods< Container, T >::maps(), Aleph::FunctionalMixin< Derived, Type >::maps(), FunctionalMethods< Container, T >::maps_if(), Aleph::maptree_keys_to_DynList(), Aleph::maptree_to_DynList(), Aleph::maptree_values_to_DynList(), Aleph::most_negative_cycle_up_to_3(), Aleph::Gen_Polynomial< Coefficient >::multi_eval(), Aleph::Const_Graph_View< GT >::nodes(), Aleph::Path< GT >::nodes(), Aleph::Const_Graph_View< GT >::nodes_map(), Aleph::QuickHull::operator()(), Aleph::ConstrainedDelaunayTriangulation::operator()(), Aleph::AdversarialTraceCollector< Move, Score >::operator()(), Aleph::CuttingEarsTriangulation::operator()(), Aleph::ShortestPathInPolygon::operator()(), Aleph::SearchSolutionCollector< Solution >::operator()(), Aleph::DelaunayTriangulationBowyerWatson::operator()(), Aleph::DelaunayTriangulationRandomizedIncremental::operator()(), Aleph::VoronoiDiagram::operator()(), Aleph::ConstrainedDelaunayTriangulation::operator()(), Aleph::Stoer_Wagner_Min_Cut< GT, Distance, SA >::operator()(), Aleph::MonotonePolygonTriangulation::operator()(), Aleph::MinimumEnclosingCircle::operator()(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::Pop_Block_To_List::operator()(), Aleph::DynList< T >::operator=(), GraphCommon< GT, Node, Arc >::out_arcs(), Aleph::out_arcs(), GraphCommon< GT, Node, Arc >::out_nodes(), Aleph::out_nodes(), Aleph::out_pairs(), Aleph::QuickHull::partition(), Aleph::k_shortest_paths_detail::path_to_state(), Aleph::FunctionalMixin< Derived, Type >::pfilter(), FunctionalMethods< Container, T >::pfilter(), Aleph::pointers_list(), Aleph::pointers_list(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::pop_block(), populate_dyndlist(), populate_dynlist(), DlinkListOperationsTest::populateList(), Aleph::Gen_Polynomial< Coefficient >::positive_divisors(), Aleph::prefix(), FunctionalMethods< Container, T >::ptr_filter(), Aleph::DynListQueue< T >::put(), Aleph::DynListQueue< T >::put(), Aleph::QuickHull::quick_hull(), K2Tree< T >::range(), Aleph::range_to_DynList(), reference_split_string(), Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::remove_node(), Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::remove_node(), Aleph::Gen_MultiPolynomial< Coefficient, MonomOrder >::remove_zeros(), Aleph::Gen_Polynomial< Coefficient >::remove_zeros(), Aleph::rep(), Aleph::repeated(), Aleph::repeated_with_index(), roots_and_interpolation(), Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::run_dial(), Aleph::Gen_Polynomial< Coefficient >::scale_inplace(), Aleph::scanl(), Aleph::scanl_sum(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::scc_by_len(), scenario_construction(), scenario_in_circle_in_delaunay_context(), Aleph::sequential_groups(), Aleph::Bloom_Filter< T >::set_bits(), Aleph::set_to_DynList(), Aleph::sethash_to_DynList(), Aleph::settree_to_DynList(), DynListRemovePredicateTest::SetUp(), DynListIteratorTest::SetUp(), Aleph::solve_assignment(), Aleph::solve_circulation(), Aleph::solve_transshipment(), sparse_polynomials(), Aleph::split_camel_case(), Aleph::split_n(), Aleph::split_string(), Aleph::split_text_into_words(), Aleph::detail::spp_find_sleeve(), Aleph::stl_container_to_dynList(), Aleph::sublist(), Aleph::suffix(), Aleph::t_enum_zip(), Aleph::t_enum_zip_eq(), Aleph::t_zip(), Aleph::t_zip_eq(), FunctionalMethods< Container, T >::take(), FunctionalMethods< Container, T >::take(), Aleph::take_while(), FunctionalMethods< Container, T >::take_while(), Aleph::Gen_Polynomial< Coefficient >::terms_list(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), test_all_constructors_agree(), test_construct_all_identical(), test_construct_from_dynlist(), test_container(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), test_list(), Aleph::Matrix< Trow, Tcol, NumType >::to_collist(), FunctionalMethods< Container, T >::to_dynlist(), to_dynlist(), Aleph::Matrix< Trow, Tcol, NumType >::to_rowlist(), Aleph::FunctionalMixin< Derived, Type >::tpartition(), FunctionalMethods< Container, T >::tpartition(), transfer_function(), Aleph::transpose(), Aleph::MonotonePolygonTriangulation::triangulate_monotone(), Aleph::tunzip(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST_P(), TYPED_TEST_P(), Aleph::tzip(), Aleph::tzip_longest(), Aleph::tzipEq(), Aleph::uni_unzip(), Aleph::uni_zip_to_dynlist(), Aleph::unique_sequential(), Aleph::unzip(), Moved_From_Case< RangeTree2D >::use(), Aleph::AHMapping< Key, ValueType >::values(), Aleph::FlatMap< Key, T, Compare >::values(), Aleph::MapOpenHash< Key, Data, Cmp, HashTable >::values_ptr(), Aleph::DynMapTree< Key, Data, Tree, Compare >::values_ptr(), Aleph::DynMapHashTable< Key, Data, HashTable, Cmp >::values_ptr(), Aleph::vector_to_DynList(), Aleph::vector_to_DynList(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::visit(), Aleph::Tikz_Scene::visualize_convex_hull(), Aleph::welsh_powell_coloring(), Aleph::Cnode::words_impl(), Aleph::Dlink::wrap_header(), Aleph::yen_k_shortest_paths(), Aleph::Gen_Polynomial< Coefficient >::yun_sfd(), Aleph::zip(), Aleph::zip_drop(), Aleph::zip_drop_while(), Aleph::zip_filter(), Aleph::zip_filter_eq(), Aleph::zip_lists(), Aleph::zip_lists_eq(), Aleph::zip_longest(), Aleph::zip_longest_opt(), Aleph::zip_map(), Aleph::zip_map_eq(), Aleph::zip_maps(), Aleph::zip_maps_eq(), Aleph::zip_maps_if(), Aleph::zip_maps_if_eq(), Aleph::zip_partition(), Aleph::zip_take(), Aleph::zip_take_while(), and Aleph::zipEq().
|
inlinenoexcept |
Append listat the end of this by movement.
append(l) (in this rvalue version), puts in constant time the items of l at the end of this. After calling l becomes empty.
l is a rvalue reference, take care of that if you are interested in to avoid the copy. So, if you have a lvalue reference to a list, use std::move(), upon your responsibility, if and only if you are absolutely sure that the list will not be needed after.| [in] | list | a rvalue reference to the list to be appended |
Definition at line 1886 of file htlist.H.
References Aleph::HTList::append(), and Aleph::htlist_detail::Item_Count::num_items.
|
inline |
Append a new item by movement.
Allocate memory for a new item, move to its allocated place and append it at the end of the list.
| `bad_alloc` | if there is no enough memory |
Definition at line 1377 of file htlist.H.
References Aleph::DynList< T >::__append().
|
inlinenoexcept |
Empties the container.
| none |
Definition at line 1599 of file htlist.H.
References Aleph::DynList< T >::empty().
Referenced by Aleph::AdversarialTraceCollector< Move, Score >::clear(), TEST(), TEST(), and Moved_From_Case< DynSkipList< int > >::use().
|
inlinenoexcept |
Append the items of l to this, in constant time; l becomes empty.
Definition at line 1947 of file htlist.H.
References Aleph::DynList< T >::append(), and l.
Referenced by Aleph::QuickHull::operator()(), Aleph::QuickHull::quick_hull(), TEST(), TEST(), TEST_F(), TEST_F(), and TEST_F().
|
inlinenoexcept |
|
inlinenoexcept |
Move to list, which must be empty, the items that follow the node link of this.
It counts the items that it moves, in time linear in them, so as to keep the sizes of both lists.
| [in] | link | a node of this |
| [out] | list | the list that takes the items after link |
Definition at line 1967 of file htlist.H.
References Aleph::HTList::cut(), Aleph::Slinknc::get_next(), k, and Aleph::htlist_detail::Item_Count::num_items.
Referenced by Aleph::DynList< T >::cut_list(), TEST(), and TEST().
|
inlinenoexcept |
empty the list
Definition at line 1576 of file htlist.H.
References Aleph::HTList::get_first(), Aleph::HTList::get_last(), Aleph::Snodenc< T >::get_next(), Aleph::HTList::is_empty(), Aleph::htlist_detail::Item_Count::num_items, and Aleph::HTList::reset().
Referenced by Aleph::DynList< T >::~DynList(), Aleph::df_tree_detail::Df_Low_Builder< GT, Node_Label, SA >::build(), Aleph::build_df_low_tree(), Aleph::DynList< T >::clear(), Aleph::SearchSolutionCollector< Solution >::clear(), Aleph::compute_min_cut(), Aleph::DynListQueue< T >::empty(), Aleph::DynListStack< T >::empty(), Aleph::Karger_Min_Cut< GT, SA >::fast(), Aleph::Random_Graph< GT, Init_Node, Init_Arc >::join_through_the_complement(), Aleph::Karger_Min_Cut< GT, SA >::karger_min_cut(), Aleph::Random_Graph< GT, Init_Node, Init_Arc >::make_eulerian(), Aleph::Stoer_Wagner_Min_Cut< GT, Distance, SA >::operator()(), Aleph::DynList< T >::operator=(), Aleph::DynList< T >::remove_all_and_delete(), TEST(), to_dynlist(), and TYPED_TEST_P().
|
inline |
|
inline |
Obtains a modifiable reference to the i-th item of this.
Throws overflow_error if i is greater or equal to number of elements
Definition at line 2068 of file htlist.H.
References FunctionalMethods< Container, T >::and, Aleph::DynList< T >::Iterator::get_curr(), Aleph::HTList::Iterator::has_curr(), and Aleph::HTList::Iterator::next_ne().
|
inline |
Return the first item of the list.
| underflow_error | if the list is empty |
Definition at line 1548 of file htlist.H.
References ah_underflow_error_if, Aleph::DynList< T >::get_first_ne(), and Aleph::HTList::is_empty().
Referenced by check_list(), Aleph::Matrix< Trow, Tcol, NumType >::check_vectors(), demo_fold_reduce(), demo_folding(), Aleph::Find_Eulerian_Path< GT, SN, SA >::find_node_sequence(), Aleph::DynListQueue< T >::front(), Aleph::DynListQueue< T >::front(), Aleph::Find_Eulerian_Path< GT, SN, SA >::hierholzer_directed(), Aleph::Find_Eulerian_Path< GT, SN, SA >::hierholzer_undirected(), Aleph::in_place_transpose(), Aleph::Random_Graph_Base< GT, Init_Node, Init_Arc >::sort_components(), Aleph::k_shortest_paths_detail::state_to_path(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), Aleph::DynList< T >::top(), Aleph::DynListStack< T >::top(), Aleph::DynList< T >::top(), Aleph::DynListStack< T >::top(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST_P(), and Aleph::unzip().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const.
Definition at line 1556 of file htlist.H.
References ah_underflow_error_if, Aleph::DynList< T >::get_first_ne(), and Aleph::HTList::is_empty().
|
inlinenoexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const.
Definition at line 1519 of file htlist.H.
References Aleph::HTList::get_first().
|
inlinenoexcept |
Return the first item of the list without exception.
Definition at line 1512 of file htlist.H.
References Aleph::HTList::get_first().
Referenced by Aleph::__link_mergeinsertsort(), Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_first(), Aleph::merge_lists(), Aleph::mergesort(), and Aleph::DynList< T >::remove_first_whose_move_throws().
|
deletenoexcept |
|
inline |
Return the last item of the list.
| underflow_error | if the list is empty |
Definition at line 1529 of file htlist.H.
References ah_underflow_error_if, Aleph::DynList< T >::get_last_ne(), and Aleph::HTList::is_empty().
Referenced by Aleph::decompose_flow(), Aleph::format_string_csv(), Aleph::inconnected_components(), Aleph::ShortestPathInPolygon::operator()(), Aleph::DynListQueue< T >::rear(), Aleph::DynListQueue< T >::rear(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), Aleph::to_string(), TYPED_TEST_P(), and Moved_From_Case< Collector >::use().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const.
Definition at line 1537 of file htlist.H.
References ah_underflow_error_if, Aleph::DynList< T >::get_last_ne(), and Aleph::HTList::is_empty().
|
inlinenoexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const.
Definition at line 1502 of file htlist.H.
References Aleph::Snodenc< T >::get_data(), and Aleph::HTList::get_last().
|
inlinenoexcept |
Return the last item of the list without exception.
Definition at line 1494 of file htlist.H.
References Aleph::Snodenc< T >::get_data(), and Aleph::HTList::get_last().
Referenced by Aleph::DynList< T >::get_last(), and Aleph::DynList< T >::get_last().
|
deletenoexcept |
|
inline |
Insert to this a copy of list.
This version of insert(l) traverses the items of l and insert a copy into this.
| [in] | list | list to be copied at the end |
| bad_alloc | if there is no enough memory |
Definition at line 1938 of file htlist.H.
References Aleph::DynList< T >::insert().
|
inline |
Insert a new item by copy.
Allocate memory for a new item, copy and insert into the list as the first item.
| `bad_alloc` | if there is no enough memory |
Definition at line 1308 of file htlist.H.
References Aleph::DynList< T >::__insert().
Referenced by Aleph::binary_search_dup(), Aleph::binindex_dup(), Aleph::binindex_dup(), Aleph::bsearch_dup(), Aleph::bsearch_dup(), Aleph::bsearch_dup(), Aleph::Bidirectional_BFS< GT, Fwd_Itor, Bck_Itor, SA >::build_path(), Aleph::compute_min_cut(), Aleph::Bellman_Ford< GT, Distance, Ait, NAit, SA >::cycle_of_predecessors(), demo_dynlist(), Aleph::Gen_MultiPolynomial< Coefficient, MonomOrder >::for_each_term_desc(), Aleph::Zero_One_BFS< GT, Distance, Itor, SA >::get_min_path(), Aleph::get_min_path(), Aleph::Find_Eulerian_Path< GT, SN, SA >::hierholzer_directed(), Aleph::Find_Eulerian_Path< GT, SN, SA >::hierholzer_undirected(), Aleph::DynList< T >::insert(), Aleph::Random_Digraph< GT, Init_Node, Init_Arc >::join_through_a_path(), main(), Moved_From_Case< DynSkipList< int > >::make(), Moved_From_Case< Skip_List >::make(), Aleph::min_cut(), Aleph::Network_Simplex< Net >::pivot_tree(), Aleph::DynListStack< T >::push(), Aleph::DynList< T >::push(), Aleph::DynListStack< T >::push(), Aleph::DynList< T >::push(), FunctionalMethods< Container, T >::rev(), Aleph::DynList< T >::reverse(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), test_container(), TEST_F(), test_list(), test_tree(), TYPED_TEST(), TYPED_TEST_P(), Moved_From_Case< DynSkipList< int > >::use(), and Moved_From_Case< Skip_List >::use().
|
inlinenoexcept |
Insert listat the beginning of this by movement.
insert(l) (in this rvalue version), puts in constant time the items of l at the beginning of this. After calling l becomes empty.
l is a rvalue reference, take care of that if you are interested in to avoid the copy. So, if you have a lvalue reference to a list, use std::move(), upon your responsibility, if and only if you are absolutely sure that the list will not be needed after.| [in] | list | a rvalue reference to the list to be inserted |
Definition at line 1908 of file htlist.H.
References Aleph::HTList::insert(), and Aleph::htlist_detail::Item_Count::num_items.
|
inline |
Insert a new item by movement.
Allocate memory for a new item, move the item and insert into the list as the first item. This operation can be faster that the equivalent with copy
| `bad_alloc` | if there is no enough memory |
Definition at line 1323 of file htlist.H.
References Aleph::DynList< T >::__insert().
|
inline |
Assign to this a copy of l
First, the list is emptied (all its elements are deleted). Then sequential copy of each item of l is inserted into this.
This assignation takes \(O(|l|)\) in complexity.
| [in] | l | list whose items want to be inserted into this |
| `bad_alloc` | if there is no enough memory |
Definition at line 1840 of file htlist.H.
References Aleph::DynList< T >::append(), Aleph::DynList< T >::empty(), LocateFunctions< Container, Type >::get_it(), and l.
|
inlinenoexcept |
Assign to this by movement the list l
This assignation swaps the content of this with the content of l. This swapping is done in \(O(1)\).
l is a rvalue reference, take care of that if you are interested in to avoid the copy. So, if you have a lvalue referenced to a list, use std::move(), upon your responsibility, if and only if you are absolutely sure that the list will not be needed after.| [in] | l | a rvalue reference to the list to be assigned by movement. |
Definition at line 1867 of file htlist.H.
References l, and Aleph::DynList< T >::swap().
|
inline |
Array-style access to the i-th item. Equivalent to get(i).
Definition at line 2079 of file htlist.H.
References Aleph::DynList< T >::get().
|
inline |
|
inline |
See insert(const T & item).
Definition at line 1329 of file htlist.H.
References Aleph::DynList< T >::insert().
Referenced by Aleph::DynList< T >::put(), Aleph::DynList< T >::put(), TEST(), and TEST_F().
|
inline |
See insert(T && item).
Definition at line 1335 of file htlist.H.
References Aleph::DynList< T >::insert().
|
inline |
See insert(const T & item).
Definition at line 1341 of file htlist.H.
References Aleph::DynList< T >::push().
Referenced by Aleph::compute_bipartite(), TEST(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
See insert(T && item).
Definition at line 1347 of file htlist.H.
References Aleph::DynList< T >::push().
|
inline |
Remove the first item of the list.
The item moves out before its node leaves, so that if its move throws the list keeps it.
| underflow_error | if the list is empty |
Definition at line 1447 of file htlist.H.
References ah_underflow_error_if, Aleph::HTList::is_empty(), l, Aleph::htlist_detail::Item_Count::num_items, Aleph::DynList< T >::remove_first_whose_move_throws(), and Aleph::HTList::remove_head().
Referenced by Aleph::DynList< T >::get(), Aleph::DynList< T >::remove_first(), TEST(), TEST(), TEST(), TEST(), TEST(), Moved_From_Case< DynSkipList< int > >::use(), and Moved_From_Case< Skip_List >::use().
|
inline |
Remove the first element matching an equality criteria.
remove(eq) sequentially traverses the list and on each current element curr it calls to eq(curr). If the test is true, then curr is removed from the list and a copy of curr is returned. Otherwise, if no element matches with eq() test, then exception domain_error is thrown.
The eq() must match the following signature:
bool eq(const T& op)
This test would return true when op satisfies the finding criteria`.
Since that this method is overloaded, you could define several flavors: a more sophisticated functor, function pointers or lambdas.
| [in] | eq | equality test |
domain_error is thrown. Definition at line 1795 of file htlist.H.
References ah_domain_error, Aleph::eq(), Aleph::HTList::Iterator::has_curr(), and Aleph::htlist_detail::Item_Count::num_items.
|
inlinenoexcept |
|
inline |
See remove().
Definition at line 1473 of file htlist.H.
References Aleph::DynList< T >::remove().
Referenced by Aleph::ShortestPathInPolygon::find_sleeve(), Aleph::gen_seq_list_tuples(), Aleph::DynListQueue< T >::get(), Aleph::get_futures(), Aleph::QuickHull::get_right_points(), Aleph::Find_Eulerian_Path< GT, SN, SA >::hierholzer_directed(), Aleph::Find_Eulerian_Path< GT, SN, SA >::hierholzer_undirected(), Aleph::in_place_transpose(), QuadTree::join(), Aleph::DynList< T >::pop(), Aleph::DynListStack< T >::pop(), Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::run_dial(), QuadTree::split(), Aleph::detail::spp_find_sleeve(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
inlinenoexcept |
See remove_ne().
Definition at line 1467 of file htlist.H.
References Aleph::DynList< T >::remove_ne().
Referenced by Aleph::merge_lists().
|
inlineprivate |
Definition at line 1387 of file htlist.H.
References Aleph::DynList< T >::get_first_ne(), and Aleph::htlist_detail::Item_Count::num_items.
Referenced by Aleph::DynList< T >::remove(), and Aleph::DynList< T >::remove_ne().
|
inline |
Remove the first node of the list; the caller takes the node, and its item.
| underflow_error | if the list is empty |
Definition at line 2001 of file htlist.H.
References Aleph::htlist_detail::Item_Count::num_items, and Aleph::HTList::remove_head().
Referenced by Aleph::in_place_transpose(), and TEST().
|
inlinenoexcept |
Remove the first node of the list, which must not be empty; the caller takes the node, and its item.
Definition at line 1989 of file htlist.H.
References Aleph::htlist_detail::Item_Count::num_items, and Aleph::HTList::remove_head_ne().
Referenced by TEST().
|
inlinenoexcept |
Remove the first item of the list, which must not be empty.
The item moves out before its node leaves, so that if its move throws the list keeps it.
Definition at line 1423 of file htlist.H.
References l, Aleph::htlist_detail::Item_Count::num_items, Aleph::DynList< T >::remove_first_whose_move_throws(), and Aleph::HTList::remove_head_ne().
Referenced by QueueTheadsPool< T >::create_thread(), Aleph::DynList< T >::remove_first_ne(), TEST(), TEST(), and TEST().
|
inlinenoexcept |
Definition at line 1756 of file htlist.H.
References Aleph::eq(), and Aleph::HTList::Iterator::has_curr().
|
inlinenoexcept |
Forget all the nodes of the list, without deleting them, as HTList::reset() does; the list becomes empty.
Definition at line 2017 of file htlist.H.
References Aleph::htlist_detail::Item_Count::num_items, and Aleph::HTList::reset().
Referenced by TEST().
|
inline |
Definition at line 1750 of file htlist.H.
References Aleph::DynList< T >::reverse().
|
inlinenoexcept |
Definition at line 1734 of file htlist.H.
References Aleph::DynList< T >::reverse().
Referenced by List_of_25_items::List_of_25_items(), TEST_F(), and Aleph::traverse_perm().
|
inline |
Return a reversed copy of this.
Not confuse with reverse without const which mutates this
Definition at line 1741 of file htlist.H.
References LocateFunctions< Container, Type >::get_it(), and Aleph::DynList< T >::insert().
|
inlinenoexcept |
Definition at line 1728 of file htlist.H.
References Aleph::HTList::reverse_list().
Referenced by main(), Aleph::DynList< T >::rev(), Aleph::DynList< T >::rev(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inlinenoexcept |
Return the number of items of the list, in constant time.
The operations of DynList keep the count; see the note of the class about what does not.
Definition at line 1264 of file htlist.H.
References Aleph::HTList::is_empty(), and Aleph::htlist_detail::Item_Count::num_items.
Referenced by Aleph::Matrix< Trow, Tcol, NumType >::Matrix(), Aleph::Matrix< Trow, Tcol, NumType >::Matrix(), Aleph::SmallVector< T, N >::SmallVector(), Aleph::Vector< T, NumType >::Vector(), Aleph::binary_search_dup(), Aleph::bsearch_dup(), Aleph::Matrix< Trow, Tcol, NumType >::check_vectors(), Aleph::chromatic_number(), Aleph::complete_rows(), Aleph::Unconnected_Components< GT, SA >::compute_lists(), Aleph::Random_Graph< GT, Init_Node, Init_Arc >::connect(), Aleph::Random_Digraph< GT, Init_Node, Init_Arc >::connect(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::sort_utils_detail::counting_sort_impl(), Aleph::decompose_flow(), demo_connected(), demo_coverage_area(), demo_dynlist(), demo_erdos_renyi(), demo_find_sccs(), demo_integration(), demo_parameters(), demo_practical(), demo_triangulation_basic(), demo_triangulation_complex(), example_basic_sccs(), expect_tokens_eq(), Aleph::generate_layered_network(), imprime(), Aleph::in_place_transpose(), Moved_From_Case< Binary_Lifting_LCA< Graph > >::is_empty(), Moved_From_Case< Euler_RMQ_LCA< Graph > >::is_empty(), Aleph::AlDomain< T >::keys(), Aleph::FlowPath< Net >::length(), main(), main(), Aleph::k_shortest_paths_detail::make_path_snapshot(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::num_connected_components(), print_dynlist(), Aleph::sort_utils_detail::radix_sort_impl(), Aleph::k_shortest_paths_detail::same_path_sequence(), scenario_construction(), Aleph::AdversarialTraceCollector< Move, Score >::size(), Aleph::DynListQueue< T >::size(), Aleph::DynListStack< T >::size(), Aleph::split_n(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), test_construct_all_identical(), test_copy_constructor(), test_DynSet(), test_DynSetLinHash(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), test_non_idempotent_correctness(), test_string_concatenation(), test_sw_empty_graph(), Aleph::Matrix< Trow, Tcol, NumType >::to_str(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST_P(), Moved_From_Case< Collector >::use(), Moved_From_Case< DynSkipList< int > >::use(), Moved_From_Case< Euler_Tour_LCA< int > >::use(), Moved_From_Case< Binary_Lifting_LCA< Graph > >::use(), Moved_From_Case< Euler_RMQ_LCA< Graph > >::use(), and Aleph::Tikz_Scene::visualize_convex_hull().
|
inlinenoexcept |
Split the list in two.
l takes the first n - n / 2 items and r the others, in their order, and this becomes empty. With the number of items known, it walks only to the middle.
| [out] | l | the first n - n / 2 items (must be empty) |
| [out] | r | the last n / 2 items (must be empty) |
this had Definition at line 2033 of file htlist.H.
References FunctionalMethods< Container, T >::and, Aleph::HTList::cut(), Aleph::HTList::get_first(), Aleph::Slinknc::get_next(), Aleph::HTList::is_empty(), l, Aleph::htlist_detail::Item_Count::num_items, r, and Aleph::HTList::swap().
Referenced by Aleph::DynList< T >::split(), Aleph::DynList< T >::split_list(), and TEST().
Swap this with l. All items of each list are swapped in constant
time
Definition at line 1253 of file htlist.H.
References l, Aleph::htlist_detail::Item_Count::num_items, and Aleph::HTList::swap().
Referenced by Aleph::DynList< T >::DynList(), Aleph::compute_min_cut(), Aleph::Karger_Min_Cut< GT, SA >::fast(), Aleph::in_place_transpose(), Aleph::Karger_Min_Cut< GT, SA >::karger_min_cut(), Aleph::DynList< T >::operator=(), Aleph::DynListQueue< T >::operator=(), Aleph::DynListStack< T >::operator=(), Aleph::AlDomain< T >::swap(), Aleph::DynListQueue< T >::swap(), Aleph::DynListStack< T >::swap(), Aleph::SearchSolutionCollector< Solution >::swap(), TEST(), TEST(), TEST(), and TEST_F().
|
inline |
See get_first().
Definition at line 1563 of file htlist.H.
References Aleph::DynList< T >::get_first().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A reference to const.
Definition at line 1570 of file htlist.H.
References Aleph::DynList< T >::get_first().
|
friend |