bin_t Derived Type

type, public :: bin_t

encapsulate a range of item numbers associated with a bin


Inherited by

type~~bin_t~~InheritedByGraph type~bin_t bin_t type~data_partition_t data_partition_t type~data_partition_t->type~bin_t bin

Components

Type Visibility Attributes Name Initial
integer, private :: first_
integer, private :: last_

Constructor

public interface bin_t

  • private elemental module function construct(num_items, num_bins, bin_number) result(bin)

    the result is a bin associated with a range of item numbers

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: num_items
    integer, intent(in) :: num_bins
    integer, intent(in) :: bin_number

    Return Value type(bin_t)


Type-Bound Procedures

procedure, public :: first

  • interface

    private elemental module function first(self) result(first_item_number)

    the result is the first item number associated with the given bin

    Arguments

    Type IntentOptional Attributes Name
    class(bin_t), intent(in) :: self

    Return Value integer

procedure, public :: last

  • interface

    private elemental module function last(self) result(last_item_number)

    the result is the last item number associated with the given bin

    Arguments

    Type IntentOptional Attributes Name
    class(bin_t), intent(in) :: self

    Return Value integer