![]() |
Prev | Next |
target.cond_assign(cop, left, right, if_true, if_false)
if( left cop right )
target = if_true
else
target = if_false
records either the true or false case depending on the value
of
left
and
right
; see a_fun_ctor
.
If
left
or
right
is a
variable
,
it may be desirable to switch between
if_true
and
if_false
depending of the value of the independent variable during
calls to order zero a_fun_forward
.
The cond_assign
does this.
a_double& target
const char *cop
The comparison is
left cop right
where
cop
is one of the following:
cop
| |
< | less than |
<= | less than or equal |
== | equal |
>= | greater than or equal |
> | greater than |
const a_double& left
It specifies the left operand in the comparison.
const a_double& right
It specifies the right operand in the comparison.
const a_double& if_true
It specifies the value assigned to
ad
if the result
of the comparison is true.
const a_double& if_false
It specifies the value assigned to
ad
if the result
of the comparison is false.