heap_capacity Function

private pure function heap_capacity(self) result(cap)

Number of entries the heap can hold before it has to grow.

Type Bound

heap_t

Arguments

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

Return Value integer(kind=default_int)


Called by

proc~~heap_capacity~~CalledByGraph proc~heap_capacity heap_t%heap_capacity proc~heap_push heap_t%heap_push proc~heap_push->proc~heap_capacity proc~heap_reserve heap_t%heap_reserve proc~heap_push->proc~heap_reserve proc~heap_reserve->proc~heap_capacity proc~a_star a_star proc~a_star->proc~heap_push proc~heap_init heap_t%heap_init proc~a_star->proc~heap_init proc~dijkstra dijkstra proc~dijkstra->proc~heap_push proc~dijkstra->proc~heap_init proc~heap_build_from heap_t%heap_build_from proc~heap_build_from->proc~heap_reserve proc~heap_init->proc~heap_reserve

Source Code

   pure function heap_capacity(self) result(cap)
      !! Number of entries the heap can hold before it has to grow.
      class(heap_t), intent(in) :: self
      integer(default_int) :: cap

      cap = 0
      if (allocated(self%keys)) cap = int(size(self%keys), default_int)
   end function heap_capacity