gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_args::dcargsclose Interface Reference

Public Member Functions

subroutine dcargsclose0 (arg)
 

Detailed Description

Definition at line 287 of file dc_args.f90.

Member Function/Subroutine Documentation

◆ dcargsclose0()

subroutine dc_args::dcargsclose::dcargsclose0 ( type(args), intent(inout)  arg)

Finalize ARGS derived type variable

Performs finalization of ARGS derived type variable.

Parameters
[in,out]argARGS derived type variable to finalize

Definition at line 462 of file dc_args.f90.

463 use dc_hash, only: dchashdelete
464 implicit none
465 type(ARGS), intent(inout) :: arg
466 integer :: i
467 continue
468 if (arg % initialized) then
469 if ( associated( arg % opt_table ) ) then
470 do i = 1, size(arg % opt_table)
471 deallocate(arg % opt_table(i) % options)
472 end do
473
474 deallocate(arg % opt_table)
475 end if
476
477 deallocate(arg % cmd_opts_list)
478 deallocate(argstr_table)
479 deallocate(cmd_argv_list)
480 deallocate(cmd_opts_list)
481
482 call dchashdelete(arg % helpmsg)
483 end if
Hash (associative array) module.
Definition dc_hash.f90:143

The documentation for this interface was generated from the following file: