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

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

Private Member Functions

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

Detailed Description

Inserts a logical element 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
dataLogical data to insert
indexThe list index to insert to

Definition at line 291 of file collections.F90.

Member Function/Subroutine Documentation

◆ list_insert_logical()

subroutine collections_mod::c_insert_logical::list_insert_logical ( type(list_type), intent(inout)  specificlist,
logical, intent(in)  logical_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
dataLogical data to insert
iThe list index to insert to

Definition at line 2833 of file collections.F90.

2833  type(list_type), intent(inout) :: specificlist
2834  integer, intent(in) :: i
2835  logical, intent(in) :: logical_data
2836 
2837  class(*), pointer :: generic
2838 
2839  generic=>conv_to_generic(logical_data, .true.)
2840  call list_insert_generic(specificlist, generic, i, .true.)

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