#include <corenodes_lib.h>
A set of short circuit rules is used for CoreNodesLib::CreateOptimizer to easily create an Optimizer for common cases. For example to optimize binary multiplication there are four rules:
These can be represented as short circuit rules:
You can only use short circuit rules for nodes with exactly one output port. For other nodes you have to implement the Optimizer yourself.
Public Attributes | |
Int | testInput |
Int | testValue |
Int | resultInput |
Int | resultValue |
Int testInput |
The index of the input port to test.
Int testValue |
Int resultInput |
If this is non-negative, a pass-through is create from the input port given by resultInput to the output port. Otherwise resultValue is used.
Int resultValue |
If resultInput is negative, resultValue is the compile-time constant value to use for the output port. It will be converted to the correct port type.