FMUTIL  0.1
Fortran Miscellaneous UTILities
list.f90 File Reference

Go to the source code of this file.

Data Types

type  lists::listitem
 List Item type. More...
 
type  lists::list
 List type. More...
 

Modules

module  lists
 List module.
 

Functions/Subroutines

pure integer function lists::list_size (me)
 Returns the total number of items in the List. More...
 
integer function lists::push_back (me, newitem)
 Subroutine to append an element at the back of the list. More...
 
class(*) function, allocatable lists::pop_back (me)
 Function to extract the last item of List. More...
 
class(*) function, pointer lists::item_at (me, Index)
 Returns a pointer to the item with the requested index (1-based) Pointer will not be associated in case of an exception. More...
 
class(*) function, allocatable lists::item_front (me)
 Returns the item with the index=1. More...
 
class(*) function, allocatable lists::item_back (me)
 Returns the last item in List. More...
 
subroutine lists::item_insert (me, pos, NewItem)
 Inserts an item at the given position. More...
 
subroutine lists::item_erase (me, pos)
 Erase an item at the given position. More...
 
subroutine lists::create_newslots (me, NumSlots)
 Subroutine to allocate storage for new slots. More...
 
subroutine lists::assignlist (lhs, rhs)
 Subroutine for List assignment operator. More...
 
subroutine lists::clear (me)
 Clear the contents of List. More...
 
subroutine lists::shrinktofit (me)
 Free up unused allocated memory and make List capacity equal to its size. More...
 
subroutine lists::destroy (me)
 Destructor. More...
 
elemental subroutine lists::add_listitem (me, item)
 
subroutine lists::del_listitem (me)
 
pure elemental logical function lists::isvalid_listitem (me)
 

Variables

integer, parameter lists::default_newslotsallocated = 5
 Default number of slots to create on list capacity increase. More...