root/library/doc/html/classbdm_1_1rectangular__support.html @ 651

Revision 651, 15.9 kB (checked in by mido, 15 years ago)

\doc directory cleaned a bit

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mixpp: bdm::rectangular_support Class Reference</title>
4<link href="tabs.css" rel="stylesheet" type="text/css">
5<link href="doxygen.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.9 -->
8<script type="text/javascript">
9<!--
10function changeDisplayState (e){
11  var num=this.id.replace(/[^[0-9]/g,'');
12  var button=this.firstChild;
13  var sectionDiv=document.getElementById('dynsection'+num);
14  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
15    sectionDiv.style.display='block';
16    button.src='open.gif';
17  }else{
18    sectionDiv.style.display='none';
19    button.src='closed.gif';
20  }
21}
22function initDynSections(){
23  var divs=document.getElementsByTagName('div');
24  var sectionCounter=1;
25  for(var i=0;i<divs.length-1;i++){
26    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
27      var header=divs[i];
28      var section=divs[i+1];
29      var button=header.firstChild;
30      if (button!='IMG'){
31        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
32        button=document.createElement('img');
33        divs[i].insertBefore(button,divs[i].firstChild);
34      }
35      header.style.cursor='pointer';
36      header.onclick=changeDisplayState;
37      header.id='dynheader'+sectionCounter;
38      button.src='closed.gif';
39      section.id='dynsection'+sectionCounter;
40      section.style.display='none';
41      section.style.marginLeft='14px';
42      sectionCounter++;
43    }
44  }
45}
46window.onload = initDynSections;
47-->
48</script>
49<div class="navigation" id="top">
50  <div class="tabs">
51    <ul>
52      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
53      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
55      <li><a href="files.html"><span>Files</span></a></li>
56    </ul>
57  </div>
58  <div class="tabs">
59    <ul>
60      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
61      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
62      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
63      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
64    </ul>
65  </div>
66  <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1rectangular__support.html">rectangular_support</a>
67  </div>
68</div>
69<div class="contents">
70<h1>bdm::rectangular_support Class Reference</h1><!-- doxytag: class="bdm::rectangular_support" --><!-- doxytag: inherits="bdm::root" --><code>#include &lt;<a class="el" href="discrete_8h_source.html">discrete.h</a>&gt;</code>
71<p>
72
73<p>
74<a href="classbdm_1_1rectangular__support-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
75<tr><td></td></tr>
76<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
77<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9929645efe5eff3a6b87da8b81e114c4"></a><!-- doxytag: member="bdm::rectangular_support::rectangular_support" ref="9929645efe5eff3a6b87da8b81e114c4" args="()" -->
78&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#9929645efe5eff3a6b87da8b81e114c4">rectangular_support</a> ()</td></tr>
79
80<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">default constructor <br></td></tr>
81<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a18272405534f914ee3798f1c4034e51"></a><!-- doxytag: member="bdm::rectangular_support::set_parameters" ref="a18272405534f914ee3798f1c4034e51" args="(const Array&lt; vec &gt; &amp;ranges0, const ivec &amp;gridsize0)" -->
82void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#a18272405534f914ee3798f1c4034e51">set_parameters</a> (const Array&lt; vec &gt; &amp;ranges0, const ivec &amp;gridsize0)</td></tr>
83
84<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set parameters <br></td></tr>
85<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2fd69b881ff077e6d3da3e453d7dc418"></a><!-- doxytag: member="bdm::rectangular_support::get_vec" ref="2fd69b881ff077e6d3da3e453d7dc418" args="(const ivec &amp;inds)" -->
86vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#2fd69b881ff077e6d3da3e453d7dc418">get_vec</a> (const ivec &amp;inds)</td></tr>
87
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return vector at position given by vector of indeces <br></td></tr>
89<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2ae8ed78cba8e14b5dcc570b51d7d3f0"></a><!-- doxytag: member="bdm::rectangular_support::linear_index" ref="2ae8ed78cba8e14b5dcc570b51d7d3f0" args="(const ivec inds)" -->
90long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#2ae8ed78cba8e14b5dcc570b51d7d3f0">linear_index</a> (const ivec inds)</td></tr>
91
92<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">convert dimension indeces into linear index, the indexing is in the same way as in <code><a class="el" href="classbdm_1_1rectangular__support.html#80f33e406ba1799376537c39fdf7cc97" title="Get next active vector, call ONLY after first_vector()!">next_vec()</a></code> <br></td></tr>
93<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6a1d6c127b468b772fd0a7206e2880a3"></a><!-- doxytag: member="bdm::rectangular_support::first_vec" ref="6a1d6c127b468b772fd0a7206e2880a3" args="()" -->
94const vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#6a1d6c127b468b772fd0a7206e2880a3">first_vec</a> ()</td></tr>
95
96<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set the first vector to corner and store result in actvec <br></td></tr>
97<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80f33e406ba1799376537c39fdf7cc97"></a><!-- doxytag: member="bdm::rectangular_support::next_vec" ref="80f33e406ba1799376537c39fdf7cc97" args="()" -->
98const vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#80f33e406ba1799376537c39fdf7cc97">next_vec</a> ()</td></tr>
99
100<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get next active vector, call ONLY after first_vector()! <br></td></tr>
101<tr><td class="memItemLeft" nowrap align="right" valign="top">ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#0ea90fd6ba65251683c04599b6d094b7">nearest_point</a> (const vec &amp;val)</td></tr>
102
103<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2cc3a7250b969675bc8f9034aa2a7d2"></a><!-- doxytag: member="bdm::rectangular_support::points" ref="a2cc3a7250b969675bc8f9034aa2a7d2" args="() const " -->
104int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#a2cc3a7250b969675bc8f9034aa2a7d2">points</a> () const </td></tr>
105
106<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access function. <br></td></tr>
107<tr><td class="memItemLeft" nowrap align="right" valign="top">const vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#cfd542382bc959fce9c117b8df5f6e9f">_steps</a> () const </td></tr>
108
109<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c8d82bd237cdd4dc50d5fbcc285d80ee"></a><!-- doxytag: member="bdm::rectangular_support::from_setting" ref="c8d82bd237cdd4dc50d5fbcc285d80ee" args="(const Setting &amp;set)" -->
110void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#c8d82bd237cdd4dc50d5fbcc285d80ee">from_setting</a> (const Setting &amp;set)</td></tr>
111
112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method arrange instance properties according the data stored in the Setting structure. <br></td></tr>
113<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::rectangular_support::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" -->
114virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr>
115
116<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr>
117<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::rectangular_support::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &amp;set) const " -->
118virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &amp;set) const </td></tr>
119
120<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr>
121<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::rectangular_support::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" -->
122virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr>
123
124<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method TODO. <br></td></tr>
125<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
126<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b63e1190a8a22031d110624a8fc64b14"></a><!-- doxytag: member="bdm::rectangular_support::ranges" ref="b63e1190a8a22031d110624a8fc64b14" args="" -->
127Array&lt; vec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#b63e1190a8a22031d110624a8fc64b14">ranges</a></td></tr>
128
129<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array of boundaries (2D vectors: [begining,end]) for each dimension. <br></td></tr>
130<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="efe08427f4bf66191e10b727b57e4b31"></a><!-- doxytag: member="bdm::rectangular_support::gridsizes" ref="efe08427f4bf66191e10b727b57e4b31" args="" -->
131ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#efe08427f4bf66191e10b727b57e4b31">gridsizes</a></td></tr>
132
133<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of support points in each dimension. <br></td></tr>
134<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="442ae2e1881d6bcdccf0cabbef769e79"></a><!-- doxytag: member="bdm::rectangular_support::dim" ref="442ae2e1881d6bcdccf0cabbef769e79" args="" -->
135int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#442ae2e1881d6bcdccf0cabbef769e79">dim</a></td></tr>
136
137<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">dimension <br></td></tr>
138<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6e55e6243f3a3e451f8bed149d948319"></a><!-- doxytag: member="bdm::rectangular_support::Npoints" ref="6e55e6243f3a3e451f8bed149d948319" args="" -->
139int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#6e55e6243f3a3e451f8bed149d948319">Npoints</a></td></tr>
140
141<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of data points. <br></td></tr>
142<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e1aa9a4e91c248a29e4e432f4b448197"></a><!-- doxytag: member="bdm::rectangular_support::actvec" ref="e1aa9a4e91c248a29e4e432f4b448197" args="" -->
143vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#e1aa9a4e91c248a29e4e432f4b448197">actvec</a></td></tr>
144
145<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">active vector for first_vec and next_vec <br></td></tr>
146<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="744688479a1ab8cf9f80d6f3021d762b"></a><!-- doxytag: member="bdm::rectangular_support::actvec_ind" ref="744688479a1ab8cf9f80d6f3021d762b" args="" -->
147vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#744688479a1ab8cf9f80d6f3021d762b">actvec_ind</a></td></tr>
148
149<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">indeces of active vector <br></td></tr>
150<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="967bfe2eb868409e3e0e6e41dcd63a6a"></a><!-- doxytag: member="bdm::rectangular_support::steps" ref="967bfe2eb868409e3e0e6e41dcd63a6a" args="" -->
151vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1rectangular__support.html#967bfe2eb868409e3e0e6e41dcd63a6a">steps</a></td></tr>
152
153<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">length of steps in each dimension <br></td></tr>
154</table>
155<hr><a name="_details"></a><h2>Detailed Description</h2>
156Rectangular support Support points are located inbetween ranges! For example: For ranges=[0,1] and gridsizes=[1] the support point is 0.5 <hr><h2>Member Function Documentation</h2>
157<a class="anchor" name="cfd542382bc959fce9c117b8df5f6e9f"></a><!-- doxytag: member="bdm::rectangular_support::_steps" ref="cfd542382bc959fce9c117b8df5f6e9f" args="() const " -->
158<div class="memitem">
159<div class="memproto">
160      <table class="memname">
161        <tr>
162          <td class="memname">const vec&amp; bdm::rectangular_support::_steps           </td>
163          <td>(</td>
164          <td class="paramname">          </td>
165          <td>&nbsp;)&nbsp;</td>
166          <td> const<code> [inline]</code></td>
167        </tr>
168      </table>
169</div>
170<div class="memdoc">
171
172<p>
173access function <dl class="todo" compact><dt><b><a class="el" href="todo.html#_todo000004">Todo:</a></b></dt><dd>opet pouze do potomka.. </dd></dl>
174
175<p>References <a class="el" href="discrete_8h_source.html#l00047">steps</a>.</p>
176
177</div>
178</div><p>
179<a class="anchor" name="0ea90fd6ba65251683c04599b6d094b7"></a><!-- doxytag: member="bdm::rectangular_support::nearest_point" ref="0ea90fd6ba65251683c04599b6d094b7" args="(const vec &amp;val)" -->
180<div class="memitem">
181<div class="memproto">
182      <table class="memname">
183        <tr>
184          <td class="memname">ivec bdm::rectangular_support::nearest_point           </td>
185          <td>(</td>
186          <td class="paramtype">const vec &amp;&nbsp;</td>
187          <td class="paramname"> <em>val</em>          </td>
188          <td>&nbsp;)&nbsp;</td>
189          <td></td>
190        </tr>
191      </table>
192</div>
193<div class="memdoc">
194
195<p>
196<dl class="todo" compact><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>to je asi navic .. v predkovi! </dd></dl>
197
198<p>
199<dl class="todo" compact><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>GRIDSIZES prejmenovat.. </dd></dl>
200
201<p>References <a class="el" href="discrete_8h_source.html#l00037">gridsizes</a>, <a class="el" href="discrete_8h_source.html#l00035">ranges</a>, and <a class="el" href="discrete_8h_source.html#l00047">steps</a>.</p>
202
203<p>Referenced by <a class="el" href="discrete_8h_source.html#l00163">bdm::egrid::evallog()</a>.</p>
204
205</div>
206</div><p>
207<hr>The documentation for this class was generated from the following files:<ul>
208<li><a class="el" href="discrete_8h_source.html">discrete.h</a><li>discrete.cpp</ul>
209</div>
210<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 17:34:48 2009 for mixpp by&nbsp;
211<a href="http://www.doxygen.org/index.html">
212<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
213</body>
214</html>
Note: See TracBrowser for help on using the browser.