comparison presen/slide.html @ 25:327435666caa

update
author mir3636
date Thu, 16 Feb 2017 08:14:21 +0900
parents 37f6991465b0
children 8644cade9765
comparison
equal deleted inserted replaced
24:37f6991465b0 25:327435666caa
85 85
86 <div class='slide '> 86 <div class='slide '>
87 <!-- === begin markdown block === 87 <!-- === begin markdown block ===
88 88
89 generated by markdown/1.2.0 on Ruby 2.2.0 (2014-12-25) [x86_64-darwin13] 89 generated by markdown/1.2.0 on Ruby 2.2.0 (2014-12-25) [x86_64-darwin13]
90 on 2017-02-16 08:03:24 +0900 with Markdown engine kramdown (1.9.0) 90 on 2017-02-16 08:10:32 +0900 with Markdown engine kramdown (1.9.0)
91 using options {} 91 using options {}
92 --> 92 -->
93 93
94 <!-- _S9SLIDE_ --> 94 <!-- _S9SLIDE_ -->
95 <h1 id="section">メタ計算の重要性</h1> 95 <h1 id="section">メタ計算の重要性</h1>
202 SingleLinkedStack* stack = (SingleLinkedStack*)GearImpl(context, Stack, stack); 202 SingleLinkedStack* stack = (SingleLinkedStack*)GearImpl(context, Stack, stack);
203 enum Code next = Gearef(context, Stack)-&gt;next; 203 enum Code next = Gearef(context, Stack)-&gt;next;
204 goto clearSingleLinkedStack(context, stack, next); 204 goto clearSingleLinkedStack(context, stack, next);
205 } 205 }
206 </code></pre> 206 </code></pre>
207 <p lang="impl"># interface の記述 207
208 - interface を記述することで Context を通して Code Gear が参照できるようになった。 208
209 - create は関数呼び出しで呼び出され、interface と impliment の初期化と Code Gear のポインタの設定を行う。 209 </div>
210 - return で interface を返し、その先で指定した Code Gear へ継続できるようになる。</p> 210 <div class='slide '>
211 <!-- _S9SLIDE_ -->
212 <h1 id="interface-">interface の記述</h1>
213 <ul lang="impl">
214 <li>interface を記述することで Context を通して Code Gear が参照できるようになった。</li>
215 <li>create は関数呼び出しで呼び出され、interface と impliment の初期化と Code Gear のポインタの設定を行う。</li>
216 <li>return で interface を返し、その先で指定した Code Gear へ継続できるようになる。</li>
217 </ul>
211 <pre><code>Stack* createSingleLinkedStack(struct Context* context) { 218 <pre><code>Stack* createSingleLinkedStack(struct Context* context) {
212 struct Stack* stack = new Stack(); 219 struct Stack* stack = new Stack();
213 struct SingleLinkedStack* singleLinkedStack = new SingleLinkedStack(); 220 struct SingleLinkedStack* singleLinkedStack = new SingleLinkedStack();
214 stack-&gt;stack = (union Data*)singleLinkedStack; 221 stack-&gt;stack = (union Data*)singleLinkedStack;
215 singleLinkedStack-&gt;top = NULL; 222 singleLinkedStack-&gt;top = NULL;