sortedposofval Interface

public interface sortedposofval

return the position of a given value in the list 'sorted'. this is mainly for internal usage. the sorted list is only a pointer list to the actual values thus, in order to get the index of a given value, you need to look up the entry in the sorted list. this is done by the positionofval routine

Calls

interface~~sortedposofval~5~~CallsGraph interface~sortedposofval~5 sortedposofval proc~sortposofval_label sortposofval_label interface~sortedposofval~5->proc~sortposofval_label

Called by

interface~~sortedposofval~5~~CalledByGraph interface~sortedposofval~5 sortedposofval proc~append_da_int append_da_int proc~append_da_int->interface~sortedposofval~5 proc~append_da_label append_da_label proc~append_da_label->interface~sortedposofval~5 proc~append_da_long append_da_long proc~append_da_long->interface~sortedposofval~5 proc~append_da_real append_da_real proc~append_da_real->interface~sortedposofval~5 proc~posofval_int posofval_int proc~posofval_int->interface~sortedposofval~5 proc~posofval_label posofval_label proc~posofval_label->interface~sortedposofval~5 proc~posofval_long posofval_long proc~posofval_long->interface~sortedposofval~5 proc~posofval_real posofval_real proc~posofval_real->interface~sortedposofval~5 interface~append~22 append interface~append~22->proc~append_da_long interface~append~23 append interface~append~23->proc~append_da_int interface~append~24 append interface~append~24->proc~append_da_real interface~append~25 append interface~append~25->proc~append_da_label interface~positionofval~2 positionofval interface~positionofval~2->proc~posofval_long interface~positionofval~3 positionofval interface~positionofval~3->proc~posofval_int interface~positionofval~4 positionofval interface~positionofval~4->proc~posofval_real interface~positionofval~5 positionofval interface~positionofval~5->proc~posofval_label

Module Procedures

public function sortposofval_label(me, val, nextifnotfound, lower, upper) result(pos)

return the sorted position of a value in the given dynamic array

Read more…

Arguments

Type IntentOptional Attributes Name
type(dyn_labelarray_type), intent(in) :: me
character(len=*), intent(in) :: val
logical, intent(in), optional :: nextifnotfound

flag to indicate, if the next entry in the list should be returned, if the searched one is not found.

integer, intent(in), optional :: lower
integer, intent(in), optional :: upper

Return Value integer