diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02720.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02720.html | 785 |
1 files changed, 785 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02720.html b/docs/doxygen/nel/a02720.html new file mode 100644 index 00000000..f5465a1f --- /dev/null +++ b/docs/doxygen/nel/a02720.html @@ -0,0 +1,785 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: TemplateNL3D::CLayeredOrderingTable< T > class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CLayeredOrderingTable< T > Class Template Reference</h1><code>#include <<a class="el" href="a05884.html">layered_ordering_table.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<h3>template<class T><br> + class NL3D::CLayeredOrderingTable< T ></h3> + +The same as an ordering table, but it allows to have several layers for the display.<ul> +<li>Layer 0 acts as an ordering table.</li><li>Layer 1 is a simple vector, with no sort.</li><li>Layer 2 acts as an ordering table. Typically, this can be used to sort objects that are above or below a surface (which fit in layer 1). </li></ul> + +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00043">43</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea0">begin</a> (bool forwardTraversal=true)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea1">CLayeredOrderingTable</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">ctor <a href="#NL3D_1_1CLayeredOrderingTablea1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>T * </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea2">get</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea3">getSize</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea4">init</a> (<a class="el" href="a04558.html#a11">uint32</a> nNbEntries)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea5">insert</a> (<a class="el" href="a04558.html#a15">uint</a> layer, T *pValue, <a class="el" href="a04558.html#a11">uint32</a> nEntryPos=0)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea6">next</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea7">reset</a> (<a class="el" href="a04558.html#a15">uint</a> maxElementToInsert)</td></tr> + +<tr><td colspan=2><br><h2>Private Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector< T * > </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabley0">TTypePtVect</a></td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler1">_ForwardTraversal</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03030.html">COrderingTable</a>< T > </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabley0">TTypePtVect</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03030.html">COrderingTable</a>< T > </td><td class="memItemRight" valign=bottom><a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a></td></tr> + +</table> +<hr><h2>Member Typedef Documentation</h2> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTabley0" doxytag="NL3D::CLayeredOrderingTable::TTypePtVect" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> typedef std::vector<T *> <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::<a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabley0">TTypePtVect</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00106">106</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTablea1" doxytag="NL3D::CLayeredOrderingTable::CLayeredOrderingTable" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::<a class="el" href="a02720.html">CLayeredOrderingTable</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +ctor +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00119">119</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +<div class="fragment"><pre>00119 : <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a>(0), <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a>(0), <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler1">_ForwardTraversal</a>(<span class="keyword">true</span>){ +00120 +00121 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTablea0" doxytag="NL3D::CLayeredOrderingTable::begin" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::begin </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>forwardTraversal</em> = true </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Traversal operations<p> +LayeredOrderingTable<Face> ot; ot.begin(); while( ot.get() != NULL ) { Face *pF = ot.get(); // Do the treatment you want here ot.next(); }<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>forwardTraversal</em> </td><td>true to traverse from layer 0 to layer 2 and vice versa.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05884.html#l00171">171</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +References <a class="el" href="a05884.html#l00111">NL3D::CLayeredOrderingTable< T >::_CurrLayer</a>, <a class="el" href="a05884.html#l00112">NL3D::CLayeredOrderingTable< T >::_ForwardTraversal</a>, <a class="el" href="a05884.html#l00110">NL3D::CLayeredOrderingTable< T >::_IndexInLayer1</a>, <a class="el" href="a05884.html#l00107">NL3D::CLayeredOrderingTable< T >::_Layer0</a>, <a class="el" href="a05884.html#l00108">NL3D::CLayeredOrderingTable< T >::_Layer1</a>, and <a class="el" href="a05884.html#l00109">NL3D::CLayeredOrderingTable< T >::_Layer2</a>. +<p> +<div class="fragment"><pre>00172 { +00173 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler1">_ForwardTraversal</a> = forwardTraversal; +00174 <span class="keywordflow">if</span> (forwardTraversal) +00175 { +00176 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.begin(); +00177 <span class="keywordflow">if</span> (!<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.get()) +00178 { +00179 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>.size() != 0) +00180 { +00181 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 1; +00182 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a> = 0; +00183 } +00184 <span class="keywordflow">else</span> +00185 { +00186 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 2; +00187 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.begin(); +00188 } +00189 } +00190 <span class="keywordflow">else</span> +00191 { +00192 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 0; +00193 } +00194 } +00195 <span class="keywordflow">else</span> +00196 { +00197 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.begin(); +00198 <span class="keywordflow">if</span> (!<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.get()) +00199 { +00200 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>.size() != 0) +00201 { +00202 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 1; +00203 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a> = 0; +00204 } +00205 <span class="keywordflow">else</span> +00206 { +00207 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 0; +00208 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.begin(); +00209 } +00210 } +00211 <span class="keywordflow">else</span> +00212 { +00213 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 2; +00214 } +00215 } +00216 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTablea2" doxytag="NL3D::CLayeredOrderingTable::get" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> T * <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::get </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the currently selected element. +<p> +Definition at line <a class="el" href="a05884.html#l00220">220</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +References <a class="el" href="a05884.html#l00111">NL3D::CLayeredOrderingTable< T >::_CurrLayer</a>, <a class="el" href="a05884.html#l00110">NL3D::CLayeredOrderingTable< T >::_IndexInLayer1</a>, <a class="el" href="a05884.html#l00107">NL3D::CLayeredOrderingTable< T >::_Layer0</a>, <a class="el" href="a05884.html#l00108">NL3D::CLayeredOrderingTable< T >::_Layer1</a>, <a class="el" href="a05884.html#l00109">NL3D::CLayeredOrderingTable< T >::_Layer2</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>. +<p> +<div class="fragment"><pre>00221 { +00222 <span class="keywordflow">switch</span>(<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a>) +00223 { +00224 <span class="keywordflow">case</span> 0: +00225 <span class="keywordflow">return</span> <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.get(); +00226 <span class="keywordflow">break</span>; +00227 <span class="keywordflow">case</span> 1: +00228 <span class="keywordflow">return</span> <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>[<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a>]; +00229 <span class="keywordflow">break</span>; +00230 <span class="keywordflow">case</span> 2: +00231 <span class="keywordflow">return</span> <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.get(); +00232 <span class="keywordflow">break</span>; +00233 <span class="keywordflow">default</span>: +00234 <a class="code" href="a04199.html#a6">nlassert</a>(0); +00235 <span class="keywordflow">break</span>; +00236 } +00237 <span class="keywordflow">return</span> NULL; <span class="comment">// avoid warning</span> +00238 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTablea3" doxytag="NL3D::CLayeredOrderingTable::getSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::getSize </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Just return the number of entries in the ordering tables +<p> +Definition at line <a class="el" href="a05884.html#l00133">133</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +References <a class="el" href="a05884.html#l00107">NL3D::CLayeredOrderingTable< T >::_Layer0</a>, <a class="el" href="a05884.html#l00109">NL3D::CLayeredOrderingTable< T >::_Layer2</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00134 { +00135 <a class="code" href="a04199.html#a6">nlassert</a>(<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.getSize() == <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.getSize()); +00136 <span class="keywordflow">return</span> <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.getSize(); +00137 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTablea4" doxytag="NL3D::CLayeredOrderingTable::init" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::init </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>nNbEntries</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Initialization. The ordering tables have a range from 0 to nNbEntries-1 +<p> +Definition at line <a class="el" href="a05884.html#l00125">125</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +References <a class="el" href="a05884.html#l00107">NL3D::CLayeredOrderingTable< T >::_Layer0</a>, <a class="el" href="a05884.html#l00109">NL3D::CLayeredOrderingTable< T >::_Layer2</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00126 { +00127 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.init(nNbEntries); +00128 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.init(nNbEntries); +00129 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTablea5" doxytag="NL3D::CLayeredOrderingTable::insert" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::insert </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>layer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T * </td> + <td class="mdname" nowrap> <em>pValue</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>nEntryPos</em> = 0</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Insert an element in the ordering table <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>layer</em> </td><td>the layer in which to insert the object. Might be 0, 1 or 2 </td></tr> + <tr><td valign=top><em>entry</em> </td><td>pos The position for the ordering tables. It is ignored when the layer is 1.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05884.html#l00150">150</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +References <a class="el" href="a05884.html#l00107">NL3D::CLayeredOrderingTable< T >::_Layer0</a>, <a class="el" href="a05884.html#l00108">NL3D::CLayeredOrderingTable< T >::_Layer1</a>, <a class="el" href="a05884.html#l00109">NL3D::CLayeredOrderingTable< T >::_Layer2</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00151 { +00152 <span class="keywordflow">switch</span> (layer) +00153 { +00154 <span class="keywordflow">case</span> 0: +00155 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.insert(nEntryPos, pValue); +00156 <span class="keywordflow">break</span>; +00157 <span class="keywordflow">case</span> 1: +00158 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>.push_back(pValue); +00159 <span class="keywordflow">break</span>; +00160 <span class="keywordflow">case</span> 2: +00161 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.insert(nEntryPos, pValue); +00162 <span class="keywordflow">break</span>; +00163 <span class="keywordflow">default</span>: +00164 <a class="code" href="a04199.html#a6">nlassert</a>(0); <span class="comment">// invalid layer</span> +00165 <span class="keywordflow">break</span>; +00166 } +00167 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTablea6" doxytag="NL3D::CLayeredOrderingTable::next" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::next </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Move selection pointer to the next element +<p> +Definition at line <a class="el" href="a05884.html#l00242">242</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +References <a class="el" href="a05884.html#l00111">NL3D::CLayeredOrderingTable< T >::_CurrLayer</a>, <a class="el" href="a05884.html#l00112">NL3D::CLayeredOrderingTable< T >::_ForwardTraversal</a>, <a class="el" href="a05884.html#l00110">NL3D::CLayeredOrderingTable< T >::_IndexInLayer1</a>, <a class="el" href="a05884.html#l00107">NL3D::CLayeredOrderingTable< T >::_Layer0</a>, <a class="el" href="a05884.html#l00108">NL3D::CLayeredOrderingTable< T >::_Layer1</a>, and <a class="el" href="a05884.html#l00109">NL3D::CLayeredOrderingTable< T >::_Layer2</a>. +<p> +<div class="fragment"><pre>00243 { +00244 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler1">_ForwardTraversal</a>) +00245 { +00246 <span class="keywordflow">switch</span>(<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a>) +00247 { +00248 <span class="keywordflow">case</span> 0: +00249 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.next(); +00250 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.get() == NULL) +00251 { +00252 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>.size() != 0) +00253 { +00254 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 1; +00255 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a> = 0; +00256 } +00257 <span class="keywordflow">else</span> +00258 { +00259 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 2; +00260 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.begin(); +00261 } +00262 } +00263 +00264 <span class="keywordflow">break</span>; +00265 <span class="keywordflow">case</span> 1: +00266 ++ <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a>; +00267 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a> == <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>.size()) +00268 { +00269 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 2; +00270 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.begin(); +00271 } +00272 <span class="keywordflow">break</span>; +00273 <span class="keywordflow">case</span> 2: +00274 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.next(); +00275 <span class="keywordflow">break</span>; +00276 } +00277 } +00278 <span class="keywordflow">else</span> +00279 { +00280 <span class="keywordflow">switch</span>(<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a>) +00281 { +00282 +00283 <span class="keywordflow">case</span> 2: +00284 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.next(); +00285 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.get() == NULL) +00286 { +00287 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>.size() != 0) +00288 { +00289 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 1; +00290 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a> = 0; +00291 } +00292 <span class="keywordflow">else</span> +00293 { +00294 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 0; +00295 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.begin(); +00296 } +00297 } +00298 +00299 <span class="keywordflow">break</span>; +00300 <span class="keywordflow">case</span> 1: +00301 ++ <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a>; +00302 <span class="keywordflow">if</span> (<a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a> == <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>.size()) +00303 { +00304 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a> = 0; +00305 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.begin(); +00306 } +00307 <span class="keywordflow">break</span>; +00308 <span class="keywordflow">case</span> 0: +00309 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.next(); +00310 <span class="keywordflow">break</span>; +00311 } +00312 } +00313 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTablea7" doxytag="NL3D::CLayeredOrderingTable::reset" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::reset </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>maxElementToInsert</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Put all the layers to empty <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>maxElementToInsert</em> </td><td>prepare allocator for insert by setting maximum <a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTablea5">insert()</a> that will arise.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05884.html#l00141">141</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +References <a class="el" href="a05884.html#l00107">NL3D::CLayeredOrderingTable< T >::_Layer0</a>, <a class="el" href="a05884.html#l00108">NL3D::CLayeredOrderingTable< T >::_Layer1</a>, <a class="el" href="a05884.html#l00109">NL3D::CLayeredOrderingTable< T >::_Layer2</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00142 { +00143 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a>.reset(maxElementToInsert); +00144 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a>.reset(maxElementToInsert); +00145 <a class="code" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a>.clear(); +00146 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTabler0" doxytag="NL3D::CLayeredOrderingTable::_CurrLayer" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::<a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler0">_CurrLayer</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00111">111</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +Referenced by <a class="el" href="a05884.html#l00171">NL3D::CLayeredOrderingTable< T >::begin()</a>, <a class="el" href="a05884.html#l00220">NL3D::CLayeredOrderingTable< T >::get()</a>, and <a class="el" href="a05884.html#l00242">NL3D::CLayeredOrderingTable< T >::next()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTabler1" doxytag="NL3D::CLayeredOrderingTable::_ForwardTraversal" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> bool <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::<a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler1">_ForwardTraversal</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00112">112</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +Referenced by <a class="el" href="a05884.html#l00171">NL3D::CLayeredOrderingTable< T >::begin()</a>, and <a class="el" href="a05884.html#l00242">NL3D::CLayeredOrderingTable< T >::next()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTabler2" doxytag="NL3D::CLayeredOrderingTable::_IndexInLayer1" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::<a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler2">_IndexInLayer1</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00110">110</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +Referenced by <a class="el" href="a05884.html#l00171">NL3D::CLayeredOrderingTable< T >::begin()</a>, <a class="el" href="a05884.html#l00220">NL3D::CLayeredOrderingTable< T >::get()</a>, and <a class="el" href="a05884.html#l00242">NL3D::CLayeredOrderingTable< T >::next()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTabler3" doxytag="NL3D::CLayeredOrderingTable::_Layer0" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03030.html">COrderingTable</a><T> <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::<a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler3">_Layer0</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00107">107</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +Referenced by <a class="el" href="a05884.html#l00171">NL3D::CLayeredOrderingTable< T >::begin()</a>, <a class="el" href="a05884.html#l00220">NL3D::CLayeredOrderingTable< T >::get()</a>, <a class="el" href="a05884.html#l00133">NL3D::CLayeredOrderingTable< T >::getSize()</a>, <a class="el" href="a05884.html#l00125">NL3D::CLayeredOrderingTable< T >::init()</a>, <a class="el" href="a05884.html#l00150">NL3D::CLayeredOrderingTable< T >::insert()</a>, <a class="el" href="a05884.html#l00242">NL3D::CLayeredOrderingTable< T >::next()</a>, and <a class="el" href="a05884.html#l00141">NL3D::CLayeredOrderingTable< T >::reset()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTabler4" doxytag="NL3D::CLayeredOrderingTable::_Layer1" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabley0">TTypePtVect</a> <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::<a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler4">_Layer1</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00108">108</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +Referenced by <a class="el" href="a05884.html#l00171">NL3D::CLayeredOrderingTable< T >::begin()</a>, <a class="el" href="a05884.html#l00220">NL3D::CLayeredOrderingTable< T >::get()</a>, <a class="el" href="a05884.html#l00150">NL3D::CLayeredOrderingTable< T >::insert()</a>, <a class="el" href="a05884.html#l00242">NL3D::CLayeredOrderingTable< T >::next()</a>, and <a class="el" href="a05884.html#l00141">NL3D::CLayeredOrderingTable< T >::reset()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLayeredOrderingTabler5" doxytag="NL3D::CLayeredOrderingTable::_Layer2" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03030.html">COrderingTable</a><T> <a class="el" href="a02720.html">NL3D::CLayeredOrderingTable</a>< T >::<a class="el" href="a02720.html#NL3D_1_1CLayeredOrderingTabler5">_Layer2</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05884.html#l00109">109</a> of file <a class="el" href="a05884.html">layered_ordering_table.h</a>. +<p> +Referenced by <a class="el" href="a05884.html#l00171">NL3D::CLayeredOrderingTable< T >::begin()</a>, <a class="el" href="a05884.html#l00220">NL3D::CLayeredOrderingTable< T >::get()</a>, <a class="el" href="a05884.html#l00133">NL3D::CLayeredOrderingTable< T >::getSize()</a>, <a class="el" href="a05884.html#l00125">NL3D::CLayeredOrderingTable< T >::init()</a>, <a class="el" href="a05884.html#l00150">NL3D::CLayeredOrderingTable< T >::insert()</a>, <a class="el" href="a05884.html#l00242">NL3D::CLayeredOrderingTable< T >::next()</a>, and <a class="el" href="a05884.html#l00141">NL3D::CLayeredOrderingTable< T >::reset()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="a05884.html">layered_ordering_table.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:49:20 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |