dc_present::present_and_eq Interface Reference

Private Member Functions

logical function present_and_eq_integer (arg, val)
 
logical function present_and_eq_real (arg, val)
 
logical function present_and_eq_double (arg, val)
 

Detailed Description

Definition at line 48 of file dc_present.f90.

Member Function/Subroutine Documentation

◆ present_and_eq_double()

logical function dc_present::present_and_eq::present_and_eq_double ( real(dp), intent(in), optional  arg,
real(dp), intent(in)  val 
)
private

Definition at line 196 of file dc_present.f90.

196  !
197  ! arg が省略されておらず、且つ val と等しい場合、
198  ! <tt>.true.</tt> が返ります。
199  !
200  logical :: result
201  real(DP),intent(in),optional :: arg
202  real(DP),intent(in) :: val
203  continue
204  if(present(arg)) then
205  if(arg==val) then
206  result=.true.
207  else
208  result=.false.
209  endif
210  else
211  result=.false.
212  endif

◆ present_and_eq_integer()

logical function dc_present::present_and_eq::present_and_eq_integer ( integer, intent(in), optional  arg,
integer, intent(in)  val 
)
private

Definition at line 156 of file dc_present.f90.

156  !
157  ! arg が省略されておらず、且つ val と等しい場合、
158  ! <tt>.true.</tt> が返ります。
159  !
160  logical :: result
161  integer,intent(in),optional :: arg
162  integer,intent(in) :: val
163  continue
164  if(present(arg)) then
165  if(arg==val) then
166  result=.true.
167  else
168  result=.false.
169  endif
170  else
171  result=.false.
172  endif

◆ present_and_eq_real()

logical function dc_present::present_and_eq::present_and_eq_real ( real, intent(in), optional  arg,
real, intent(in)  val 
)
private

Definition at line 176 of file dc_present.f90.

176  !
177  ! arg が省略されておらず、且つ val と等しい場合、
178  ! <tt>.true.</tt> が返ります。
179  !
180  logical :: result
181  real,intent(in),optional :: arg
182  real,intent(in) :: val
183  continue
184  if(present(arg)) then
185  if(arg==val) then
186  result=.true.
187  else
188  result=.false.
189  endif
190  else
191  result=.false.
192  endif

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