Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #1000511 // LWrap (learner)

IOIOI

1  
static class LWrap extends LearnerImpl {
2  
  ReversibleFunction f;
3  
  Learner base;
4  
  
5  
  *(ReversibleFunction *f, Learner *base) {}
6  
  
7  
  public void processInOut(Object in, Object out) {
8  
    in = f.process(in);
9  
    out = f.process(out);
10  
    base.processInOut(in, out);
11  
  }
12  
  
13  
  public Object processIn(Object in) {
14  
    in = f.process(in);
15  
    in = base.processIn(in);
16  
    in = f.unprocess(in);
17  
    return in;
18  
  }
19  
  
20  
  public void toJava(Code code) {
21  
    f.toJava_process(code);
22  
    base.toJava(code);
23  
    f.toJava_unprocess(code);
24  
  }
25  
}

download  show line numbers   

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: 547 / 889
Referenced in: [show references]