static class LWrap extends LearnerImpl { ReversibleFunction f; Learner base; *(ReversibleFunction *f, Learner *base) {} public void processInOut(Object in, Object out) { in = f.process(in); out = f.process(out); base.processInOut(in, out); } public Object processIn(Object in) { in = f.process(in); in = base.processIn(in); in = f.unprocess(in); return in; } public void toJava(Code code) { f.toJava_process(code); base.toJava(code); f.toJava_unprocess(code); } }
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000511 |
Snippet name: | LWrap (learner) |
Eternal ID of this version: | #1000511/1 |
Text MD5: | 02cc2858d2bac60ae25ba2257d923992 |
Author: | stefan |
Category: | |
Type: | IOIOI |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-08-09 20:31:05 |
Source code size: | 559 bytes / 25 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 604 / 919 |
Referenced in: | [show references] |