Skip to content

Commit

Permalink
Deploying to gh-pages from @ 3d77912 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mtao committed Oct 5, 2023
1 parent 9b8b56c commit 890b064
Show file tree
Hide file tree
Showing 18 changed files with 406 additions and 400 deletions.
68 changes: 34 additions & 34 deletions _attribute_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,41 +103,41 @@
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordtype">void</span> serialize(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> <span class="keywordtype">int</span> dim, <a class="code" href="classwmtk_1_1_mesh_writer.html">MeshWriter</a>&amp; writer) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="comment">// if size &lt; 0 then the internal data is not initialized</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>(<span class="keywordtype">long</span> dimension, <span class="keywordtype">long</span> size);</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>(<span class="keywordtype">long</span> dimension);</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>(<span class="keyword">const</span> <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp; o);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>(<a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp;&amp; o);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp; o);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp; operator=(<a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp;&amp; o);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; ConstMapResult const_vector_attribute(<span class="keyword">const</span> <span class="keywordtype">long</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; MapResult vector_attribute(<span class="keyword">const</span> <span class="keywordtype">long</span> index);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>(<span class="keywordtype">long</span> dimension, T default_value = T(0), <span class="keywordtype">long</span> size = 0);</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>(<span class="keyword">const</span> <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp; o);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>(<a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp;&amp; o);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp; o);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp; operator=(<a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute</a>&amp;&amp; o);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; ConstMapResult const_vector_attribute(<span class="keyword">const</span> <span class="keywordtype">long</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; MapResult vector_attribute(<span class="keyword">const</span> <span class="keywordtype">long</span> index);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; T const_scalar_attribute(<span class="keyword">const</span> <span class="keywordtype">long</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; T&amp; scalar_attribute(<span class="keyword">const</span> <span class="keywordtype">long</span> index);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordtype">void</span> set(std::vector&lt;T&gt; val);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">// The total number of elements in a vector. This is greater than the number of active values in</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="comment">// the attribute, and the set of active values is handled by a higher level abstraction</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordtype">long</span> reserved_size() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="comment">// The number of data for each element in the vector</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordtype">long</span> dimension() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordtype">void</span> reserve(<span class="keyword">const</span> <span class="keywordtype">long</span> size);</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute&lt;T&gt;</a>&amp; o) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordtype">void</span> push_scope();</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordtype">void</span> pop_scope(<span class="keywordtype">bool</span> apply_updates);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">void</span> clear_current_scope();</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="comment">// returns nullptr if no scope exists</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute_scope_stack.html">AttributeScopeStack&lt;T&gt;</a>* get_local_scope_stack_ptr();</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; std::vector&lt;T&gt; m_data;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; std::unique_ptr&lt;PerThreadAttributeScopeStacks&lt;T&gt;&gt; m_scope_stacks;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordtype">long</span> m_dimension = -1;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; T const_scalar_attribute(<span class="keyword">const</span> <span class="keywordtype">long</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; T&amp; scalar_attribute(<span class="keyword">const</span> <span class="keywordtype">long</span> index);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordtype">void</span> set(std::vector&lt;T&gt; val);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="comment">// The total number of elements in a vector. This is greater than the number of active values in</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">// the attribute, and the set of active values is handled by a higher level abstraction</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordtype">long</span> reserved_size() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="comment">// The number of data for each element in the vector</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordtype">long</span> dimension() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordtype">void</span> reserve(<span class="keyword">const</span> <span class="keywordtype">long</span> size);</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classwmtk_1_1attribute_1_1_attribute.html">Attribute&lt;T&gt;</a>&amp; o) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">void</span> push_scope();</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordtype">void</span> pop_scope(<span class="keywordtype">bool</span> apply_updates);</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordtype">void</span> clear_current_scope();</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="comment">// returns nullptr if no scope exists</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <a class="code" href="classwmtk_1_1attribute_1_1_attribute_scope_stack.html">AttributeScopeStack&lt;T&gt;</a>* get_local_scope_stack_ptr();</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; std::vector&lt;T&gt; m_data;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; std::unique_ptr&lt;PerThreadAttributeScopeStacks&lt;T&gt;&gt; m_scope_stacks;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">long</span> m_dimension = -1;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; T m_default_value = T(0);</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;};</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;} <span class="comment">// namespace attribute</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;} <span class="comment">// namespace wmtk</span></div>
Expand Down
Loading

0 comments on commit 890b064

Please sign in to comment.