table Derived Type

type, private :: table


Inherited by

type~~table~~InheritedByGraph type~table table type~colormaps_info Colormaps_info type~colormaps_info->type~table colormaps

Components

Type Visibility Attributes Name Initial
character(len=:), private, allocatable :: author
character(len=:), private, allocatable :: colorbar
character(len=:), private, allocatable :: family
character(len=:), private, allocatable :: gradient
integer, private :: levels
character(len=:), private, allocatable :: license
character(len=:), private, allocatable :: name
character(len=:), private, allocatable :: package
character(len=:), private, allocatable :: palette
character(len=:), private, allocatable :: url

Type-Bound Procedures

procedure, public :: finalize => deallocate_table

  • private pure elemental subroutine deallocate_table(this)

    Arguments

    Type IntentOptional Attributes Name
    class(table), intent(inout) :: this

procedure, public :: set_info

  • private pure elemental subroutine set_info(this, package, family, name, gradient, palette, author, license, url, colorbar, levels)

    Arguments

    Type IntentOptional Attributes Name
    class(table), intent(inout) :: this
    character(len=*), intent(in) :: package
    character(len=*), intent(in) :: family
    character(len=*), intent(in) :: name
    character(len=*), intent(in) :: gradient
    character(len=*), intent(in) :: palette
    character(len=*), intent(in) :: author
    character(len=*), intent(in) :: license
    character(len=*), intent(in) :: url
    character(len=*), intent(in) :: colorbar
    integer, intent(in) :: levels

procedure, public :: write_info

  • private impure subroutine write_info(this, verbose, file_name)

    Arguments

    Type IntentOptional Attributes Name
    class(table), intent(inout) :: this
    integer, intent(in), optional :: verbose
    character(len=*), intent(in), optional :: file_name

Source Code

   type :: table
      character(len=:), allocatable, private :: name        ! Name of the colormap
      character(len=:), allocatable, private :: family      ! Family or category of the colormap
      character(len=:), allocatable, private :: gradient    ! Type of gradient used in the colormap
      character(len=:), allocatable, private :: palette     ! Palette used in the colormap
      character(len=:), allocatable, private :: colorbar    ! Colorbar style associated with the colormap
      character(len=:), allocatable, private :: package     ! Package or library associated with the colormap
      character(len=:), allocatable, private :: author      ! Author of the colormap
      character(len=:), allocatable, private :: license     ! License information for the colormap
      character(len=:), allocatable, private :: url         ! URL or web link to the colormap information
      integer                      , private :: levels      ! Number of discrete levels in the colormap
   contains
      procedure :: set_info   ! Procedure to set information for the colormap
      procedure :: write_info ! Procedure to print information about the colormap
      procedure :: finalize => deallocate_table ! Procedure to finalize the derived type
   end type table