sortedposofval Interface

private 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~~CallsGraph interface~sortedposofval sortedposofval proc~sortposofval_attribute sortposofval_attribute interface~sortedposofval->proc~sortposofval_attribute

Called by

interface~~sortedposofval~~CalledByGraph interface~sortedposofval sortedposofval proc~posofval_attribute posofval_attribute proc~posofval_attribute->interface~sortedposofval proc~append_da_attribute append_da_attribute proc~append_da_attribute->interface~sortedposofval interface~append~7 append interface~append~7->proc~append_da_attribute interface~positionofval positionofval interface~positionofval->proc~posofval_attribute

Contents


Module Procedures

private function sortposofval_attribute(me, val, nextifnotfound, lower, upper) result(pos)

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

Read more…

Arguments

TypeIntentOptionalAttributesName
type(dyn_attributearray_type), intent(in) :: me
type(sdr_attribute_type), 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