Project

General

Profile

private function find(this, my_stuff, offset)

Arguments

Type IntentOptional AttributesName
class(vector_ref), intent(in) :: this
class(*), intent(in) :: my_stuff
integer, intent(in), optional :: offset

Return Value integer

Calls

proc~~find~~CallsGraph proc~find find object_equal object_equal proc~find->object_equal

Variables

TypeVisibility AttributesNameInitial
integer, public :: i
integer, public :: offset_

Source Code

    function find(this, my_stuff, offset)
        class(vector_ref), intent(in) :: this
        class(*), intent(in) :: my_stuff
        integer, intent(in), optional :: offset
        integer :: find

        integer :: i, offset_

        offset_ = 1
        if(present(offset)) offset_ = offset

        find = 0
        do i = offset_, this%current_size
            if(object_equal(this%items(i)%stuff, my_stuff)) then
                find = i
                exit
            end if
        end do
    end function find


© 2016
self was developed by
Documentation generated by FORD