countable Derived Type

type, public, abstract, extends(iterable) :: countable

type~~countable~~InheritsGraph type~countable countable type~iterable iterable type~iterable->type~countable
Help


An abstract data type which can be iterated, for which the number of pieces of items of data stored within is known.

Inherited By

type~~countable~~InheritedByGraph type~countable countable type~ordered ordered type~countable->type~ordered type~data_set data_set type~countable->type~data_set type~queue queue type~ordered->type~queue type~dictionary dictionary type~data_set->type~dictionary type~dynamic_set dynamic_set type~data_set->type~dynamic_set type~deque deque type~queue->type~deque type~list list type~deque->type~list type~array_list array_list type~list->type~array_list type~map map type~dictionary->type~map type~multimap multimap type~dictionary->type~multimap type~multiset multiset type~dynamic_set->type~multiset
Help

Type-Bound Procedures

procedure(size_func), public, deferred :: size

Return the number of items stored within this object

  • pure function size_func(this) Prototype

    Arguments

    Type IntentOptional AttributesName
    class(countable), intent(in) :: this

    Return Value integer

    The number of items stored in this object.

Source Code

  type, extends(iterable), abstract, public :: countable
  !* Author: Chris MacMackin
  !  Date: February 2016
  !  License: LGPLv3
  !
  ! An abstract data type which can be iterated, for which the number of
  ! pieces of items of data stored within is known.
  !
  contains
    procedure(size_func), deferred :: size
      !! Return the number of items stored within this object
  end type countable