data-4067

cesars/4067/data-4067

No description
data-4067
@/data-4067
IN 0-15number
D0number
D1number
D2number
D3number
D4number
D5number
D6number
D7number
D8number
D9number
D10number
D11number
D12number
D13number
D14number
D15number
data-4067
IN 0-15
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
D12
D13
D14
D15
OUT 0-15
OUT
OUTnumber
OUT 0-15number
To use the node in your project you should have the cesars/4067 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {

    emitValue<output_OUT_0_15>(ctx, getValue<input_IN_0_15>(ctx));

    auto ch = getValue<input_IN_0_15>(ctx);

    if (ch == 0)
    emitValue<output_OUT>(ctx, getValue<input_D0>(ctx));
       else if (ch == 1)
    emitValue<output_OUT>(ctx, getValue<input_D1>(ctx));
       else if (ch == 2)
    emitValue<output_OUT>(ctx, getValue<input_D2>(ctx));
       else if (ch == 3)
    emitValue<output_OUT>(ctx, getValue<input_D3>(ctx));
       else if (ch == 4)
    emitValue<output_OUT>(ctx, getValue<input_D4>(ctx));
       else if (ch == 5)
    emitValue<output_OUT>(ctx, getValue<input_D5>(ctx));
       else if (ch == 6)
    emitValue<output_OUT>(ctx, getValue<input_D6>(ctx));
       else if (ch == 7)
    emitValue<output_OUT>(ctx, getValue<input_D7>(ctx));
       else if (ch == 8)
    emitValue<output_OUT>(ctx, getValue<input_D8>(ctx));
       else if (ch == 9)
    emitValue<output_OUT>(ctx, getValue<input_D9>(ctx));
       else if (ch == 10)
    emitValue<output_OUT>(ctx, getValue<input_D10>(ctx));
       else if (ch == 11)
    emitValue<output_OUT>(ctx, getValue<input_D11>(ctx));
       else if (ch == 12)
    emitValue<output_OUT>(ctx, getValue<input_D12>(ctx));
       else if (ch == 13)
    emitValue<output_OUT>(ctx, getValue<input_D13>(ctx));
       else if (ch == 14)
    emitValue<output_OUT>(ctx, getValue<input_D14>(ctx));
       else if (ch == 15)
    emitValue<output_OUT>(ctx, getValue<input_D15>(ctx));
}