2.2.1.12 CCoercionRestriction

The CCoercionRestriction structure contains the modifier and rank coercion operation.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

_flValue

_childRes (variable)

...

_flValue (4 bytes): An IEEE 32-bit floating point number [IEEE754] representing the coercion value upon which the rank coercion operation happens. Note that the coercion operation is determined by the containing CRestriction structure. The following coercion operations are supported.

Operation

Meaning

ADD

The rank value returned is the sum of the original rank value and the coercion value.

MULTIPLY

The rank value returned is the product of the original rank value and the coercion value and MUST be in the range 0.001 to 1.0.

ABSOLUTE

The rank value returned is the value specified in the coercion value and MUST be in the range 0 to 1000.

_childRes (variable): CRestriction structure that specifies a command tree. The returned rank value for results of a child restriction will be coerced as specified by the containing CRestriction structure.