1 |
module atypes |
2 |
use atype_typedefs, ONLY: generic_item => atype, & |
3 |
generic_identPtrList => identPtrList |
4 |
implicit none |
5 |
contains |
6 |
!private generic_item |
7 |
!private generic_identPtrList |
8 |
include 'generic_list_functions.i90' |
9 |
end module atypes |
10 |
|
11 |
!! Takes proceedures from various atype modules and recombines them into an |
12 |
!! common interface. |
13 |
module generic_lists |
14 |
use atypes, ONLY: add_atype => add_item, & |
15 |
find_atype => find_item, & |
16 |
create_atype_identPtrlst => create_identPtrList, & |
17 |
get_atypeLstLen => getListLen, print_atypeList => print_list |
18 |
|
19 |
use atype_typedefs |
20 |
implicit none |
21 |
PRIVATE |
22 |
|
23 |
public :: add_item |
24 |
public :: find_item |
25 |
public :: create_identPtrlist |
26 |
public :: getListLen |
27 |
public :: print_list |
28 |
|
29 |
interface add_item |
30 |
module procedure add_atype |
31 |
end interface add_item |
32 |
|
33 |
interface find_item |
34 |
module procedure find_atype |
35 |
end interface |
36 |
|
37 |
|
38 |
interface create_identPtrlist |
39 |
module procedure create_atype_identPtrlst |
40 |
end interface |
41 |
|
42 |
interface getListLen |
43 |
module procedure get_atypeLstLen |
44 |
end interface |
45 |
|
46 |
interface print_list |
47 |
module procedure print_atypeList |
48 |
end interface |
49 |
|
50 |
end module generic_lists |