stack_int_iterator Derived Type

type, public :: stack_int_iterator

迭代器


Contents

Source Code


Type-Bound Procedures

procedure, public, :: next => stack_int_iterator_next

  • private pure subroutine stack_int_iterator_next(self, item)

    Get the next item from the stack_int_iterator

    Arguments

    Type IntentOptional Attributes Name
    class(stack_int_iterator), intent(inout) :: self
    integer, intent(out) :: item

procedure, public, :: clear => stack_int_iterator_clear

  • private pure subroutine stack_int_iterator_clear(self)

    Clear the stack_int_iterator

    Arguments

    Type IntentOptional Attributes Name
    class(stack_int_iterator), intent(inout) :: self

Source Code

    type stack_int_iterator
        private
        type(node), pointer :: ptr => null()
    contains
        procedure :: next => stack_int_iterator_next
        procedure :: clear => stack_int_iterator_clear
    end type stack_int_iterator