Cartesius Library
polymorphic_list_mod.f90 File Reference

Data Types

type  polymorphic_list_mod::list
 

Modules

module  polymorphic_list_mod
 Linked lists based on the module link_mod.f90.
 

Functions/Subroutines

subroutine polymorphic_list_mod::printlist (this)
 
subroutine polymorphic_list_mod::addvalue (this, value, pDeallocator)
 Appends a new value to the end of the linked list. Current value is unaffected. More...
 
logical function polymorphic_list_mod::list_any_no_params (this, proc)
 
logical function polymorphic_list_mod::list_any_one_param (this, proc, par1)
 
logical function polymorphic_list_mod::list_contains (this, value)
 Returns true if the given value points to the same target as some value in the list. More...
 
type(list) function polymorphic_list_mod::copylist (this)
 
subroutine polymorphic_list_mod::appendlist (this, newList)
 Appends a new list to the linked list. Current values are unaffected. More...
 
subroutine polymorphic_list_mod::mergelist (this, addList)
 Appends the second list's values to the first one without repetitions. More...
 
subroutine polymorphic_list_mod::list_swap_indices (this, index1, index2)
 Swaps the values stored in he links at the given indices. More...
 
subroutine polymorphic_list_mod::rotate_list_left (this)
 Moves the first element of the given list to the end of the list. More...
 
class(*) function, pointer polymorphic_list_mod::firstvalue (this)
 Returns a pointer to the first value in the linked list. More...
 
class(*) function, pointer polymorphic_list_mod::currentvalue (this)
 Returns a pointer to the value in the link to which the list iterator currently points. More...
 
subroutine polymorphic_list_mod::next (this)
 Moves the list iterator to the next link in the list. More...
 
logical function polymorphic_list_mod::morevalues (this)
 Returns true if the pointer to a link is associated, and false otherwise. More...
 
subroutine polymorphic_list_mod::reset (this)
 Resets link iterator to point at the first link in the list. More...
 
integer function polymorphic_list_mod::list_index (this, value)
 
type(link) function, pointer polymorphic_list_mod::list_link_at_index (this, index)
 
class(*) function, pointer polymorphic_list_mod::list_value_at_index (this, index)
 
subroutine polymorphic_list_mod::removecurrentvalue (this)
 Removes the current value from the list. The pointer is set to the previous element in the list. If the prevoius element does not exit, the pointer is set to the next element. More...
 
subroutine polymorphic_list_mod::dissolvelist (this)
 Deallocates the list's links without deallocating its values. More...
 
subroutine polymorphic_list_mod::purgecurrentvalue (this)
 Removes the current value from the list and deallocates its contents. The pointer is set to the previous element in the list. If the prevoius element does not exit, the pointer is set to the next element. More...
 
type(list) function, pointer polymorphic_list_mod::list_from_polymorphic (x)
 Converts a polymorpihc pointer to a list pointer if possible, else returns a null-pointer. More...
 
subroutine polymorphic_list_mod::deallocate_list (pList)
 Deallocates all values in the list. More...
 
subroutine polymorphic_list_mod::deallocate_list_native (this)
 
integer function polymorphic_list_mod::list_len (this)
 
subroutine polymorphic_list_mod::sortlistbykey (someList, pKey)
 Sorts values in the list. More...
 
logical function polymorphic_list_mod::sortkey (x1, x2)
 Dummy key for soriting. Always returns true. More...
 
logical function polymorphic_list_mod::integerkey (x1, x2)
 Key for sorting integers. Returns true if x1 is less than x2. More...
 
recursive subroutine polymorphic_list_mod::sortpreparedlistbykey (someList, pKey)
 Helper process for sortListByKey. More...
 
recursive subroutine polymorphic_list_mod::listcatenationwithsorting (list1, list2, newList, pKey)
 Helper process for sortPreparedListByKey. More...