Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c200d180bc1063a7706e0da42a546b51 > files > 159

atlascpp-devel-0.6.1-7.fc12.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Atlas-C++: Atlas::Objects::BaseObjectData::iterator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespace_atlas.html">Atlas</a>::<a class="el" href="namespace_atlas_1_1_objects.html">Objects</a>::<a class="el" href="class_atlas_1_1_objects_1_1_base_object_data.html">BaseObjectData</a>::<a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html">iterator</a>
  </div>
</div>
<div class="contents">
<h1>Atlas::Objects::BaseObjectData::iterator Class Reference</h1><!-- doxytag: class="Atlas::Objects::BaseObjectData::iterator" -->The <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html" title="The iterator first iterates over the contents of m_obj-&gt;m_attributes, holding...">iterator</a> first iterates over the contents of m_obj-&gt;m_attributes, holding an <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html" title="The iterator first iterates over the contents of m_obj-&gt;m_attributes, holding...">iterator</a> to the attributes map in m_I.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="_base_object_8h_source.html">BaseObject.h</a>&gt;</code>
<p>

<p>
<a href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><b>PsuedoElement</b></td></tr>

<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2bc44f69a743b51c4e31f8fc8c66a2d3"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::value_type" ref="2bc44f69a743b51c4e31f8fc8c66a2d3" args="" -->
typedef std::pair&lt; std::string, <br class="typebreak">
PsuedoElement &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="54dc40019a89665e1624b23c4a6a8a63"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::iterator" ref="54dc40019a89665e1624b23c4a6a8a63" args="(const iterator &amp;I)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>iterator</b> (const <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html">iterator</a> &amp;I)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9f8b68ec81c64c6013ff01047b5fd20d"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::iterator" ref="9f8b68ec81c64c6013ff01047b5fd20d" args="(BaseObjectData &amp;obj, int current_class)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>iterator</b> (<a class="el" href="class_atlas_1_1_objects_1_1_base_object_data.html">BaseObjectData</a> &amp;obj, int current_class)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="453869fb2fe3938d8432e4a9997decc3"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::operator=" ref="453869fb2fe3938d8432e4a9997decc3" args="(const iterator &amp;I)" -->
<a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html">iterator</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html">iterator</a> &amp;I)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="386199207a28f63d870df16fb31be37e"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::operator++" ref="386199207a28f63d870df16fb31be37e" args="()" -->
<a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html">iterator</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator++</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ce85ecef856d7ef9168938e180aa0489"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::operator++" ref="ce85ecef856d7ef9168938e180aa0489" args="(int)" -->
<a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator++</b> (int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6eb895979829edfab66a44708a585825"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::operator==" ref="6eb895979829edfab66a44708a585825" args="(const iterator &amp;I) const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html">iterator</a> &amp;I) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="570771355f9745bee7e83d1e981103e5"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::operator!=" ref="570771355f9745bee7e83d1e981103e5" args="(const iterator &amp;I) const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html">iterator</a> &amp;I) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d5b9d3c87d51aafa5f28ea83fe57e30a"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::operator*" ref="d5b9d3c87d51aafa5f28ea83fe57e30a" args="() const " -->
const value_type &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator*</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="49090fe7a1bf0c42ac722e93ee9c8a3c"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::operator&#45;&gt;" ref="49090fe7a1bf0c42ac722e93ee9c8a3c" args="() const " -->
const value_type *&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator-&gt;</b> () const </td></tr>

<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="43d1abab334341a6473a92b16e508eed"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::BaseObjectData" ref="43d1abab334341a6473a92b16e508eed" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>BaseObjectData</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c220ce1c155db1ac44146c12d178056f"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::const_iterator" ref="c220ce1c155db1ac44146c12d178056f" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>const_iterator</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c9187f13f6357c137831c8a6126a59f3"></a><!-- doxytag: member="Atlas::Objects::BaseObjectData::iterator::PsuedoElement" ref="c9187f13f6357c137831c8a6126a59f3" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>PsuedoElement</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html" title="The iterator first iterates over the contents of m_obj-&gt;m_attributes, holding...">iterator</a> first iterates over the contents of m_obj-&gt;m_attributes, holding an <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html" title="The iterator first iterates over the contents of m_obj-&gt;m_attributes, holding...">iterator</a> to the attributes map in m_I. 
<p>
When m_I reaches the end, it iterates through the named attributes in each of the classes, starting with the terminal child and working its way up to the ultimate parent, <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data.html" title="Atlas base object class.">BaseObjectData</a>. It stores the class number in m_current_class and the name of the current attribute in m_val.first. Since <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data.html" title="Atlas base object class.">BaseObjectData</a> has no named attributes, an <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html" title="The iterator first iterates over the contents of m_obj-&gt;m_attributes, holding...">iterator</a> with m_current_class == BASE_OBJECT_NO is considered to be the end of the map. The <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html" title="The iterator first iterates over the contents of m_obj-&gt;m_attributes, holding...">iterator</a> constructor has an argument which lets you begin() at the first named attribute in some class, and only iterate through that class and its parents. The same <a class="el" href="class_atlas_1_1_objects_1_1_base_object_data_1_1iterator.html" title="The iterator first iterates over the contents of m_obj-&gt;m_attributes, holding...">iterator</a>, treated as an end(), lets you iterate through all attributes which are either named in derived classes or in m_attributes. <hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_base_object_8h_source.html">BaseObject.h</a></ul>
</div>
<HR>
<P>Copyright 2000-2004 the respective authors.</P>
<P>This document can be licensed under the terms of the GNU Free Documentation
License or the GNU General Public License and may be freely distributed under
the terms given by one of these licenses.</P>