@@ -14,7 +14,7 @@ module ParameterListEntryContainer
14
14
15
15
USE IR_Precision
16
16
USE ParameterListEntry
17
- USE WrapperFactoryList
17
+ USE WrapperFactoryListSingleton
18
18
USE WrapperFactory
19
19
USE DimensionsWrapper
20
20
@@ -26,7 +26,6 @@ module ParameterListEntryContainer
26
26
27
27
type, public :: ParameterListEntryContainer_t
28
28
private
29
- type (WrapperFactoryList_t) :: WrapperFactoryList
30
29
type (ParameterListEntry_t), allocatable :: DataBase(:)
31
30
integer (I4P) :: Size = 0_I4P
32
31
contains
@@ -67,7 +66,7 @@ module ParameterListEntryContainer
67
66
ParameterListEntryContainer_Get5D, &
68
67
ParameterListEntryContainer_Get6D, &
69
68
ParameterListEntryContainer_Get7D
70
- ! procedure, public :: isPresent => ParameterListEntryContainer_isPresent
69
+ procedure , public :: isPresent = > ParameterListEntryContainer_isPresent
71
70
! procedure, public :: isOfDataType => ParameterListEntryContainer_isOfDataType
72
71
! procedure, public :: isSubList => ParameterListEntryContainer_isSubList
73
72
procedure , public :: Del = > ParameterListEntryContainer_RemoveEntry
@@ -110,7 +109,6 @@ subroutine ParameterListEntryContainer_Init(this,Size)
110
109
this% Size = DefaultDataBaseSize
111
110
endif
112
111
allocate (this% DataBase(0 :this% Size-1 ))
113
- call this% WrapperFactoryList% Init()
114
112
end subroutine ParameterListEntryContainer_Init
115
113
116
114
@@ -121,7 +119,6 @@ subroutine ParameterListEntryContainer_Free(this)
121
119
class(ParameterListEntryContainer_t), intent (INOUT ) :: this ! < Parameter List Entry Containter type
122
120
integer (I4P) :: DBIterator ! < Database Iterator index
123
121
!- ----------------------------------------------------------------
124
- call this% WrapperFactoryList% Free()
125
122
if (allocated (this% DataBase)) THEN
126
123
do DBIterator= lbound (this% DataBase,dim= 1 ),ubound (this% DataBase,dim= 1 )
127
124
call this% DataBase(DBIterator)% Free()
@@ -152,7 +149,7 @@ subroutine ParameterListEntryContainer_Set0D(this,Key,Value)
152
149
class(WrapperFactory_t), pointer :: WrapperFactory
153
150
class(DimensionsWrapper_t), allocatable :: Wrapper
154
151
!- ----------------------------------------------------------------
155
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
152
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
156
153
if (associated (WrapperFactory)) call WrapperFactory% Wrap(Value= Value, Wrapper= Wrapper)
157
154
if (allocated (Wrapper)) then
158
155
call this% DataBase(this% Hash(Key= Key))% AddNode(Key= Key,Value= Wrapper)
@@ -172,7 +169,7 @@ subroutine ParameterListEntryContainer_Set1D(this,Key,Value)
172
169
class(WrapperFactory_t), pointer :: WrapperFactory
173
170
class(DimensionsWrapper_t), allocatable :: Wrapper
174
171
!- ----------------------------------------------------------------
175
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
172
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
176
173
if (associated (WrapperFactory)) call WrapperFactory% Wrap(Value= Value, Wrapper= Wrapper)
177
174
if (allocated (Wrapper)) then
178
175
call this% DataBase(this% Hash(Key= Key))% AddNode(Key= Key,Value= Wrapper)
@@ -192,7 +189,7 @@ subroutine ParameterListEntryContainer_Set2D(this,Key,Value)
192
189
class(WrapperFactory_t), pointer :: WrapperFactory
193
190
class(DimensionsWrapper_t), allocatable :: Wrapper
194
191
!- ----------------------------------------------------------------
195
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
192
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
196
193
if (associated (WrapperFactory)) call WrapperFactory% Wrap(Value= Value, Wrapper= Wrapper)
197
194
if (allocated (Wrapper)) then
198
195
call this% DataBase(this% Hash(Key= Key))% AddNode(Key= Key,Value= Wrapper)
@@ -212,7 +209,7 @@ subroutine ParameterListEntryContainer_Set3D(this,Key,Value)
212
209
class(WrapperFactory_t), pointer :: WrapperFactory
213
210
class(DimensionsWrapper_t), allocatable :: Wrapper
214
211
!- ----------------------------------------------------------------
215
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
212
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
216
213
if (associated (WrapperFactory)) call WrapperFactory% Wrap(Value= Value, Wrapper= Wrapper)
217
214
if (allocated (Wrapper)) then
218
215
call this% DataBase(this% Hash(Key= Key))% AddNode(Key= Key,Value= Wrapper)
@@ -232,7 +229,7 @@ subroutine ParameterListEntryContainer_Set4D(this,Key,Value)
232
229
class(WrapperFactory_t), pointer :: WrapperFactory
233
230
class(DimensionsWrapper_t), allocatable :: Wrapper
234
231
!- ----------------------------------------------------------------
235
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
232
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
236
233
if (associated (WrapperFactory)) call WrapperFactory% Wrap(Value= Value, Wrapper= Wrapper)
237
234
if (allocated (Wrapper)) then
238
235
call this% DataBase(this% Hash(Key= Key))% AddNode(Key= Key,Value= Wrapper)
@@ -252,7 +249,7 @@ subroutine ParameterListEntryContainer_Set5D(this,Key,Value)
252
249
class(WrapperFactory_t), pointer :: WrapperFactory
253
250
class(DimensionsWrapper_t), allocatable :: Wrapper
254
251
!- ----------------------------------------------------------------
255
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
252
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
256
253
if (associated (WrapperFactory)) call WrapperFactory% Wrap(Value= Value, Wrapper= Wrapper)
257
254
if (allocated (Wrapper)) then
258
255
call this% DataBase(this% Hash(Key= Key))% AddNode(Key= Key,Value= Wrapper)
@@ -272,7 +269,7 @@ subroutine ParameterListEntryContainer_Set6D(this,Key,Value)
272
269
class(WrapperFactory_t), pointer :: WrapperFactory
273
270
class(DimensionsWrapper_t), allocatable :: Wrapper
274
271
!- ----------------------------------------------------------------
275
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
272
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
276
273
if (associated (WrapperFactory)) call WrapperFactory% Wrap(Value= Value, Wrapper= Wrapper)
277
274
if (allocated (Wrapper)) then
278
275
call this% DataBase(this% Hash(Key= Key))% AddNode(Key= Key,Value= Wrapper)
@@ -292,7 +289,7 @@ subroutine ParameterListEntryContainer_Set7D(this,Key,Value)
292
289
class(WrapperFactory_t), pointer :: WrapperFactory
293
290
class(DimensionsWrapper_t), allocatable :: Wrapper
294
291
!- ----------------------------------------------------------------
295
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
292
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
296
293
if (associated (WrapperFactory)) call WrapperFactory% Wrap(Value= Value, Wrapper= Wrapper)
297
294
if (allocated (Wrapper)) then
298
295
call this% DataBase(this% Hash(Key= Key))% AddNode(Key= Key,Value= Wrapper)
@@ -319,7 +316,7 @@ subroutine ParameterListEntryContainer_Get0D(this,Key,Value)
319
316
type is (ParameterListEntry_t)
320
317
call Node% GetValue(Value= Wrapper)
321
318
if (allocated (Wrapper)) then
322
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
319
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
323
320
if (associated (WrapperFactory)) call WrapperFactory% UnWrap(Wrapper= Wrapper, Value= Value)
324
321
endif
325
322
end select
@@ -344,7 +341,7 @@ subroutine ParameterListEntryContainer_Get1D(this,Key,Value)
344
341
type is (ParameterListEntry_t)
345
342
call Node% GetValue(Value= Wrapper)
346
343
if (allocated (Wrapper)) then
347
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
344
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
348
345
if (associated (WrapperFactory)) call WrapperFactory% UnWrap(Wrapper= Wrapper, Value= Value)
349
346
endif
350
347
end select
@@ -369,7 +366,7 @@ subroutine ParameterListEntryContainer_Get2D(this,Key,Value)
369
366
type is (ParameterListEntry_t)
370
367
call Node% GetValue(Value= Wrapper)
371
368
if (allocated (Wrapper)) then
372
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
369
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
373
370
if (associated (WrapperFactory)) call WrapperFactory% UnWrap(Wrapper= Wrapper, Value= Value)
374
371
endif
375
372
end select
@@ -394,7 +391,7 @@ subroutine ParameterListEntryContainer_Get3D(this,Key,Value)
394
391
type is (ParameterListEntry_t)
395
392
call Node% GetValue(Value= Wrapper)
396
393
if (allocated (Wrapper)) then
397
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
394
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
398
395
if (associated (WrapperFactory)) call WrapperFactory% UnWrap(Wrapper= Wrapper, Value= Value)
399
396
endif
400
397
end select
@@ -419,7 +416,7 @@ subroutine ParameterListEntryContainer_Get4D(this,Key,Value)
419
416
type is (ParameterListEntry_t)
420
417
call Node% GetValue(Value= Wrapper)
421
418
if (allocated (Wrapper)) then
422
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
419
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
423
420
if (associated (WrapperFactory)) call WrapperFactory% UnWrap(Wrapper= Wrapper, Value= Value)
424
421
endif
425
422
end select
@@ -444,7 +441,7 @@ subroutine ParameterListEntryContainer_Get5D(this,Key,Value)
444
441
type is (ParameterListEntry_t)
445
442
call Node% GetValue(Value= Wrapper)
446
443
if (allocated (Wrapper)) then
447
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
444
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
448
445
if (associated (WrapperFactory)) call WrapperFactory% UnWrap(Wrapper= Wrapper, Value= Value)
449
446
endif
450
447
end select
@@ -469,7 +466,7 @@ subroutine ParameterListEntryContainer_Get6D(this,Key,Value)
469
466
type is (ParameterListEntry_t)
470
467
call Node% GetValue(Value= Wrapper)
471
468
if (allocated (Wrapper)) then
472
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
469
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
473
470
if (associated (WrapperFactory)) call WrapperFactory% UnWrap(Wrapper= Wrapper, Value= Value)
474
471
endif
475
472
end select
@@ -494,7 +491,7 @@ subroutine ParameterListEntryContainer_Get7D(this,Key,Value)
494
491
type is (ParameterListEntry_t)
495
492
call Node% GetValue(Value= Wrapper)
496
493
if (allocated (Wrapper)) then
497
- WrapperFactory = > this % WrapperFactoryList % GetFactory(Value= Value)
494
+ WrapperFactory = > TheWrapperFactoryList % GetFactory(Value= Value)
498
495
if (associated (WrapperFactory)) call WrapperFactory% UnWrap(Wrapper= Wrapper, Value= Value)
499
496
endif
500
497
end select
@@ -569,6 +566,7 @@ subroutine ParameterListEntryContainer_Print(this, unit, prefix, iostat, iomsg)
569
566
endif
570
567
if (present (iostat)) iostat = iostatd
571
568
if (present (iomsg)) iomsg = iomsgd
569
+ call TheWrapperFactoryList% Print (unit= unit)
572
570
end subroutine ParameterListEntryContainer_Print
573
571
574
572
0 commit comments