ProfileReporter Derived Type

type, public, extends(MultiColumn) :: ProfileReporter


Inherits

type~~profilereporter~~InheritsGraph type~profilereporter ProfileReporter type~multicolumn MultiColumn type~profilereporter->type~multicolumn type~textcolumn TextColumn type~multicolumn->type~textcolumn type~textcolumnvector TextColumnVector type~multicolumn->type~textcolumnvector columns type~vector_wrapper~17 vector_wrapper type~textcolumnvector->type~vector_wrapper~17 elements type~vector_wrapper~17->type~textcolumn item

Constructor

public interface ProfileReporter

  • private function new_ProfileReporter(header) result(reporter)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: header(:)

    Return Value type(ProfileReporter)


Type-Bound Procedures

procedure, public :: add_column

  • private subroutine add_column(this, column)

    Arguments

    Type IntentOptional Attributes Name
    class(MultiColumn), intent(inout) :: this
    class(TextColumn), intent(in) :: column

procedure, public :: center

  • private subroutine center(this, rows, space)

    Arguments

    Type IntentOptional Attributes Name
    class(TextColumn), intent(in) :: this
    character(len=*), intent(inout) :: rows(:)
    character(len=1), intent(in), optional :: space

generic, public :: generate_report => generate_report_profiler

  • private function generate_report_profiler(this, p) result(report_lines)

    Arguments

    Type IntentOptional Attributes Name
    class(ProfileReporter), intent(in), target :: this
    class(BaseProfiler), intent(in), target :: p

    Return Value character(len=:), allocatable, (:)

procedure, public :: generate_report_profiler

  • private function generate_report_profiler(this, p) result(report_lines)

    Arguments

    Type IntentOptional Attributes Name
    class(ProfileReporter), intent(in), target :: this
    class(BaseProfiler), intent(in), target :: p

    Return Value character(len=:), allocatable, (:)

procedure, public :: get_header

  • private recursive subroutine get_header(this, header)

    Arguments

    Type IntentOptional Attributes Name
    class(MultiColumn), intent(in) :: this
    character(len=:), intent(out), allocatable :: header(:)

procedure, public :: get_num_rows_header

  • private function get_num_rows_header(this) result(num_rows)

    Arguments

    Type IntentOptional Attributes Name
    class(MultiColumn), intent(in) :: this

    Return Value integer

procedure, public :: get_num_rows_separator

  • private function get_num_rows_separator(this) result(num_rows)

    Arguments

    Type IntentOptional Attributes Name
    class(TextColumn), intent(in) :: this

    Return Value integer

procedure, public :: get_rows

  • private recursive subroutine get_rows(this, node, rows)

    Arguments

    Type IntentOptional Attributes Name
    class(MultiColumn), intent(in) :: this
    class(AbstractMeterNode), intent(in), target :: node
    character(len=:), intent(out), allocatable :: rows(:)

procedure, public :: get_separator

  • private subroutine get_separator(this, separator, k)

    Arguments

    Type IntentOptional Attributes Name
    class(TextColumn), intent(in) :: this
    character(len=*), intent(inout) :: separator(k)
    integer, intent(in) :: k

procedure, public :: get_width

  • private function get_width(this) result(column_width)

    Arguments

    Type IntentOptional Attributes Name
    class(TextColumn), intent(in) :: this

    Return Value integer

procedure, public :: set_separator

  • private subroutine set_separator(this, separator)

    Arguments

    Type IntentOptional Attributes Name
    class(TextColumn), intent(inout) :: this
    character(len=1), intent(in) :: separator

procedure, public :: set_width

  • private subroutine set_width(this, column_width)

    Arguments

    Type IntentOptional Attributes Name
    class(TextColumn), intent(inout) :: this
    integer, intent(in) :: column_width

Source Code

   type, extends(MultiColumn) :: ProfileReporter
      private
   contains
      procedure :: generate_report_profiler
      generic :: generate_report => generate_report_profiler
   end type ProfileReporter