idArgDynamicArray Derived Type

type, public :: idArgDynamicArray

type~~idargdynamicarray~~InheritsGraph type~idargdynamicarray idArgDynamicArray idDynamicArray idDynamicArray idDynamicArray->type~idargdynamicarray v iDynamicArray iDynamicArray iDynamicArray->type~idargdynamicarray i
Help


Class that act as stacks, queues, and priority queues. See idArgDynamicArray_Class for more information on how to use this class.



Components

TypeVisibility AttributesNameInitial
type(iDynamicArray), public :: i

Argument of the values.

type(idDynamicArray), public :: v

Values.


Constructor

public interface idArgDynamicArray

  • private function init_idArgDynamicArray_i1(M, sorted, fixed) result(this)

    Overloaded by interface [[idArgDynamicArray(type)]]

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32), intent(in), optional :: M
    logical, intent(in), optional :: sorted
    logical, intent(in), optional :: fixed

    Return Value type(idArgDynamicArray)

  • private function init_idArgDynamicArray_id1D(i, values, M, sorted, fixed) result(this)

    Overloaded by interface [[idArgDynamicArray(type)]]

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32), intent(in) :: i(:)
    integer(kind=i64), intent(in) :: values(:)
    integer(kind=i32), intent(in), optional :: M
    logical, intent(in), optional :: sorted
    logical, intent(in), optional :: fixed

    Return Value type(idArgDynamicArray)


Type-Bound Procedures

procedure, public :: append => append_idArgDynamicArray

idArgDynamicArray%append() - Append a value to the end of the dynamic array. Will change a sorted dynamic array to unsorted.

  • private subroutine append_idArgDynamicArray(this, i, val)

    Overloaded type bound procedure idArgDynamicArray%append().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this
    integer(kind=i32) :: i

    Index of value

    integer(kind=i64) :: val

    Value to append

procedure, public :: argOf => argOf_idArgDynamicArray

idArgDynamicArray%argOf() - Get the argument of a value in a sorted dynamic array

  • private function argOf_idArgDynamicArray(this, val) result(i)

    Overloaded type bound procedure idArgDynamicArray%locationOf().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this
    integer(kind=i64) :: val

    Value to get the argument of.

    Return Value integer(kind=i32)

    Argument of the value.

procedure, public :: deallocate => deallocate_idArgDynamicArray

idArgDynamicArray%%deallocate() - Deallocate a dynamic array.

  • private subroutine deallocate_idArgDynamicArray(this)

    Overloaded type bound procedure idArgDynamicArray%deallocate().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this

procedure, public :: insertAt => insertAt_idArgDynamicArray

idArgDynamicArray%insertAt() - Insert a value at a given index.

  • private subroutine insertAt_idArgDynamicArray(this, loc, i, val)

    Overloaded type bound procedure idArgDynamicArray%insertAt().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this
    integer(kind=i32) :: loc

    Insert index and value at this location.

    integer(kind=i32) :: i

    index/

    integer(kind=i64) :: val

    Value/

procedure, public :: insertSorted => insertSorted_idArgDynamicArray

idArgDynamicArray%insertSorted() - Insert a value into a sorted dynamic array.

  • private subroutine insertSorted_idArgDynamicArray(this, i, val)

    Overloaded type bound procedure idArgDynamicArray%insertSorted().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this
    integer(kind=i32) :: i

    Index.

    integer(kind=i64) :: val

    Value.

procedure, public :: insertSortedUnique => insertSortedUnique_idArgDynamicArray

idArgDynamicArray%insertSortedUnique() - Inserts only unique numbers into a dynamic array.

  • private subroutine insertSortedUnique_idArgDynamicArray(this, i, val)

    Overloaded type bound procedure idArgDynamicArray%insertSortedUnique().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this
    integer(kind=i32) :: i

    Index.

    integer(kind=i64) :: val

    Value.

procedure, public :: isEmpty => isEmpty_idArgDynamicArray

idArgDynamicArray%isEmpty() - True if the array is empty.

  • private function isEmpty_idArgDynamicArray(this) result(yes)

    Overloaded type bound procedure idArgDynamicArray%isEmpty()

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this

    Return Value logical

    Array is empty

procedure, public :: isFilled => isFilled_idArgDynamicArray

idArgDynamicArray%isFilled() - True if the allocated memory has been filled.

  • private function isFilled_idArgDynamicArray(this) result(yes)

    Overloaded type bound procedure idArgDynamicArray%isFilled()

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this

    Return Value logical

    Array is filled

procedure, public :: locationOf => locationOf_idArgDynamicArray

idArgDynamicArray%locationOf() - Get the location of a value in a sorted dynamic array.

  • private function locationOf_idArgDynamicArray(this, val) result(i)

    Overloaded type bound procedure idArgDynamicArray%locationOf().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this
    integer(kind=i64) :: val

    Value to get the argument of.

    Return Value integer(kind=i32)

    Index of the value.

procedure, public :: prepend => prepend_idArgDynamicArray

idArgDynamicArray%prepend() - Prepend a value to the start of the dynamic array. Only for unsorted dynamic arrays

  • private subroutine prepend_idArgDynamicArray(this, i, val)

    Overloaded type bound procedure idArgDynamicArray%prepend().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this
    integer(kind=i32) :: i

    Prepend indices with this index.

    integer(kind=i64) :: val

    Prepend values with this value.

procedure, public :: remove => remove_idArgDynamicArray

idArgDynamicArray%remove() - Remove an element from the array.

  • private subroutine remove_idArgDynamicArray(this, i)

    Overloaded type bound procedure idArgDynamicArray%remove().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this
    integer(kind=i32) :: i

    Remove the elements at this location.

procedure, public :: tighten => tighten_idArgDynamicArray

idArgDynamicArray%tighten() - Removes excess buffer memory and trims it to the current length.

  • private subroutine tighten_idArgDynamicArray(this)

    Overloaded type bound procedure idArgDynamicArray%tighten().

    Arguments

    Type IntentOptional AttributesName
    class(idArgDynamicArray) :: this