An abstract type which can return and iterator object representing its contents. All of the more complex public data structures in FIAT are descendants of this one.
Return an iterator object with the contents of the iterable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(iterable), | intent(in) | :: | this |
An iterator with the contents of this object
Return a container object with the dynamic type of that used in this iterable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(iterable), | intent(in) | :: | this |
A container of the dynamic type used in this object
type, abstract, public :: iterable
!* Author: Chris MacMackin
! Date: February 2016
!
! An abstract type which can return and [[iterator]] object
! representing its contents. All of the more complex public data
! structures in FIAT are descendants of this one.
!
contains
procedure(iterator_return), deferred :: iter
!! Return an [[iterator]] object with the contents of the iterable
procedure(container_return), deferred :: contents_type
!! Return a [[container]] object with the dynamic type of that
!! used in this iterable
end type iterable