MPICommandOperator

MPICommandOperator

 

 typedef enum {
    MPICommandOperatorINVALID,

    /* Arithmetic operators */
    MPICommandOperatorADD,
    MPICommandOperatorSUBTRACT,
    MPICommandOperatorMULTIPLY,
    MPICommandOperatorDIVIDE,

    MPICommandOperatorAND,
    MPICommandOperatorOR,
    MPICommandOperatorXOR,

    /* Logical operators */
    MPICommandOperatorALWAYS,

    MPICommandOperatorEQUAL,
    MPICommandOperatorNOT_EQUAL,

    MPICommandOperatorGREATER_OR_EQUAL,
    MPICommandOperatorGREATER,


    MPICommandOperatorLESS_OR_EQUAL,
    MPICommandOperatorLESS,

    MPICommandOperatorBIT_CLEAR,
    MPICommandOperatorBIT_SET,
} MPICommandOperator;
Description  

The following are operators used by the MPICommand and MPICompare objects.

  Arithmetic Operators
  MPICommandOperatorADD Performs an addition. Equivalent to the C operator (+).
  MPICommandOperatorSUBTRACT Performs a subtraction. Equivalent to the C operator (-).
  MPICommandOperatorMULTIPLY Performs a multiplication. Equivalent to the C operator (*).
  MPICommandOperatorDIVIDE Performs a divison. Equivalent to the C operator (/).
  MPICommandOperatorAND Performs a logical AND. Equivalent to the C operator (&).
  MPICommandOperatorOR Performs a logical OR. Equivalent to the C operator ( | ).
  MPICommandOperatorXOR Performs a logical XOR. Equivalent to the C operator (^).

  Logical Operators
  MPICommandOperatorALWAYS Always evaluates TRUE. Equivalent in C to (1) or TRUE.
  MPICommandOperatorEQUAL Performs an equality comparison. Equivalent to the C operator (= =)
  MPICommandOperatorGREATER_OR_EQUAL Performs an inequality comparison. Equivalent to the C operator (!=)
  MPICommandOperatorGREATER_OR_EQUAL Performs a greater than or equal to comparison. Equivalent to the C operator (>=)
  MPICommandOperatorGREATER Performs a greater than comparison. Equivalent to the C operator (>)
  MPICommandOperatorLESS_OR_EQUAL Performs a less than or equal to comparison. Equivalent to the C operator (< =)
  MPICommandOperatorLESS Performs a less than comparison. Equivalent to the C operator (<)
  MPICommandOperatorBIT_CLEAR Clears specified bits. Equivalent in C to the statement: variable &= ~(bits)
  MPICommandOperatorBIT_SET Sets specified bits. Equivalent in C to the statement: variable | = (bits)
See Also MPICommand | MPICommandExpr | MPICommandParams | MPIComparePosition |
MPICompareParams