sortposofval_attribute Function

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

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

if the value was not found, - return 0 if nextifnotfound = .false. - return position at the end if nextifnotfound = .true.

binary search on sorted list

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


Called by

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

Contents


Variables

TypeVisibilityAttributesNameInitial
logical, private :: retnext
integer, private :: lb
integer, private :: ub
integer, private :: mid
type(sdr_attribute_type), private :: lb_val
type(sdr_attribute_type), private :: ub_val
type(sdr_attribute_type), private :: mid_val