Skip to content

mod_table

Lines: 141 | Visibility: private

This module provides a derived type PrettyTable and associated methods for creating and printing simple, formatted text-based, centered, equal-width tables to standard output. It is designed to help organize and display data in a clean, readable format.

Dependencies

Uses

module~~mod_table~~UsesGraph module~mod_table mod_table module~mod_decorations mod_decorations module~mod_table->module~mod_decorations module~mod_io mod_io module~mod_table->module~mod_io module~mod_precision mod_precision module~mod_table->module~mod_precision module~mod_throw mod_throw module~mod_table->module~mod_throw module~mod_decorations->module~mod_io module~mod_decorations->module~mod_precision module~mod_decorations->module~mod_throw module~mod_io->module~mod_precision iso_fortran_env iso_fortran_env module~mod_io->iso_fortran_env module~mod_optional_args mod_optional_args module~mod_io->module~mod_optional_args iso_c_binding iso_c_binding module~mod_precision->iso_c_binding module~mod_precision->iso_fortran_env module~mod_throw->module~mod_io module~mod_throw->module~mod_precision module~mod_throw->iso_c_binding module~mod_throw->iso_fortran_env module~mod_mpi mod_mpi module~mod_throw->module~mod_mpi module~mod_sort mod_sort module~mod_throw->module~mod_sort module~mod_mpi->module~mod_precision mpi_f08 mpi_f08 module~mod_mpi->mpi_f08 module~mod_sort->module~mod_precision

Used By

module~~mod_table~~UsedByGraph module~mod_table mod_table module~mod_memory_estimation mod_memory_estimation module~mod_memory_estimation->module~mod_table module~mod_statistics_container mod_statistics_container module~mod_statistics_container->module~mod_table module~mod_dataloader_file mod_dataloader_file module~mod_dataloader_file->module~mod_memory_estimation module~mod_dataset_statistics mod_dataset_statistics module~mod_dataset_statistics->module~mod_statistics_container module~mod_dataset_statistics->module~mod_dataloader_file module~mod_dataset_statistics_chi_all_chunks mod_dataset_statistics_chi_all_chunks module~mod_dataset_statistics_chi_all_chunks->module~mod_statistics_container module~mod_dataset_statistics_chi_all_chunks->module~mod_dataloader_file module~mod_dataset_statistics_chi_all_chunks->module~mod_dataset_statistics module~mod_feature_map_scaling_all_chunks mod_feature_map_scaling_all_chunks module~mod_feature_map_scaling_all_chunks->module~mod_statistics_container module~mod_feature_map_scaling_all_chunks->module~mod_dataloader_file module~mod_global_feature_calculator mod_global_feature_calculator module~mod_feature_map_scaling_all_chunks->module~mod_global_feature_calculator module~mod_precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk module~mod_feature_map_scaling_all_chunks->module~mod_precalc_nl_deriv_features_single_chunk module~mod_prediction_statistics mod_prediction_statistics module~mod_feature_map_scaling_all_chunks->module~mod_prediction_statistics module~mod_ee4g_feature_calculator mod_ee4g_feature_calculator module~mod_feature_map_scaling_all_chunks->module~mod_ee4g_feature_calculator module~mod_qeq_feature_calculator mod_qeq_feature_calculator module~mod_feature_map_scaling_all_chunks->module~mod_qeq_feature_calculator module~mod_structure_batch_iterator mod_structure_batch_iterator module~mod_feature_map_scaling_all_chunks->module~mod_structure_batch_iterator module~mod_global_feature_calculator->module~mod_statistics_container module~mod_global_feature_statistics mod_global_feature_statistics module~mod_global_feature_calculator->module~mod_global_feature_statistics module~mod_global_feature_statistics->module~mod_statistics_container module~mod_statisticsfile mod_statisticsfile module~mod_global_feature_statistics->module~mod_statisticsfile module~mod_precalc_nl_deriv_features_single_chunk->module~mod_memory_estimation module~mod_precalc_nl_deriv_features_single_chunk->module~mod_dataloader_file module~mod_prediction_statistics->module~mod_statistics_container module~mod_statisticsfile->module~mod_statistics_container module~mod_train_mode mod_train_mode module~mod_train_mode->module~mod_statistics_container module~mod_train_mode->module~mod_dataloader_file module~mod_train_mode->module~mod_dataset_statistics module~mod_train_mode->module~mod_dataset_statistics_chi_all_chunks module~mod_train_mode->module~mod_feature_map_scaling_all_chunks module~mod_train_mode->module~mod_global_feature_calculator module~mod_train_mode->module~mod_precalc_nl_deriv_features_single_chunk module~mod_train_mode->module~mod_ee4g_feature_calculator module~mod_precalc_coulomb_matrix_all_chunks mod_precalc_coulomb_matrix_all_chunks module~mod_train_mode->module~mod_precalc_coulomb_matrix_all_chunks module~mod_predict_all_chunks mod_predict_all_chunks module~mod_train_mode->module~mod_predict_all_chunks module~mod_predict_ee4g_feature_calculator_multiple_structures mod_predict_ee4g_feature_calculator_multiple_structures module~mod_train_mode->module~mod_predict_ee4g_feature_calculator_multiple_structures module~mod_predict_qeq_feature_calculator_multiple_structures mod_predict_qeq_feature_calculator_multiple_structures module~mod_train_mode->module~mod_predict_qeq_feature_calculator_multiple_structures module~mod_train_mode->module~mod_qeq_feature_calculator module~mod_train_loop_4g_charges mod_train_loop_4g_charges module~mod_train_mode->module~mod_train_loop_4g_charges module~mod_train_loop_atomic_property mod_train_loop_atomic_property module~mod_train_mode->module~mod_train_loop_atomic_property module~mod_train_loop_short_range mod_train_loop_short_range module~mod_train_mode->module~mod_train_loop_short_range module~mod_two_body mod_two_body module~mod_train_mode->module~mod_two_body module~mod_initialize mod_initialize module~mod_train_mode->module~mod_initialize module~mod_predict_4g_charges_training_qeq_multiple_structures mod_predict_4g_charges_training_qeq_multiple_structures module~mod_train_mode->module~mod_predict_4g_charges_training_qeq_multiple_structures module~mod_write_outfiles_training mod_write_outfiles_training module~mod_train_mode->module~mod_write_outfiles_training module~mod_calculate_coulomb_matrix mod_calculate_coulomb_matrix module~mod_calculate_coulomb_matrix->module~mod_dataloader_file module~mod_cost_calculator mod_cost_calculator module~mod_cost_calculator->module~mod_dataloader_file module~mod_cost_calculator->module~mod_write_outfiles_training module~mod_ee4g_feature_calculator->module~mod_global_feature_calculator module~mod_enforce_reading mod_enforce_reading module~mod_enforce_reading->module~mod_global_feature_calculator module~mod_global_features_helper mod_global_features_helper module~mod_global_features_helper->module~mod_global_feature_calculator module~mod_global_features_helper->module~mod_global_feature_statistics module~mod_output_files_and_cost mod_output_files_and_cost module~mod_output_files_and_cost->module~mod_dataloader_file module~mod_output_files_and_cost->module~mod_global_feature_statistics module~mod_output_files_and_cost->module~mod_cost_calculator module~mod_output_files_and_cost->module~mod_ee4g_feature_calculator module~mod_predict_multiple_structures mod_predict_multiple_structures module~mod_output_files_and_cost->module~mod_predict_multiple_structures module~mod_output_files_and_cost_4g_charges mod_output_files_and_cost_4g_charges module~mod_output_files_and_cost_4g_charges->module~mod_dataloader_file module~mod_output_files_and_cost_4g_charges->module~mod_cost_calculator module~mod_output_files_and_cost_4g_charges->module~mod_predict_4g_charges_training_qeq_multiple_structures module~mod_output_files_and_cost_4g_short_range mod_output_files_and_cost_4g_short_range module~mod_output_files_and_cost_4g_short_range->module~mod_dataloader_file module~mod_output_files_and_cost_4g_short_range->module~mod_global_feature_calculator module~mod_output_files_and_cost_4g_short_range->module~mod_cost_calculator module~mod_predict_4g_short_range_training_qeq_multiple_structures mod_predict_4g_short_range_training_qeq_multiple_structures module~mod_output_files_and_cost_4g_short_range->module~mod_predict_4g_short_range_training_qeq_multiple_structures module~mod_output_files_and_cost_4g_short_range->module~mod_predict_qeq_feature_calculator_multiple_structures module~mod_post_processing_wrapper_single_structure mod_post_processing_wrapper_single_structure module~mod_post_processing_wrapper_single_structure->module~mod_global_feature_statistics module~mod_post_processing_wrapper_single_structure->module~mod_ee4g_feature_calculator module~mod_post_processing_wrapper_single_structure->module~mod_global_features_helper module~mod_post_processing_wrapper_single_structure->module~mod_two_body module~mod_evaluate_4g_single_structure mod_evaluate_4g_single_structure module~mod_post_processing_wrapper_single_structure->module~mod_evaluate_4g_single_structure module~mod_post_processing_4g_single_structure mod_post_processing_4g_single_structure module~mod_post_processing_wrapper_single_structure->module~mod_post_processing_4g_single_structure module~mod_precalc_coulomb_matrix_all_chunks->module~mod_dataloader_file module~mod_precalc_coulomb_matrix_all_chunks->module~mod_predict_4g_charges_training_qeq_multiple_structures module~mod_precompute_features_all_chunks mod_precompute_features_all_chunks module~mod_precompute_features_all_chunks->module~mod_dataloader_file module~mod_precompute_global_features_all_chunks mod_precompute_global_features_all_chunks module~mod_precompute_global_features_all_chunks->module~mod_dataloader_file module~mod_precompute_global_features_all_chunks->module~mod_ee4g_feature_calculator module~mod_precompute_global_features_all_chunks->module~mod_predict_ee4g_feature_calculator_multiple_structures module~mod_precompute_global_features_all_chunks->module~mod_predict_qeq_feature_calculator_multiple_structures module~mod_precompute_global_features_all_chunks->module~mod_qeq_feature_calculator module~mod_predict_4g_no_force_trick_single_structure mod_predict_4g_no_force_trick_single_structure module~mod_predict_4g_no_force_trick_single_structure->module~mod_global_feature_calculator module~mod_predict_4g_no_force_trick_single_structure->module~mod_global_features_helper module~mod_predict_4g_short_range_training_qeq_single_structure mod_predict_4g_short_range_training_qeq_single_structure module~mod_predict_4g_no_force_trick_single_structure->module~mod_predict_4g_short_range_training_qeq_single_structure module~mod_predict_4g_no_force_trick_single_structure->module~mod_qeq_feature_calculator module~mod_predict_qeq_feature_calculator_single_structure mod_predict_qeq_feature_calculator_single_structure module~mod_predict_4g_no_force_trick_single_structure->module~mod_predict_qeq_feature_calculator_single_structure module~mod_predict_4g_short_range_training_qeq_multiple_structures->module~mod_global_feature_calculator module~mod_predict_4g_short_range_training_qeq_multiple_structures->module~mod_global_features_helper module~mod_predict_4g_short_range_training_qeq_multiple_structures->module~mod_predict_4g_short_range_training_qeq_single_structure module~mod_predict_4g_short_range_training_qeq_multiple_structures->module~mod_structure_batch_iterator module~mod_predict_4g_short_range_training_qeq_single_structure->module~mod_global_feature_calculator module~mod_predict_all_chunks->module~mod_dataloader_file module~mod_predict_all_chunks->module~mod_predict_multiple_structures module~mod_predict_all_chunks->module~mod_two_body module~mod_predict_ee4g_feature_calculator_multiple_structures->module~mod_dataloader_file module~mod_predict_ee4g_feature_calculator_multiple_structures->module~mod_ee4g_feature_calculator module~mod_predict_ee4g_feature_calculator_multiple_structures->module~mod_qeq_feature_calculator module~mod_predict_mode mod_predict_mode module~mod_predict_mode->module~mod_dataloader_file module~mod_predict_mode->module~mod_global_feature_statistics module~mod_predict_mode->module~mod_ee4g_feature_calculator module~mod_predict_mode->module~mod_enforce_reading module~mod_predict_mode->module~mod_predict_multiple_structures module~mod_predict_mode->module~mod_qeq_feature_calculator module~mod_predict_mode->module~mod_two_body module~mod_predict_mode->module~mod_initialize module~mod_write_outfiles mod_write_outfiles module~mod_predict_mode->module~mod_write_outfiles module~mod_predict_multiple_structures->module~mod_global_feature_statistics module~mod_predict_multiple_structures->module~mod_ee4g_feature_calculator module~mod_predict_multiple_structures->module~mod_post_processing_wrapper_single_structure module~mod_predict_multiple_structures->module~mod_structure_batch_iterator module~mod_predict_multiple_structures->module~mod_two_body module~mod_predict_qeq_feature_calculator_multiple_structures->module~mod_dataloader_file module~mod_predict_qeq_feature_calculator_multiple_structures->module~mod_qeq_feature_calculator module~mod_predict_qeq_feature_calculator_multiple_structures->module~mod_structure_batch_iterator module~mod_predict_qeq_feature_calculator_multiple_structures->module~mod_predict_qeq_feature_calculator_single_structure module~mod_predict_single_structure mod_predict_single_structure module~mod_predict_single_structure->module~mod_global_feature_statistics module~mod_predict_single_structure->module~mod_ee4g_feature_calculator module~mod_predict_single_structure->module~mod_post_processing_wrapper_single_structure module~mod_predict_single_structure->module~mod_two_body module~mod_qeq_feature_calculator->module~mod_global_feature_calculator module~mod_runner_interface mod_runner_interface module~mod_runner_interface->module~mod_global_feature_statistics module~mod_runner_interface->module~mod_ee4g_feature_calculator module~mod_runner_interface->module~mod_two_body module~mod_structure_batch_iterator->module~mod_global_feature_calculator module~mod_structure_batch_iterator->module~mod_global_features_helper module~mod_train_4g_atomic_charges_structure_batch mod_train_4g_atomic_charges_structure_batch module~mod_train_4g_atomic_charges_structure_batch->module~mod_dataloader_file module~mod_train_loop_4g_charges->module~mod_dataloader_file module~mod_train_loop_4g_charges->module~mod_cost_calculator module~mod_train_loop_4g_charges->module~mod_output_files_and_cost_4g_charges module~mod_train_loop_4g_charges->module~mod_train_4g_atomic_charges_structure_batch module~mod_train_loop_4g_charges->module~mod_initialize module~mod_train_loop_atomic_property->module~mod_dataloader_file module~mod_train_loop_atomic_property->module~mod_cost_calculator module~mod_train_loop_atomic_property->module~mod_output_files_and_cost module~mod_train_loop_atomic_property->module~mod_initialize module~mod_train_loop_short_range->module~mod_dataloader_file module~mod_train_loop_short_range->module~mod_global_feature_calculator module~mod_train_loop_short_range->module~mod_global_feature_statistics module~mod_train_loop_short_range->module~mod_cost_calculator module~mod_train_loop_short_range->module~mod_ee4g_feature_calculator module~mod_train_loop_short_range->module~mod_global_features_helper module~mod_train_loop_short_range->module~mod_output_files_and_cost module~mod_train_loop_short_range->module~mod_output_files_and_cost_4g_short_range module~mod_train_loop_short_range->module~mod_predict_ee4g_feature_calculator_multiple_structures module~mod_train_loop_short_range->module~mod_predict_qeq_feature_calculator_multiple_structures module~mod_train_loop_short_range->module~mod_qeq_feature_calculator module~mod_train_loop_short_range->module~mod_initialize module~mod_train_energy_multiple_structures mod_train_energy_multiple_structures module~mod_train_loop_short_range->module~mod_train_energy_multiple_structures module~mod_train_forces_multiple_structures mod_train_forces_multiple_structures module~mod_train_loop_short_range->module~mod_train_forces_multiple_structures module~mod_two_body->module~mod_dataloader_file program~runner RuNNer program~runner->module~mod_dataloader_file program~runner->module~mod_train_mode program~runner->module~mod_calculate_coulomb_matrix program~runner->module~mod_ee4g_feature_calculator program~runner->module~mod_precompute_features_all_chunks program~runner->module~mod_precompute_global_features_all_chunks program~runner->module~mod_predict_mode program~runner->module~mod_qeq_feature_calculator program~runner->module~mod_two_body program~runner->module~mod_initialize module~mod_evaluate_4g_single_structure->module~mod_ee4g_feature_calculator module~mod_feature_calc_interface mod_feature_calc_interface module~mod_feature_calc_interface->module~mod_runner_interface module~mod_generic_interface mod_generic_interface module~mod_feature_calc_interface->module~mod_generic_interface module~mod_generic_interface->module~mod_predict_single_structure module~mod_generic_interface->module~mod_runner_interface module~mod_initialize->module~mod_ee4g_feature_calculator module~mod_initialize->module~mod_qeq_feature_calculator module~mod_initialize->module~mod_two_body module~mod_lammps_interface mod_lammps_interface module~mod_lammps_interface->module~mod_runner_interface module~mod_runner_interface_bindings mod_runner_interface_bindings module~mod_lammps_interface->module~mod_runner_interface_bindings module~mod_post_processing_4g_single_structure->module~mod_ee4g_feature_calculator module~mod_post_processing_4g_single_structure->module~mod_evaluate_4g_single_structure module~mod_predict_4g_charges_training_qeq_multiple_structures->module~mod_structure_batch_iterator module~mod_predict_qeq_feature_calculator_single_structure->module~mod_qeq_feature_calculator module~mod_runner_interface_bindings->module~mod_enforce_reading module~mod_runner_interface_bindings->module~mod_global_features_helper module~mod_runner_interface_bindings->module~mod_qeq_feature_calculator module~mod_runner_interface_bindings->module~mod_runner_interface module~mod_runner_interface_bindings->module~mod_two_body module~mod_runner_interface_bindings->module~mod_evaluate_4g_single_structure module~mod_runner_interface_bindings->module~mod_initialize module~mod_train_energy_multiple_structures->module~mod_initialize module~mod_train_forces_multiple_structures->module~mod_initialize module~mod_train_forces_multiple_structures->module~mod_train_energy_multiple_structures module~mod_write_outfiles->module~mod_initialize module~mod_write_outfiles_training->module~mod_write_outfiles

Derived Types Summary

Name Description
PrettyTable A type for creating and managing formatted text tables. This type holds the configuration for a...

Procedures Summary

Name Type Description
center_content Function Centers a string within the available cell content space. This function takes a string, checks...
initialize_table Subroutine Initializes a PrettyTable object with specified properties. This subroutine configures the...
toprule Subroutine Prints the table heading to STDOUT. Uses the table's name and total width to print a centered...
bottomrule Subroutine Prints a finalizing separator line to STDOUT. This creates a horizontal line of dashes (-)...
start_row Subroutine Starts a new row in the table. This subroutine prints the initial vertical bar (|) for a new...
end_row Subroutine Ends the current row in the table. This subroutine prints a newline character to move the...
cell_character Subroutine Prints a single cell with its content into the current row. The provided content is centered...
cell_real Subroutine Prints a single double-precision real-valued number to a cell. See cell_character for details.
cell_int Subroutine Prints a single integer to a cell. See cell_character for details.
cell_logical Subroutine Prints a single logical value to a cell. See cell_character for details.
check_content_length Subroutine Checks if the content length exceeds the cell's maximum capacity. If the length of the input...

Derived Types Details

type PrettyTable

A type for creating and managing formatted text tables.

This type holds the configuration for a table, including its dimensions, column count, and formatting specifications. It provides methods for printing the table structure and content row by row.

Components

  • name : character– The title of the table.
  • table_width : integer– The total width of the table in characters.
  • ncols : integer– The number of columns in the table.
  • cell_width : integer– The width of a single cell, including padding and borders.
  • cell_content_size : integer– The maximum number of characters for content within a cell.
  • char_fmt : character– The format string for printing a string to a cell.
  • real_fmt : character– The format string for printing a real-valued number to a cell.
  • int_fmt : character– The format string for printing an integer to a cell.
  • l_fmt : character– The format string for printing logicals to a cell.
  • cell_fmt : character– The format string for printing a string to a cell.
  • first_cell_fmt : character– The format string for printing the first cell in a row.
  • lgrid : logical– Whether to print grid markers between cells.

Type-Bound Procedures

Name Attributes Binding
init public ⇒ initialize_table
toprule public ⇒ toprule
bottomrule public ⇒ bottomrule
start_row public ⇒ start_row
end_row public ⇒ end_row
cell public ⇒ cell_character⇒ cell_real⇒ cell_int⇒ cell_logical
cell_character private ⇒ cell_character
cell_real private ⇒ cell_real
cell_int private ⇒ cell_int
cell_logical private ⇒ cell_logical
check_content_length private ⇒ check_content_length
center_content private ⇒ center_content

Procedure Details

function center_content

function center_content( &
    self, &
    content &
)

Centers a string within the available cell content space.

This function takes a string, checks its length, and then adds padding on the left and right to center it within a new string whose length is equal to cell_content_size.

Arguments

  • self : class(PrettyTable) [in]
  • content : character [in]– The string to be centered.

Called By

proc~~center_content~~CalledByGraph proc~center_content mod_table::PrettyTable%center_content proc~cell_character mod_table::PrettyTable%cell_character proc~cell_character->proc~center_content none~cell mod_table::PrettyTable%cell none~cell->proc~cell_character proc~cell_int mod_table::PrettyTable%cell_int none~cell->proc~cell_int proc~cell_logical mod_table::PrettyTable%cell_logical none~cell->proc~cell_logical proc~cell_real mod_table::PrettyTable%cell_real none~cell->proc~cell_real proc~cell_int->proc~cell_character proc~cell_logical->proc~cell_character proc~cell_real->proc~cell_character proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->none~cell proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->none~cell proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine initialize_table

subroutine initialize_table( &
    self, &
    name, &
    ncols, &
    table_width, &
    lgrid &
)

Initializes a PrettyTable object with specified properties.

This subroutine configures the table's dimensions and formatting strings based on the desired total width and number of columns. It calculates the width of individual cells and the maximum size of the content within them.

Arguments

  • self : class(PrettyTable) [inout]
  • name : character [in]– The title of the table, which will be displayed in the header.
  • ncols : integer [in]– The number of columns the table should have.
  • table_width : integer [in]– The desired total width of the table in characters. The actual width will be as close to the given value as possible, but adjusted to fit the equal-sized columns.
  • lgrid : logical [in]

Called By

proc~~initialize_table~~CalledByGraph proc~initialize_table mod_table::PrettyTable%initialize_table proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->proc~initialize_table proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->proc~initialize_table proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine toprule

subroutine toprule( &
    self &
)

Prints the table heading to STDOUT.

Uses the table's name and total width to print a centered title with separator lines.

Arguments

Called By

proc~~toprule~~CalledByGraph proc~toprule mod_table::PrettyTable%toprule proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->proc~toprule proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->proc~toprule proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine bottomrule

subroutine bottomrule( &
    self &
)

Prints a finalizing separator line to STDOUT.

This creates a horizontal line of dashes (-) that matches the total width of the table, typically used to close the table.

Arguments


subroutine start_row

subroutine start_row( &
    self &
)

Starts a new row in the table.

This subroutine prints the initial vertical bar (|) for a new row without advancing to the next line, preparing for subsequent cell content.

Arguments

Called By

proc~~start_row~~CalledByGraph proc~start_row mod_table::PrettyTable%start_row proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->proc~start_row proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->proc~start_row proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine end_row

subroutine end_row( &
    self &
)

Ends the current row in the table.

This subroutine prints a newline character to move the cursor to the next line, finalizing the current row.

Arguments

Called By

proc~~end_row~~CalledByGraph proc~end_row mod_table::PrettyTable%end_row proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->proc~end_row proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->proc~end_row proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine cell_character

subroutine cell_character( &
    self, &
    content &
)

Prints a single cell with its content into the current row.

The provided content is centered within the cell's content area and printed to standard output without advancing to the next line.

Arguments

  • self : class(PrettyTable) [in]
  • content : character [in]– The string content to be placed in the cell. Its length must be less than or equal to `self%cell_content_size`. It will be automatically centered.

Called By

proc~~cell_character~~CalledByGraph proc~cell_character mod_table::PrettyTable%cell_character none~cell mod_table::PrettyTable%cell none~cell->proc~cell_character proc~cell_int mod_table::PrettyTable%cell_int none~cell->proc~cell_int proc~cell_logical mod_table::PrettyTable%cell_logical none~cell->proc~cell_logical proc~cell_real mod_table::PrettyTable%cell_real none~cell->proc~cell_real proc~cell_int->proc~cell_character proc~cell_logical->proc~cell_character proc~cell_real->proc~cell_character proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->none~cell proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->none~cell proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine cell_real

subroutine cell_real( &
    self, &
    content &
)

Prints a single double-precision real-valued number to a cell. See cell_character for details.

Arguments

  • self : class(PrettyTable) [in]
  • content : real(DP) [in]– The double-precision real number to be placed in the cell.

Called By

proc~~cell_real~~CalledByGraph proc~cell_real mod_table::PrettyTable%cell_real none~cell mod_table::PrettyTable%cell none~cell->proc~cell_real proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->none~cell proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->none~cell proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine cell_int

subroutine cell_int( &
    self, &
    content &
)

Prints a single integer to a cell. See cell_character for details.

Arguments

  • self : class(PrettyTable) [in]
  • content : integer [in]– The double-precision real number to be placed in the cell.

Called By

proc~~cell_int~~CalledByGraph proc~cell_int mod_table::PrettyTable%cell_int none~cell mod_table::PrettyTable%cell none~cell->proc~cell_int proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->none~cell proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->none~cell proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine cell_logical

subroutine cell_logical( &
    self, &
    content &
)

Prints a single logical value to a cell. See cell_character for details.

Arguments

  • self : class(PrettyTable) [in]
  • content : logical [in]– The double-precision real number to be placed in the cell.

Called By

proc~~cell_logical~~CalledByGraph proc~cell_logical mod_table::PrettyTable%cell_logical none~cell mod_table::PrettyTable%cell none~cell->proc~cell_logical proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->none~cell proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->none~cell proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode

subroutine check_content_length

subroutine check_content_length( &
    self, &
    content &
)

Checks if the content length exceeds the cell's maximum capacity.

If the length of the input string is greater than cell_content_size, the program will terminate with an error message.

Arguments

  • self : class(PrettyTable) [in]
  • content : character [in]– The string whose length is to be validated.

Called By

proc~~check_content_length~~CalledByGraph proc~check_content_length mod_table::PrettyTable%check_content_length proc~center_content mod_table::PrettyTable%center_content proc~center_content->proc~check_content_length proc~cell_character mod_table::PrettyTable%cell_character proc~cell_character->proc~center_content none~cell mod_table::PrettyTable%cell none~cell->proc~cell_character proc~cell_int mod_table::PrettyTable%cell_int none~cell->proc~cell_int proc~cell_logical mod_table::PrettyTable%cell_logical none~cell->proc~cell_logical proc~cell_real mod_table::PrettyTable%cell_real none~cell->proc~cell_real proc~cell_int->proc~cell_character proc~cell_logical->proc~cell_character proc~cell_real->proc~cell_character proc~print_memory_summary mod_memory_estimation::print_memory_summary proc~print_memory_summary->none~cell proc~print_statistics_container mod_statistics_container::StatisticsContainer%print_statistics_container proc~print_statistics_container->none~cell proc~precalc_nl_deriv_features_single_chunk mod_precalc_nl_deriv_features_single_chunk::precalc_nl_deriv_features_single_chunk proc~precalc_nl_deriv_features_single_chunk->proc~print_memory_summary proc~train_mode mod_train_mode::train_mode proc~train_mode->proc~precalc_nl_deriv_features_single_chunk program~runner RuNNer program~runner->proc~train_mode