This class is a control flow encapsulator with data bypass.
It wraps around an individual node or subgraph to create a bypass data path based on
a dynamic control condition. The dynamic control is coded as a run-time parameter
bp (with integer value 0 or 1) that controls
whether the input window (or stream) data will flow into the kernel encapsulated by
the bypass (
bp=0) or whether it will be directly
bypassed into the output window (or stream) (
bypass objects can be
declared in class scope as member variables in a user-defined graph type (i.e.,
inside a class that inherits from
bypass objects must be
initialized by assignment in the graph constructor.
static bypass & create( kernel );
The static create method creates a bypass object around a given kernel object. The number of inputs and outputs of the bypass are inferred automatically from the corresponding ports of the kernel.