diff options
Diffstat (limited to 'docs/doxygen/nel/classNLMISC_1_1CObjectVector.html')
-rw-r--r-- | docs/doxygen/nel/classNLMISC_1_1CObjectVector.html | 871 |
1 files changed, 871 insertions, 0 deletions
diff --git a/docs/doxygen/nel/classNLMISC_1_1CObjectVector.html b/docs/doxygen/nel/classNLMISC_1_1CObjectVector.html new file mode 100644 index 00000000..8fd1ac83 --- /dev/null +++ b/docs/doxygen/nel/classNLMISC_1_1CObjectVector.html @@ -0,0 +1,871 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.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">Compound List</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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NLMISC::CObjectVector Class Template Reference</h1>The purpose of this class is to copy most (but not all) of stl vector<> features, without some of the speed/memory problems involved: size of a vector<T> is 16 bytes typically. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="object__vector_8h-source.html">object_vector.h</a>></code> +<p> +<a href="classNLMISC_1_1CObjectVector-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td colspan=2><br><h2>Public Methods</h2></td></tr> +<tr><td colspan="2"><div class="groupHeader">Object</div></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z300_0">CObjectVector</a> ()</td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z300_1">~CObjectVector</a> ()</td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z300_2">CObjectVector</a> (const CObjectVector &vec)</td></tr> +<tr><td> </td><td><font size=-1><em>copy cons.</em> <a href="#z300_2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>CObjectVector & </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z300_3">operator=</a> (const CObjectVector &vec)</td></tr> +<tr><td> </td><td><font size=-1><em>copy the array.</em> <a href="#z300_3">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">Allocation</div></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z301_0">clear</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>clear the array.</em> <a href="#z301_0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z301_1">resize</a> (<a class="el" href="memory__common_8h.html#a11">uint32</a> size)</td></tr> +<tr><td> </td><td><font size=-1><em>resize the array.</em> <a href="#z301_1">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">Accessor</div></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a11">uint32</a> </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z302_0">size</a> () const</td></tr> +<tr><td> </td><td><font size=-1><em>return size of the array (in number of elements).</em> <a href="#z302_0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>T & </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z302_1">operator[]</a> (<a class="el" href="memory__common_8h.html#a15">uint</a> <a class="el" href="driver__opengl__extension__def_8h.html#a358">index</a>) const</td></tr> +<tr><td> </td><td><font size=-1><em>Element accessor.</em> <a href="#z302_1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>T * </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z302_2">getPtr</a> () const</td></tr> +<tr><td> </td><td><font size=-1><em>return a ptr on the first element of the array.</em> <a href="#z302_2">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">Tools</div></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z303_0">copy</a> (<a class="el" href="memory__common_8h.html#a11">uint32</a> dstFirst, <a class="el" href="memory__common_8h.html#a11">uint32</a> dstLast, const T *srcPtr)</td></tr> +<tr><td> </td><td><font size=-1><em>copy elements from an array ptr to this vector, beetween dstFirst element (included) and dstLast element (not included).</em> <a href="#z303_0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z303_1">fill</a> (<a class="el" href="memory__common_8h.html#a11">uint32</a> dstFirst, <a class="el" href="memory__common_8h.html#a11">uint32</a> dstLast, const T &<a class="el" href="driver__opengl__extension__def_8h.html#a415">value</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>fill elements with a value, beetween dstFirst element (included) and dstLast element (not included).</em> <a href="#z303_1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z303_2">fill</a> (const T &<a class="el" href="driver__opengl__extension__def_8h.html#a415">value</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>fill all elements with a value.</em> <a href="#z303_2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#z303_3">serial</a> (<a class="el" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &f)</td></tr> +<tr><td> </td><td><font size=-1><em>Serial this ObjectVector.</em> <a href="#z303_3">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Methods</h2></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#c0">myRealloc</a> (<a class="el" href="memory__common_8h.html#a11">uint32</a> size)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#c1">destruct</a> (<a class="el" href="memory__common_8h.html#a11">uint32</a> i0, <a class="el" href="memory__common_8h.html#a11">uint32</a> i1)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#c2">construct</a> (<a class="el" href="memory__common_8h.html#a11">uint32</a> i0, <a class="el" href="memory__common_8h.html#a11">uint32</a> i1)</td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top>T * </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#o0">_Ptr</a></td></tr> +<tr><td> </td><td><font size=-1><em>Ptr on our array.</em> <a href="#o0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a11">uint32</a> </td><td valign=bottom><a class="el" href="classNLMISC_1_1CObjectVector.html#o1">_Size</a></td></tr> +<tr><td> </td><td><font size=-1><em>size of the array, in number of elements.</em> <a href="#o1">More...</a><em></em></font><br><br></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<h3>template<class T, bool EnableObjectBehavior = true><br> + class NLMISC::CObjectVector< T, EnableObjectBehavior ></h3> + +The purpose of this class is to copy most (but not all) of stl vector<> features, without some of the speed/memory problems involved: size of a vector<T> is 16 bytes typically. +<p> +<ul> +<li>size of a <a class="el" href="classNLMISC_1_1CObjectVector.html">CObjectVector</a> is 8 bytes (only a ptr and a size).<li><a class="el" href="classNLMISC_1_1CObjectVector.html#z302_0">CObjectVector<T>::size</a>() is faster than <a class="el" href="driver__opengl__extension__def_8h.html#a379">vector::size</a><li><a class="el" href="classNLMISC_1_1CObjectVector.html#z301_1">CObjectVector<T>::resize</a>() is faster because it do not copy from a default value, it just call the default constructor of the objects.<li><a class="el" href="classNLMISC_1_1CObjectVector.html#z301_0">clear</a>() actually free memory (no reserve scheme)</ul> +Object contructors, destructors, operator= are correctly called, unless EnableObjectBehavior template argument is set to false (default is true) In this case: ctor, dtor are not called, and <a class="el" href="classNLMISC_1_1CObjectVector.html#z300_3">operator=</a>() use memcpy. +<p> +Of course some features are not implemented (for benefit of speed/memory):<ul> +<li>no reserve() scheme</ul> +Also, for now, not all vector<> features are implemented (iterator, erase etc...). +<p> +<dl compact><dt><b> +Author: </b><dd> +Lionel Berenguier , Nevrax France </dl><dl compact><dt><b> +Date: </b><dd> +2001 </dl> +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00071">71</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +<a name="z300_0" doxytag="NLMISC::CObjectVector::CObjectVector"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CObjectVector< T, EnableObjectBehavior >::CObjectVector </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> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00077">77</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00089">NLMISC::CObjectVector< CVertex >::CObjectVector</a>, and <a class="el" href="object__vector_8h-source.html#l00098">NLMISC::CObjectVector< CVertex >::operator=</a>. </td> + </tr> +</table> +<a name="z300_1" doxytag="NLMISC::CObjectVector::~CObjectVector"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CObjectVector< T, EnableObjectBehavior >::~CObjectVector </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> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00082">82</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. </td> + </tr> +</table> +<a name="z300_2" doxytag="NLMISC::CObjectVector::CObjectVector"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> NLMISC::CObjectVector< T, EnableObjectBehavior >::CObjectVector </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const CObjectVector< T, EnableObjectBehavior > & </td> + <td class="mdname1" valign="top" nowrap> <em>vec</em> </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> +copy cons. +<p> +<dl compact><dt><b> +Exceptions: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="el" href="structNLMISC_1_1EReallocationFailed.html">EReallocationFailed</a></em> </td><td> +() if realloc fails. </td></tr> +</table> +</dl> +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00089">89</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="z301_0" doxytag="NLMISC::CObjectVector::clear"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::clear </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> +clear the array. +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00118">118</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00313">NLMISC::CObjectVector< CVertex >::myRealloc</a>, <a class="el" href="object__vector_8h-source.html#l00131">NLMISC::CObjectVector< CVertex >::resize</a>, and <a class="el" href="object__vector_8h-source.html#l00082">NLMISC::CObjectVector< CVertex >::~CObjectVector</a>. </td> + </tr> +</table> +<a name="c2" doxytag="NLMISC::CObjectVector::construct"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::construct </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>i0</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>i1</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00346">346</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00131">NLMISC::CObjectVector< CVertex >::resize</a>. </td> + </tr> +</table> +<a name="z303_0" doxytag="NLMISC::CObjectVector::copy"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::copy </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>dstFirst</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>dstLast</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const T * </td> + <td class="mdname" nowrap> <em>srcPtr</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +copy elements from an array ptr to this vector, beetween dstFirst element (included) and dstLast element (not included). +<p> +nlassert if last is too big. copy(y, x, ...) where y>=x is valid, and nothing is copied. +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00191">191</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00098">NLMISC::CObjectVector< CVertex >::operator=</a>. </td> + </tr> +</table> +<a name="c1" doxytag="NLMISC::CObjectVector::destruct"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::destruct </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>i0</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>i1</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00332">332</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00118">NLMISC::CObjectVector< CVertex >::clear</a>, and <a class="el" href="object__vector_8h-source.html#l00131">NLMISC::CObjectVector< CVertex >::resize</a>. </td> + </tr> +</table> +<a name="z303_2" doxytag="NLMISC::CObjectVector::fill"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::fill </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const T & </td> + <td class="mdname1" valign="top" nowrap> <em>value</em> </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> +fill all elements with a value. +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00231">231</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. </td> + </tr> +</table> +<a name="z303_1" doxytag="NLMISC::CObjectVector::fill"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::fill </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>dstFirst</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>dstLast</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const T & </td> + <td class="mdname" nowrap> <em>value</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +fill elements with a value, beetween dstFirst element (included) and dstLast element (not included). +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00216">216</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. </td> + </tr> +</table> +<a name="z302_2" doxytag="NLMISC::CObjectVector::getPtr"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> T* NLMISC::CObjectVector< T, EnableObjectBehavior >::getPtr </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +return a ptr on the first element of the array. +<p> +NULL if empty. +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00180">180</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. </td> + </tr> +</table> +<a name="c0" doxytag="NLMISC::CObjectVector::myRealloc"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::myRealloc </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>size</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00313">313</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00131">NLMISC::CObjectVector< CVertex >::resize</a>. </td> + </tr> +</table> +<a name="z300_3" doxytag="NLMISC::CObjectVector::operator="></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> CObjectVector& NLMISC::CObjectVector< T, EnableObjectBehavior >::operator= </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const CObjectVector< T, EnableObjectBehavior > & </td> + <td class="mdname1" valign="top" nowrap> <em>vec</em> </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> +copy the array. +<p> +<dl compact><dt><b> +Exceptions: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="el" href="structNLMISC_1_1EReallocationFailed.html">EReallocationFailed</a></em> </td><td> +() if realloc fails. </td></tr> +</table> +</dl> +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00098">98</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00089">NLMISC::CObjectVector< CVertex >::CObjectVector</a>. </td> + </tr> +</table> +<a name="z302_1" doxytag="NLMISC::CObjectVector::operator[]"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> T& NLMISC::CObjectVector< T, EnableObjectBehavior >::operator[] </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>index</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Element accessor. +<p> +no check is made on index. (No exception, no <a class="el" href="debug_8h.html#a6">nlassert</a>()) +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00173">173</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. </td> + </tr> +</table> +<a name="z301_1" doxytag="NLMISC::CObjectVector::resize"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::resize </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>size</em> </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> +resize the array. +<p> +If reallocation occurs, ptr returned by <a class="el" href="classNLMISC_1_1CObjectVector.html#z302_2">getPtr</a>() may not be the same. When reallocation occurs, memory is coped, but operator= are not called. <dl compact><dt><b> +Exceptions: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="el" href="structNLMISC_1_1EReallocationFailed.html">EReallocationFailed</a></em> </td><td> +() if realloc fails. </td></tr> +</table> +</dl> +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00131">131</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00098">NLMISC::CObjectVector< CVertex >::operator=</a>, and <a class="el" href="object__vector_8h-source.html#l00245">NLMISC::CObjectVector< CVertex >::serial</a>. </td> + </tr> +</table> +<a name="z303_3" doxytag="NLMISC::CObjectVector::serial"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CObjectVector< T, EnableObjectBehavior >::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </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> +Serial this ObjectVector. +<p> +NB: actually, the serial of a vector<> and the serial of a <a class="el" href="classNLMISC_1_1CObjectVector.html">CObjectVector</a> is the same in the stream. +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00245">245</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. </td> + </tr> +</table> +<a name="z302_0" doxytag="NLMISC::CObjectVector::size"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="memory__common_8h.html#a11">uint32</a> NLMISC::CObjectVector< T, EnableObjectBehavior >::size </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +return size of the array (in number of elements). +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00169">169</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00313">NLMISC::CObjectVector< CVertex >::myRealloc</a>, <a class="el" href="skeleton__model_8cpp-source.html#l01292">NL3D::CSkeletonModelRenderObs::renderSkinList</a>, <a class="el" href="object__vector_8h-source.html#l00131">NLMISC::CObjectVector< CVertex >::resize</a>, and <a class="el" href="object__vector_8h-source.html#l00245">NLMISC::CObjectVector< CVertex >::serial</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="o0" doxytag="NLMISC::CObjectVector::_Ptr"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> T* NLMISC::CObjectVector::_Ptr<code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Ptr on our array. +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00306">306</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00118">NLMISC::CObjectVector< CVertex >::clear</a>, <a class="el" href="object__vector_8h-source.html#l00077">NLMISC::CObjectVector< CVertex >::CObjectVector</a>, <a class="el" href="object__vector_8h-source.html#l00346">NLMISC::CObjectVector< CVertex >::construct</a>, <a class="el" href="object__vector_8h-source.html#l00191">NLMISC::CObjectVector< CVertex >::copy</a>, <a class="el" href="object__vector_8h-source.html#l00332">NLMISC::CObjectVector< CVertex >::destruct</a>, <a class="el" href="object__vector_8h-source.html#l00216">NLMISC::CObjectVector< CVertex >::fill</a>, <a class="el" href="object__vector_8h-source.html#l00180">NLMISC::CObjectVector< CVertex >::getPtr</a>, <a class="el" href="object__vector_8h-source.html#l00313">NLMISC::CObjectVector< CVertex >::myRealloc</a>, <a class="el" href="object__vector_8h-source.html#l00173">NLMISC::CObjectVector< CVertex >::operator[]</a>, and <a class="el" href="object__vector_8h-source.html#l00245">NLMISC::CObjectVector< CVertex >::serial</a>. </td> + </tr> +</table> +<a name="o1" doxytag="NLMISC::CObjectVector::_Size"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T, bool EnableObjectBehavior = true> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="memory__common_8h.html#a11">uint32</a> NLMISC::CObjectVector::_Size<code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +size of the array, in number of elements. +<p> + +<p> +Definition at line <a class="el" href="object__vector_8h-source.html#l00308">308</a> of file <a class="el" href="object__vector_8h-source.html">object_vector.h</a>. +<p> +Referenced by <a class="el" href="object__vector_8h-source.html#l00118">NLMISC::CObjectVector< CVertex >::clear</a>, <a class="el" href="object__vector_8h-source.html#l00077">NLMISC::CObjectVector< CVertex >::CObjectVector</a>, <a class="el" href="object__vector_8h-source.html#l00191">NLMISC::CObjectVector< CVertex >::copy</a>, <a class="el" href="object__vector_8h-source.html#l00216">NLMISC::CObjectVector< CVertex >::fill</a>, <a class="el" href="object__vector_8h-source.html#l00098">NLMISC::CObjectVector< CVertex >::operator=</a>, <a class="el" href="object__vector_8h-source.html#l00131">NLMISC::CObjectVector< CVertex >::resize</a>, and <a class="el" href="object__vector_8h-source.html#l00169">NLMISC::CObjectVector< CVertex >::size</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="object__vector_8h-source.html">object_vector.h</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |