NameColumn Derived Type

type, public, extends(SimpleTextColumn) :: NameColumn


Inherits

type~~namecolumn~~InheritsGraph type~namecolumn NameColumn type~simpletextcolumn SimpleTextColumn type~namecolumn->type~simpletextcolumn type~textcolumn TextColumn type~simpletextcolumn->type~textcolumn

Constructor

public interface NameColumn

  • private function new_NameColumn(width, indent, separator) result(column)

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: width
    character(len=*), intent(in), optional :: indent
    character(len=1), intent(in), optional :: separator

    Return Value type(NameColumn)


Type-Bound Procedures

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

procedure, public :: get_header

  • private subroutine get_header(this, header)

    Arguments

    Type IntentOptional Attributes Name
    class(NameColumn), 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(NameColumn), 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_row

  • private function get_row(this, node) result(row)

    Arguments

    Type IntentOptional Attributes Name
    class(NameColumn), intent(in) :: this
    class(AbstractMeterNode), intent(in) :: node

    Return Value character(len=:), allocatable

procedure, public :: get_rows

  • private subroutine get_rows(this, node, rows)

    Arguments

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

procedure, public :: get_rows_range

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(SimpleTextColumn) :: NameColumn
      private
      character(:), allocatable :: indent
   contains
      procedure :: get_header
      procedure :: get_num_rows_header
      procedure :: get_row
   end type NameColumn