MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
characterstringmodule::characterstringtype Type Reference

This class is used to store a single deferred-length character string. It was designed to work in an array implementation so that a jagged character array could be used in MODFLOW and stored in the memory manager. More...

Collaboration diagram for characterstringmodule::characterstringtype:
Collaboration graph

Private Member Functions

procedure, pass(lhs) assign_to_charstring
 
procedure, pass(rhs) assign_from_charstring
 
procedure, pass(rhs) character_eq_charstring
 
procedure, pass(lhs) charstring_eq_character
 
procedure charstring_eq_charstring
 
procedure write_unformatted
 
procedure strlen
 
procedure destroy
 
generic assignment => assign_to_charstring, assign_from_charstring
 
generic operator => character_eq_charstring, charstring_eq_character, charstring_eq_charstring
 

Private Attributes

character(len=:), allocatable charstring
 

Detailed Description

The overloaded methods allow instances to behave like a regular string and work with intrinsic Fortran character strings. Ideas for the implementation were inspired by: https://gitlab.com/everythingfunctional/iso_varying_string

Definition at line 23 of file CharString.f90.

Member Function/Subroutine Documentation

◆ assign_from_charstring()

procedure, pass(rhs) characterstringmodule::characterstringtype::assign_from_charstring
private

Definition at line 28 of file CharString.f90.

◆ assign_to_charstring()

procedure, pass(lhs) characterstringmodule::characterstringtype::assign_to_charstring
private

Definition at line 27 of file CharString.f90.

◆ assignment()

generic characterstringmodule::characterstringtype::assignment
private

Definition at line 35 of file CharString.f90.

Here is the call graph for this function:

◆ character_eq_charstring()

procedure, pass(rhs) characterstringmodule::characterstringtype::character_eq_charstring
private

Definition at line 29 of file CharString.f90.

◆ charstring_eq_character()

procedure, pass(lhs) characterstringmodule::characterstringtype::charstring_eq_character
private

Definition at line 30 of file CharString.f90.

◆ charstring_eq_charstring()

procedure characterstringmodule::characterstringtype::charstring_eq_charstring
private

Definition at line 31 of file CharString.f90.

◆ destroy()

procedure characterstringmodule::characterstringtype::destroy
private

Definition at line 34 of file CharString.f90.

◆ operator()

generic characterstringmodule::characterstringtype::operator
private

Definition at line 36 of file CharString.f90.

Here is the call graph for this function:

◆ strlen()

procedure characterstringmodule::characterstringtype::strlen
private

Definition at line 33 of file CharString.f90.

◆ write_unformatted()

procedure characterstringmodule::characterstringtype::write_unformatted
private

Definition at line 32 of file CharString.f90.

Member Data Documentation

◆ charstring

character(len=:), allocatable characterstringmodule::characterstringtype::charstring
private

Definition at line 25 of file CharString.f90.

25  character(len=:), allocatable :: charstring

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