|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <htlist.H>
Public Member Functions | |
| Iterator () noexcept=default | |
| Iterator (const HTList &list) noexcept | |
Initialize iterator on at the first item of list | |
| void | reset () noexcept |
| Reset the iterator at the first item. | |
| long | get_pos () const noexcept |
| void | reset_first () noexcept |
| void | reset_last () |
| It has O(n) of performance. | |
| void | end () noexcept |
| Set the iterator to its end position, which has not. | |
| Iterator (const Iterator &)=default | |
| Iterator & | operator= (const Iterator &it) noexcept |
| bool | has_curr () const noexcept |
| bool | is_last () const noexcept |
| bool | is_in_first () const noexcept |
Return true if the iterator is positioned on the first item. | |
| bool | is_in_last () const noexcept |
Return true if the iterator is positioned on the last item. | |
| Slinknc * | get_curr () const |
| Slinknc * | get_curr_ne () const noexcept |
| Return the current link guaranteeing no exception. Be careful. | |
| void | next_ne () noexcept |
| Move the iterator one position forward guaranteeing no exception. | |
| void | next () |
| Slinknc * | del_ne () noexcept |
| Slinknc * | del () |
Private Attributes | |
| HTList * | lptr = nullptr |
| Slinknc * | curr = nullptr |
| Slinknc * | prev = nullptr |
| long | pos = 0 |
|
defaultnoexcept |
|
inline |
Remove the current item.
del() removes the current item of iterator and advaces it a position forward.
| overflow_error | if iterator has not current item |
Definition at line 1038 of file htlist.H.
References ah_overflow_error_if, del_ne(), Aleph::divide_and_conquer_partition_dp(), and has_curr().
Referenced by Aleph::DynList< T >::Iterator::del().
|
inlinenoexcept |
Definition at line 1000 of file htlist.H.
References curr, Aleph::divide_and_conquer_partition_dp(), Aleph::HTList::head, lptr, NEXT, prev, Aleph::HTList::remove_first(), and Aleph::HTList::tail.
Referenced by del().
|
inlinenoexcept |
|
inline |
Return the current node on which the iterator is positioned
| overflow_error | if iterator has not current node |
Definition at line 952 of file htlist.H.
References ah_overflow_error_if, and curr.
Referenced by Aleph::DynList< T >::Iterator::get_curr(), Aleph::insert_sorted(), main(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inlinenoexcept |
Return the current link guaranteeing no exception. Be careful.
Definition at line 961 of file htlist.H.
References curr.
Referenced by Aleph::DynList< T >::Iterator::get_curr_ne().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 930 of file htlist.H.
References curr.
Referenced by Aleph::BruteForceConvexHull::are_all_points_on_left(), brute_distance_squared(), Aleph::RangeTree2D::build(), Aleph::ShortestPathInPolygon::build_tris(), Aleph::k_shortest_paths_detail::compose_candidate(), Aleph::k_shortest_paths_detail::compose_general_candidate(), Aleph::k_shortest_paths_detail::compute_cost_from_arcs(), Aleph::compute_min_cut(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::connected_components(), Aleph::sort_utils_detail::counting_sort_impl(), del(), Aleph::BruteForceConvexHull::extreme_edges(), Aleph::DynList< T >::get(), Aleph::QuickHull::get_farthest_point(), Aleph::GiftWrappingConvexHull::get_lowest_point(), Aleph::insert_sorted(), main(), main(), Aleph::Net_Graph< NodeT, ArcT >::make_super_sink(), Aleph::Net_Graph< NodeT, ArcT >::make_super_source(), Aleph::ConstrainedDelaunayTriangulation::map_constraints(), Aleph::ConstrainedDelaunayTriangulation::merge_and_deduplicate(), next(), Aleph::ClosestPairDivideAndConquer::operator()(), Aleph::DelaunayTriangulationRandomizedIncremental::operator()(), Aleph::GiftWrappingConvexHull::operator()(), Aleph::QuickHull::operator()(), Aleph::MinimumEnclosingCircle::operator()(), Aleph::VisvalingamWhyattSimplification::operator()(), Aleph::DouglasPeuckerSimplification::operator()(), Aleph::ChaikinSmoothing::operator()(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::operator()(), Aleph::ConvexPolygonDecomposition::operator()(), Aleph::VisibilityPolygon::operator()(), Aleph::MonotonePolygonTriangulation::operator()(), Aleph::DynList< T >::operator=(), Aleph::QuickHull::partition(), Aleph::polygon_from_vertex_indices(), print(), Aleph::put_monotone_triangulation_result(), Aleph::put_path(), Aleph::put_point_labels(), Aleph::put_points(), Aleph::DynList< T >::remove(), Aleph::DynList< T >::remove_ne(), Aleph::search_extreme(), Aleph::search_extreme(), Aleph::QuickHull::search_extremes(), Aleph::sequential_search(), Aleph::sequential_search(), Aleph::HTList::size(), Aleph::AndrewMonotonicChainConvexHull::sorted_unique_points(), Aleph::GrahamScanConvexHull::sorted_unique_points(), Aleph::detail::spp_build_tris(), Aleph::k_shortest_paths_detail::state_to_path(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), 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_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(), and Aleph::DelaunayTriangulationBowyerWatson::unique_points().
|
inlinenoexcept |
Return true if the iterator is positioned on the first item.
Definition at line 938 of file htlist.H.
References curr, Aleph::divide_and_conquer_partition_dp(), Aleph::HTList::head, Aleph::HTList::is_empty(), and lptr.
Referenced by TEST().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 932 of file htlist.H.
References curr, Aleph::divide_and_conquer_partition_dp(), Aleph::HTList::is_empty(), lptr, and Aleph::HTList::tail.
Referenced by is_in_last(), TEST(), and TEST().
|
inline |
Move the iterator one item forward. Throw overflow_error if
iterator has not current item
Definition at line 993 of file htlist.H.
References ah_overflow_error_if, Aleph::divide_and_conquer_partition_dp(), has_curr(), and next_ne().
Referenced by Aleph::GiftWrappingConvexHull::get_lowest_point(), Aleph::insert_sorted(), main(), Aleph::QuickHull::search_extremes(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inlinenoexcept |
Move the iterator one position forward guaranteeing no exception.
Be careful.
Definition at line 965 of file htlist.H.
References curr, Aleph::divide_and_conquer_partition_dp(), Aleph::HTList::head, lptr, NEXT, pos, prev, and Aleph::HTList::tail.
Referenced by Aleph::sort_utils_detail::counting_sort_impl(), Aleph::DynList< T >::get(), Aleph::GiftWrappingConvexHull::get_lowest_point(), Aleph::insert_sorted(), next(), Aleph::search_extreme(), Aleph::search_extreme(), Aleph::QuickHull::search_extremes(), Aleph::Random_Graph_Base< GT, Init_Node, Init_Arc >::select_random_node(), TEST_F(), and TEST_F().
|
inlinenoexcept |
Reset the iterator at the first item.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 880 of file htlist.H.
References curr, Aleph::HTList::head, lptr, pos, and prev.
Referenced by reset_first(), reset_last(), and TEST_F().
|
inlinenoexcept |
|
inline |
Definition at line 862 of file htlist.H.
Referenced by del_ne(), end(), get_curr(), get_curr_ne(), has_curr(), is_in_first(), is_last(), next_ne(), operator=(), reset(), and reset_last().
Definition at line 861 of file htlist.H.
Referenced by del_ne(), is_in_first(), is_last(), next_ne(), operator=(), reset(), and reset_last().
|
private |
Definition at line 865 of file htlist.H.
Referenced by get_pos(), next_ne(), operator=(), reset(), and reset_last().
Definition at line 863 of file htlist.H.
Referenced by del_ne(), next_ne(), operator=(), reset(), and reset_last().