|
| pure integer function | list_size (me) |
| | Returns the total number of items in the List. More...
|
| |
| integer function | push_back (me, newitem) |
| | Subroutine to append an element at the back of the list. More...
|
| |
| class(*) function, allocatable | pop_back (me) |
| | Function to extract the last item of List. More...
|
| |
| class(*) function, pointer | 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 | item_front (me) |
| | Returns the item with the index=1. More...
|
| |
| class(*) function, allocatable | item_back (me) |
| | Returns the last item in List. More...
|
| |
| subroutine | item_insert (me, pos, NewItem) |
| | Inserts an item at the given position. More...
|
| |
| subroutine | item_erase (me, pos) |
| | Erase an item at the given position. More...
|
| |
| subroutine | create_newslots (me, NumSlots) |
| | Subroutine to allocate storage for new slots. More...
|
| |
| subroutine | assignlist (lhs, rhs) |
| | Subroutine for List assignment operator. More...
|
| |
| subroutine | clear (me) |
| | Clear the contents of List. More...
|
| |
| subroutine | shrinktofit (me) |
| | Free up unused allocated memory and make List capacity equal to its size. More...
|
| |
| subroutine | destroy (me) |
| | Destructor. More...
|
| |
| elemental subroutine | add_listitem (me, item) |
| |
| subroutine | del_listitem (me) |
| |
| pure elemental logical function | isvalid_listitem (me) |
| |
List module.
This module provides the list data structure (similar to Python list) represented internally using an array.
- Author
- Bharat Mahajan
- Date
- Created: 05/27/2020