Skip to content

Commit

Permalink
deploy: 743fe69
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Sep 28, 2023
1 parent 65f658e commit ca22d7d
Show file tree
Hide file tree
Showing 432 changed files with 1 addition and 90,411 deletions.
2 changes: 1 addition & 1 deletion examples-core-reflection-traits-fields.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h1>
<span class="w"> </span><span class="p">}</span>
<span class="w"> </span><span class="p">}</span></pre><pre class="m-code"><span class="w"> </span><span class="c1">// Field &#39;age&#39;: 21</span>
<span class="w"> </span><span class="c1">// Field &#39;weight&#39;: 68.4</span>
<span class="w"> </span><span class="c1">// Field &#39;dead&#39;: unsupported type &#39;bool&#39;</span></pre><p>Its also possible to access the fields by name:</p><pre class="m-code"><span class="w"> </span><span class="o">*</span><span class="k">static_cast</span><span class="o">&lt;</span><span class="kt">float</span><span class="o">*&gt;</span><span class="p">(</span><span class="n">view</span><span class="p">.</span><span class="n">get</span><span class="p">(</span><span class="o">*</span><span class="n">fields</span><span class="p">.</span><span class="n">field</span><span class="p">(</span><span class="s">&quot;weight&quot;</span><span class="p">)))</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mf">20.0F</span><span class="p">;</span>
<span class="w"> </span><span class="c1">// Field &#39;dead&#39;: unsupported type &#39;bool&#39;</span></pre><p>Its also possible to access the fields by name:</p><pre class="m-code"><span class="w"> </span><span class="o">*</span><span class="k">static_cast</span><span class="o">&lt;</span><span class="kt">float</span><span class="o">*&gt;</span><span class="p">(</span><span class="n">view</span><span class="p">.</span><span class="n">get</span><span class="p">(</span><span class="s">&quot;weight&quot;</span><span class="p">))</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mf">20.0F</span><span class="p">;</span>
<span class="w"> </span><span class="n">CUBOS_INFO</span><span class="p">(</span><span class="s">&quot;New weight: {}&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">person</span><span class="p">.</span><span class="n">weight</span><span class="p">);</span><span class="w"> </span><span class="c1">// 88.4</span>
<span class="p">}</span></pre><pre class="m-code"><span class="c1">// New weight: 88.4</span></pre>
</div>
Expand Down
Binary file removed pr-preview/pr-610/CubosLogo.png
Binary file not shown.
134 changes: 0 additions & 134 deletions pr-preview/pr-610/aabb_8hpp.html

This file was deleted.

148 changes: 0 additions & 148 deletions pr-preview/pr-610/accessors_8hpp.html

This file was deleted.

Loading

0 comments on commit ca22d7d

Please sign in to comment.