summaryrefslogtreecommitdiff
path: root/item_8h.html
diff options
context:
space:
mode:
Diffstat (limited to 'item_8h.html')
-rw-r--r--item_8h.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/item_8h.html b/item_8h.html
index b36b4cbd1..bf99d8e14 100644
--- a/item_8h.html
+++ b/item_8h.html
@@ -616,7 +616,6 @@ Variables</h2></td></tr>
<p>Gets the next matching attribute from an item. </p>
<p>This function returns the next attribute matching <code>attr_type</code> from an item and advances the "attribute pointer" accordingly, so that at the next call the next attribute will be returned.</p>
-<p>IMPORTANT: Unless you are iterating over attributes, or operating on a “fresh” item (from which no other code has had a chance to retrieve an attribute), be sure to call <a class="el" href="item_8h.html#a0cac46294839e00eec2c1adbaaa73d22">item_attr_rewind(struct item *)</a> before each call to this method. Not doing so may result in unpredictable behavior, i.e. attributes not being found if the attribute pointer is already past the requested attribute (which depends on the physical ordering of attributes and on the last attribute retrieved from the item).</p>
<p>This function is not safe to call after destroying the item's map rect, and doing so may cause errors with some map implementations.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
@@ -655,7 +654,7 @@ Variables</h2></td></tr>
<p>Resets the "attribute pointer" of an item. </p>
<p>This function resets the "attribute pointer" of an item to point to the first attribute, so that at the next call to</p><div class="fragment"><div class="line"><a class="code" href="item_8c.html#a1f97d6a6d85956aa73deb31d4a16397f">item_attr_get</a>() </div>
-<div class="ttc" id="aitem_8c_html_a1f97d6a6d85956aa73deb31d4a16397f"><div class="ttname"><a href="item_8c.html#a1f97d6a6d85956aa73deb31d4a16397f">item_attr_get</a></div><div class="ttdeci">int item_attr_get(struct item *it, enum attr_type attr_type, struct attr *attr)</div><div class="ttdoc">Gets the next matching attribute from an item.</div><div class="ttdef"><b>Definition:</b> item.c:414</div></div>
+<div class="ttc" id="aitem_8c_html_a1f97d6a6d85956aa73deb31d4a16397f"><div class="ttname"><a href="item_8c.html#a1f97d6a6d85956aa73deb31d4a16397f">item_attr_get</a></div><div class="ttdeci">int item_attr_get(struct item *it, enum attr_type attr_type, struct attr *attr)</div><div class="ttdoc">Gets the next matching attribute from an item.</div><div class="ttdef"><b>Definition:</b> item.c:407</div></div>
</div><!-- fragment --><p> the first attribute will be returned.</p>
<p>This function is not safe to call after destroying the item's map rect, and doing so may cause errors with some map implementations.</p>
<dl class="params"><dt>Parameters</dt><dd>
@@ -669,7 +668,7 @@ Variables</h2></td></tr>
<p class="reference">References <a class="el" href="structitem__methods.html#a7d348e70a85ccbd220c9cc79912fbfef">item_methods::item_attr_rewind</a>, <a class="el" href="structitem.html#ad957a0f1cfe3938aecb9dd2a694db3b0">item::meth</a>, and <a class="el" href="structitem.html#a2f4abb10408f4c6f272e7f19f6701c22">item::priv_data</a>.</p>
-<p class="reference">Referenced by <a class="el" href="graphics_8c.html#aacda2978472c679b00749934ac5d0d40">display_add()</a>, <a class="el" href="graphics_8c.html#aa43ebd3b1f815ae0fec28a9b1bc6b6cb">display_add_holes()</a>, <a class="el" href="gui__internal__poi_8c.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="filter_8c.html#a921a2ac1a9c8846ba0ee0897aa574574">map_filter_attr_rewind()</a>, <a class="el" href="pedestrian_8c.html#a561a46e43d0ca5871de4035982a24d01">map_route_occluded_attr_rewind()</a>, <a class="el" href="binding__dbus_8c.html#a28ddaa358c056bea390f5934dc85e396">request_navit_traffic_export_gpx()</a>, <a class="el" href="route_8c.html#afc9d40fc75c45d15061f51fcced0e26e">route_graph_add_street()</a>, <a class="el" href="route_8c.html#ad973b8617cff24333518a58e30894606">route_graph_add_traffic_distortion()</a>, <a class="el" href="traffic_8c.html#adc4bc2f0df9ba161f053e905e66dab4c">tm_find_item()</a>, <a class="el" href="traffic_8c.html#af9831ce04fa609fbdb30c83337e6a67d">traffic_location_match_attributes()</a>, <a class="el" href="traffic_8c.html#a8839fcaf3bca9ac83fbb058bf4cba12b">traffic_location_populate_route_graph()</a>, <a class="el" href="traffic_8c.html#a06624f0322fa03bd7f15e98c2e1b453d">traffic_message_restore_segments()</a>, <a class="el" href="traffic_8c.html#aed5422830e1bbf5b88d7f5cf53604184">traffic_point_match_attributes()</a>, and <a class="el" href="traffic_8c.html#ad82315e0ccc9c36e3758e4c71dcfd1a8">traffic_point_match_segment_attributes()</a>.</p>
+<p class="reference">Referenced by <a class="el" href="graphics_8c.html#aacda2978472c679b00749934ac5d0d40">display_add()</a>, <a class="el" href="graphics_8c.html#aa43ebd3b1f815ae0fec28a9b1bc6b6cb">display_add_holes()</a>, <a class="el" href="gui__internal__poi_8c.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="filter_8c.html#a921a2ac1a9c8846ba0ee0897aa574574">map_filter_attr_rewind()</a>, <a class="el" href="pedestrian_8c.html#a561a46e43d0ca5871de4035982a24d01">map_route_occluded_attr_rewind()</a>, <a class="el" href="binding__dbus_8c.html#a28ddaa358c056bea390f5934dc85e396">request_navit_traffic_export_gpx()</a>, and <a class="el" href="route_8c.html#ad973b8617cff24333518a58e30894606">route_graph_add_traffic_distortion()</a>.</p>
</div>
</div>