Page MenuHomec4science

Tree_8hpp_source.html
No OneTemporary

File Metadata

Created
Sat, Jan 18, 13:12

Tree_8hpp_source.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PHPC - nBody project: /media/lmunier/Data/EPFL/Master/2eme_annee/Semestre_2/Parallel_and_High_Performance_Computing/phpc_submit_nbody/src/Tree.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">PHPC - nBody project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Tree.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="Tree_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#ifndef PROJECT_TREE_HPP</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#define PROJECT_TREE_HPP</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="constants_8hpp.html">constants.hpp</a>&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Vector_8hpp.html">Vector.hpp</a>&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceTree.html">Tree</a> {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type&gt;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classTree_1_1AbstractType.html"> 37</a></span>&#160; <span class="keyword">class </span><a class="code" href="classTree_1_1AbstractType.html">AbstractType</a> {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classTree_1_1AbstractType.html">AbstractType</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classTree_1_1AbstractType.html#af8792b9ec4e213a6193cd80abaae7d19"> 49</a></span>&#160; <span class="keywordtype">float</span> <a class="code" href="classTree_1_1AbstractType.html#af8792b9ec4e213a6193cd80abaae7d19">get_mass</a>() { <span class="keywordflow">return</span> this-&gt;_m; }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keyword">virtual</span> Type get(<a class="code" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a> p) = 0;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classTree_1_1AbstractType.html#a54e536377689eeb5eefdc77e31281e1b"> 64</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTree_1_1AbstractType.html#a54e536377689eeb5eefdc77e31281e1b">set_mass</a>(<span class="keywordtype">float</span> mass) { this-&gt;_m = mass; }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classTree_1_1AbstractType.html#a6f30d2de6725088207b9d5fbd49e07d8"> 73</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTree_1_1AbstractType.html#a6f30d2de6725088207b9d5fbd49e07d8">set</a>(<a class="code" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a> p, Type vec) {};</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classTree_1_1AbstractType.html#a0160d586d64c6031dac5dc412f01b73d"> 79</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTree_1_1AbstractType.html#a0160d586d64c6031dac5dc412f01b73d">update_vel_pos</a>() {};</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; </div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classTree_1_1AbstractType.html#aa463dc8eaeccfc90c5b63c59aa113924"> 87</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTree_1_1AbstractType.html#aa463dc8eaeccfc90c5b63c59aa113924">is_out_boundaries</a>(Type dim) { <span class="keywordflow">return</span> <span class="keyword">false</span>; };</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classTree_1_1AbstractType.html#a20e5b9f34790c59de432feaea5a56972"> 90</a></span>&#160; <span class="keywordtype">float</span> _m = 0.0f; </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; };</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;}</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="preprocessor">#endif //PROJECT_TREE_HPP</span></div></div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassTree_1_1AbstractType_html"><div class="ttname"><a href="classTree_1_1AbstractType.html">Tree::AbstractType</a></div><div class="ttdef"><b>Definition:</b> Tree.hpp:37</div></div>
<div class="ttc" id="aclassTree_1_1AbstractType_html_a0160d586d64c6031dac5dc412f01b73d"><div class="ttname"><a href="classTree_1_1AbstractType.html#a0160d586d64c6031dac5dc412f01b73d">Tree::AbstractType::update_vel_pos</a></div><div class="ttdeci">virtual void update_vel_pos()</div><div class="ttdef"><b>Definition:</b> Tree.hpp:79</div></div>
<div class="ttc" id="aclassTree_1_1AbstractType_html_a6f30d2de6725088207b9d5fbd49e07d8"><div class="ttname"><a href="classTree_1_1AbstractType.html#a6f30d2de6725088207b9d5fbd49e07d8">Tree::AbstractType::set</a></div><div class="ttdeci">virtual void set(property p, Type vec)</div><div class="ttdef"><b>Definition:</b> Tree.hpp:73</div></div>
<div class="ttc" id="aclassTree_1_1AbstractType_html_af8792b9ec4e213a6193cd80abaae7d19"><div class="ttname"><a href="classTree_1_1AbstractType.html#af8792b9ec4e213a6193cd80abaae7d19">Tree::AbstractType::get_mass</a></div><div class="ttdeci">float get_mass()</div><div class="ttdef"><b>Definition:</b> Tree.hpp:49</div></div>
<div class="ttc" id="aconstants_8hpp_html"><div class="ttname"><a href="constants_8hpp.html">constants.hpp</a></div></div>
<div class="ttc" id="anamespaceTree_html"><div class="ttname"><a href="namespaceTree.html">Tree</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="aclassTree_1_1AbstractType_html_aa463dc8eaeccfc90c5b63c59aa113924"><div class="ttname"><a href="classTree_1_1AbstractType.html#aa463dc8eaeccfc90c5b63c59aa113924">Tree::AbstractType::is_out_boundaries</a></div><div class="ttdeci">virtual bool is_out_boundaries(Type dim)</div><div class="ttdef"><b>Definition:</b> Tree.hpp:87</div></div>
<div class="ttc" id="aconstants_8hpp_html_af2b8102aeac8f02ab62ac42828289569"><div class="ttname"><a href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a></div><div class="ttdeci">property</div><div class="ttdef"><b>Definition:</b> constants.hpp:54</div></div>
<div class="ttc" id="aclassTree_1_1AbstractType_html_a54e536377689eeb5eefdc77e31281e1b"><div class="ttname"><a href="classTree_1_1AbstractType.html#a54e536377689eeb5eefdc77e31281e1b">Tree::AbstractType::set_mass</a></div><div class="ttdeci">void set_mass(float mass)</div><div class="ttdef"><b>Definition:</b> Tree.hpp:64</div></div>
<div class="ttc" id="aVector_8hpp_html"><div class="ttname"><a href="Vector_8hpp.html">Vector.hpp</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>

Event Timeline