MONC
Private Member Functions | List of all members
collections_mod::c_insert_string Interface Reference

Inserts a string into the list or places at the end if the index > list size. More...

Private Member Functions

subroutine list_insert_string (specificlist, str_data, i)
 Inserts an element into the list or places at the end if the index > list size. More...
 

Detailed Description

Inserts a string into the list or places at the end if the index > list size.

This has a time complexity of O(n)

Parameters
collectionThe specific list involved
dataString data to insert
indexThe list index to insert to

Definition at line 271 of file collections.F90.

Member Function/Subroutine Documentation

◆ list_insert_string()

subroutine collections_mod::c_insert_string::list_insert_string ( type(list_type), intent(inout)  specificlist,
character(len=string_length), intent(in)  str_data,
integer, intent(in)  i 
)
private

Inserts an element into the list or places at the end if the index > list size.

Do not call directly from external module, this is called via the appropriate interface

Parameters
specificlistThe specific list involved
dataString data to insert
iThe list index to insert to

Definition at line 2799 of file collections.F90.

2799  type(list_type), intent(inout) :: specificlist
2800  integer, intent(in) :: i
2801  character(len=STRING_LENGTH), intent(in) :: str_data
2802 
2803  class(*), pointer :: generic
2804 
2805  generic=>conv_to_generic(str_data, .true.)
2806  call list_insert_generic(specificlist, generic, i, .true.)

The documentation for this interface was generated from the following file: