Page MenuHomec4science

classTree_1_1Cell.html
No OneTemporary

File Metadata

Created
Sat, Nov 30, 01:31

classTree_1_1Cell.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: Tree::Cell&lt; Type &gt; Class Template Reference</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="namespaceTree.html">Tree</a></li><li class="navelem"><a class="el" href="classTree_1_1Cell.html">Cell</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classTree_1_1Cell-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Tree::Cell&lt; Type &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="Cell_8hpp_source.html">Cell.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Tree::Cell&lt; Type &gt;:</div>
<div class="dyncontent">
<div class="center">
<img src="classTree_1_1Cell.png" usemap="#Tree::Cell_3C_20Type_20_3E_map" alt=""/>
<map id="Tree::Cell_3C_20Type_20_3E_map" name="Tree::Cell_3C_20Type_20_3E_map">
<area href="classTree_1_1AbstractType.html" alt="Tree::AbstractType&lt; Type &gt;" shape="rect" coords="0,0,171,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aea696dfadd4cb15026f9695afff44b2b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#aea696dfadd4cb15026f9695afff44b2b">Cell</a> (Type center=Type(), Type dim=Type(), Type mass_pos=Type())</td></tr>
<tr class="separator:aea696dfadd4cb15026f9695afff44b2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a245d18d5845acdb347a1e9e0f16b1c1f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#a245d18d5845acdb347a1e9e0f16b1c1f">~Cell</a> () override</td></tr>
<tr class="separator:a245d18d5845acdb347a1e9e0f16b1c1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a859971aba19dd8b9b91e668f22a5515e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceTree.html#af3bca205e37bd9b9c4b2fdc38ba6d3ad">my_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#a859971aba19dd8b9b91e668f22a5515e">get_type</a> () override</td></tr>
<tr class="separator:a859971aba19dd8b9b91e668f22a5515e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af21148788c828df1da95cac591a785aa"><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#af21148788c828df1da95cac591a785aa">get_next</a> () override</td></tr>
<tr class="separator:af21148788c828df1da95cac591a785aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7235dfa3cc04f2178305b0b0cf78088"><td class="memItemLeft" align="right" valign="top">Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#af7235dfa3cc04f2178305b0b0cf78088">get</a> (<a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a> p) override</td></tr>
<tr class="separator:af7235dfa3cc04f2178305b0b0cf78088"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae436db01b4cb7edfa7eee00408544155"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#ae436db01b4cb7edfa7eee00408544155">set</a> (<a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a> p, Type vec) override</td></tr>
<tr class="separator:ae436db01b4cb7edfa7eee00408544155"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea6cc225e04be7a847fc7efbed7e8575"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#aea6cc225e04be7a847fc7efbed7e8575">subdivide_tree</a> () override</td></tr>
<tr class="separator:aea6cc225e04be7a847fc7efbed7e8575"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d680cfdeba1e1bbc97ed7e0d606160e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#a1d680cfdeba1e1bbc97ed7e0d606160e">store_particle</a> (<a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *particle, <a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *prev_part) override</td></tr>
<tr class="separator:a1d680cfdeba1e1bbc97ed7e0d606160e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab175ea91ec54a35f4a3cccbdeb79bdff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#ab175ea91ec54a35f4a3cccbdeb79bdff">compute_load</a> (<a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *particle) override</td></tr>
<tr class="separator:ab175ea91ec54a35f4a3cccbdeb79bdff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15de536b381edf0a05654002310bdd1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#a15de536b381edf0a05654002310bdd1b">del_level</a> () override</td></tr>
<tr class="separator:a15de536b381edf0a05654002310bdd1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bb8888a564f7b56f033de5c5c485241"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1Cell.html#a6bb8888a564f7b56f033de5c5c485241">clear_next</a> () override</td></tr>
<tr class="separator:a6bb8888a564f7b56f033de5c5c485241"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classTree_1_1AbstractType"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classTree_1_1AbstractType')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classTree_1_1AbstractType.html">Tree::AbstractType&lt; Type &gt;</a></td></tr>
<tr class="memitem:ae74a39056fc8c98ae781bce16ca6776c inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#ae74a39056fc8c98ae781bce16ca6776c">~AbstractType</a> ()</td></tr>
<tr class="separator:ae74a39056fc8c98ae781bce16ca6776c inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e96ab89086ca016dda673ab3c867571 inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a6e96ab89086ca016dda673ab3c867571">get_state</a> ()</td></tr>
<tr class="separator:a6e96ab89086ca016dda673ab3c867571 inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8792b9ec4e213a6193cd80abaae7d19 inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#af8792b9ec4e213a6193cd80abaae7d19">get_mass</a> ()</td></tr>
<tr class="separator:af8792b9ec4e213a6193cd80abaae7d19 inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38cdf9ef29c74c91da5aa1a0960a8d36 inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a38cdf9ef29c74c91da5aa1a0960a8d36">get_parent</a> ()</td></tr>
<tr class="separator:a38cdf9ef29c74c91da5aa1a0960a8d36 inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54e536377689eeb5eefdc77e31281e1b inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a54e536377689eeb5eefdc77e31281e1b">set_mass</a> (float mass)</td></tr>
<tr class="separator:a54e536377689eeb5eefdc77e31281e1b inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b04149e350613d4c133c053b761f175 inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a8b04149e350613d4c133c053b761f175">set_parent</a> (<a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *parent)</td></tr>
<tr class="separator:a8b04149e350613d4c133c053b761f175 inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a133cc78f06baa5cd6de0536ce6293b27 inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a133cc78f06baa5cd6de0536ce6293b27">find_cell_idx</a> (Type origin)</td></tr>
<tr class="separator:a133cc78f06baa5cd6de0536ce6293b27 inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0160d586d64c6031dac5dc412f01b73d inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a0160d586d64c6031dac5dc412f01b73d">update_vel_pos</a> ()</td></tr>
<tr class="separator:a0160d586d64c6031dac5dc412f01b73d inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14a908793f2e66bd49bfea9867632c69 inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a14a908793f2e66bd49bfea9867632c69">is_out_boundaries</a> ()</td></tr>
<tr class="separator:a14a908793f2e66bd49bfea9867632c69 inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7cceb10806bfdba07c934a970c2a3e5 inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#ad7cceb10806bfdba07c934a970c2a3e5">update_cell</a> (bool add)</td></tr>
<tr class="separator:ad7cceb10806bfdba07c934a970c2a3e5 inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bc1d78b5a98add05b34abdead129399 inherit pub_methods_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a8bc1d78b5a98add05b34abdead129399">update_tree</a> ()</td></tr>
<tr class="separator:a8bc1d78b5a98add05b34abdead129399 inherit pub_methods_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_classTree_1_1AbstractType"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classTree_1_1AbstractType')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classTree_1_1AbstractType.html">Tree::AbstractType&lt; Type &gt;</a></td></tr>
<tr class="memitem:a0e6381c6936424bb6d8265cf9c59742f inherit pub_attribs_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a0e6381c6936424bb6d8265cf9c59742f">_state</a> = 1</td></tr>
<tr class="separator:a0e6381c6936424bb6d8265cf9c59742f inherit pub_attribs_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20e5b9f34790c59de432feaea5a56972 inherit pub_attribs_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a20e5b9f34790c59de432feaea5a56972">_m</a> = 0.0f</td></tr>
<tr class="separator:a20e5b9f34790c59de432feaea5a56972 inherit pub_attribs_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57806c3141add8536ebbd2bfca8e11fc inherit pub_attribs_classTree_1_1AbstractType"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTree_1_1AbstractType.html#a57806c3141add8536ebbd2bfca8e11fc">_parent</a> = nullptr</td></tr>
<tr class="separator:a57806c3141add8536ebbd2bfca8e11fc inherit pub_attribs_classTree_1_1AbstractType"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Type&gt;<br />
class Tree::Cell&lt; Type &gt;</h3>
<p>Class cell to store all the information of a given <a class="el" href="classTree_1_1Cell.html">Cell</a>.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">Type</td><td>of the vector, 2D or 3D (and int, float, etc ...) </td></tr>
</table>
</dd>
</dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aea696dfadd4cb15026f9695afff44b2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea696dfadd4cb15026f9695afff44b2b">&#9670;&nbsp;</a></span>Cell()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::<a class="el" href="classTree_1_1Cell.html">Cell</a> </td>
<td>(</td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>center</em> = <code>Type()</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>dim</em> = <code>Type()</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>mass_pos</em> = <code>Type()</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor to create a <a class="el" href="classTree_1_1Cell.html">Cell</a>. All the member variables have defaults zero values if needed.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">center</td><td>center of the given cell </td></tr>
<tr><td class="paramname">dim</td><td>dimensions of the given cell </td></tr>
<tr><td class="paramname">mass_pos</td><td>center of mass of the given cell </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a245d18d5845acdb347a1e9e0f16b1c1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a245d18d5845acdb347a1e9e0f16b1c1f">&#9670;&nbsp;</a></span>~Cell()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::~<a class="el" href="classTree_1_1Cell.html">Cell</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor to safely delete all pointer in the <a class="el" href="classTree_1_1Cell.html">Cell</a> element. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a6bb8888a564f7b56f033de5c5c485241"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6bb8888a564f7b56f033de5c5c485241">&#9670;&nbsp;</a></span>clear_next()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::clear_next </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Clear all elements in the attribute vector array of pointer on the next particle/cells in the tree data-structure. Override by the child class. </p>
<p>Reimplemented from <a class="el" href="classTree_1_1AbstractType.html#a4a498f75f3e4e1afb9126ea3e6769d7b">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="ab175ea91ec54a35f4a3cccbdeb79bdff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab175ea91ec54a35f4a3cccbdeb79bdff">&#9670;&nbsp;</a></span>compute_load()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::compute_load </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *&#160;</td>
<td class="paramname"><em>particle</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute the load vector between two particles to update the one passed in argument. The load is the General gravity one.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">particle</td><td>where the load is applied </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="classTree_1_1AbstractType.html#a23737c730bf5df7ec160a01c7b777c9b">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="a15de536b381edf0a05654002310bdd1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15de536b381edf0a05654002310bdd1b">&#9670;&nbsp;</a></span>del_level()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::del_level </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Delete a given level of cells </p>
<p>Reimplemented from <a class="el" href="classTree_1_1AbstractType.html#ab6029846710aa8fc6be239b17a3c1c00">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="af7235dfa3cc04f2178305b0b0cf78088"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7235dfa3cc04f2178305b0b0cf78088">&#9670;&nbsp;</a></span>get()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Type <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::get </td>
<td>(</td>
<td class="paramtype"><a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a>&#160;</td>
<td class="paramname"><em>p</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return one of the following attribute of the given particle :</p><ul>
<li>position</li>
<li>velocity</li>
<li>load</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>enum value of the attribute </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>desired attribute of the given particle </dd></dl>
<p>Implements <a class="el" href="classTree_1_1AbstractType.html#aa341d843f7ebfc7fb3f5383827e50712">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="af21148788c828df1da95cac591a785aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af21148788c828df1da95cac591a785aa">&#9670;&nbsp;</a></span>get_next()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">vector&lt;<a class="el" href="classTree_1_1AbstractType.html">AbstractType</a> &lt; Type&gt;* &gt; <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::get_next </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the attribute vector array of pointer on the next particle/cells in the tree data-structure. Override by the child class.</p>
<dl class="section return"><dt>Returns</dt><dd>_next attribute vector array of pointer on the next particle/cells in the tree data-structure </dd></dl>
<p>Reimplemented from <a class="el" href="classTree_1_1AbstractType.html#a47f2b50e1131cc7a5ffaabe975029fde">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="a859971aba19dd8b9b91e668f22a5515e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a859971aba19dd8b9b91e668f22a5515e">&#9670;&nbsp;</a></span>get_type()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceTree.html#af3bca205e37bd9b9c4b2fdc38ba6d3ad">my_type</a> <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::get_type </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the type of the given class.</p>
<dl class="section return"><dt>Returns</dt><dd>enum value CellT </dd></dl>
<p>Implements <a class="el" href="classTree_1_1AbstractType.html#a5deb58827755a5c48c2a1193cc9db196">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="ae436db01b4cb7edfa7eee00408544155"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae436db01b4cb7edfa7eee00408544155">&#9670;&nbsp;</a></span>set()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::set </td>
<td>(</td>
<td class="paramtype"><a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a>&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>vec</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set attribute value of one of the following properties for a given particle :</p><ul>
<li>position</li>
<li>velocity</li>
<li>load</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>enum value of the attribute </td></tr>
<tr><td class="paramname">vec</td><td>new vector value to set the attribute </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="classTree_1_1AbstractType.html#a6f30d2de6725088207b9d5fbd49e07d8">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="a1d680cfdeba1e1bbc97ed7e0d606160e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d680cfdeba1e1bbc97ed7e0d606160e">&#9670;&nbsp;</a></span>store_particle()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::store_particle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *&#160;</td>
<td class="paramname"><em>particle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classTree_1_1AbstractType.html">AbstractType</a>&lt; Type &gt; *&#160;</td>
<td class="paramname"><em>prev_part</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Store particle in the tree.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">particle</td><td>pointer on current particle to store </td></tr>
<tr><td class="paramname">prev_part</td><td>pointer on a particle to store after the current one </td></tr>
</table>
</dd>
</dl>
<p>If there is no next element</p>
<p>If next element is a particle</p>
<p>clear precedent pointers</p>
<p>If next element is a cell</p>
<p>Reimplemented from <a class="el" href="classTree_1_1AbstractType.html#a0abe13ac95cb5f0938189a1d461f06a4">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="aea6cc225e04be7a847fc7efbed7e8575"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea6cc225e04be7a847fc7efbed7e8575">&#9670;&nbsp;</a></span>subdivide_tree()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classTree_1_1Cell.html">Tree::Cell</a>&lt; Type &gt;::subdivide_tree </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Subdivide a node in 2^NB_DIM sub-cells and fill _next attribute vector array with a pointer to each sub-cell. </p>
<p>Loop to have 2^NB_DIM sub-cells</p>
<p>Compute center of the cell</p>
<p>Fill _next vector array with each new sub-cell</p>
<p>Reimplemented from <a class="el" href="classTree_1_1AbstractType.html#a062421035c8f294c6123aa2f67a9e835">Tree::AbstractType&lt; Type &gt;</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/media/lmunier/Data/EPFL/Master/2eme_annee/Semestre_2/Parallel_and_High_Performance_Computing/phpc_nBody/src/<a class="el" href="Cell_8hpp_source.html">Cell.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- 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