132 lines
9.7 KiB
HTML
132 lines
9.7 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module geosolver.map</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
<tr bgcolor="#7799ee">
|
|
<td valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="geosolver.html"><font color="#ffffff">geosolver</font></a>.map</strong></big></big></font></td
|
|
><td align=right valign=bottom
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/rick/Programming/Python/GeoSolver/geosolver/map.py">/home/rick/Programming/Python/GeoSolver/geosolver/map.py</a></font></td></tr></table>
|
|
<p></p>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ee77aa">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl>
|
|
<dt><font face="helvetica, arial"><a href="__builtin__.html#dict">__builtin__.dict</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="geosolver.map.html#Map">Map</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Map">class <strong>Map</strong></a>(<a href="__builtin__.html#dict">__builtin__.dict</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A dictionary than can be used in dictionaries and sets. <br>
|
|
Defines equality and a hash function.<br>
|
|
Recommended to be used as an immutable. <br>
|
|
Call <a href="#Map-makehash">makehash</a>() after mutations (but not if used in a set or other map!)<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="geosolver.map.html#Map">Map</a></dd>
|
|
<dd><a href="__builtin__.html#dict">__builtin__.dict</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="Map-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
|
|
|
|
<dl><dt><a name="Map-__hash__"><strong>__hash__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Map-__init__"><strong>__init__</strong></a>(self, d<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="Map-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Map-makehash"><strong>makehash</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br>
|
|
<dl><dt><a name="Map-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__cmp__">__cmp__</a>(y) <==> cmp(x,y)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>D.<a href="#Map-__contains__">__contains__</a>(k) -> True if D has a key k, else False</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__delitem__"><strong>__delitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__delitem__">__delitem__</a>(y) <==> del x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__iter__">__iter__</a>() <==> iter(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__le__">__le__</a>(y) <==> x<=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__len__"><strong>__len__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__len__">__len__</a>() <==> len(x)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__lt__">__lt__</a>(y) <==> x<y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__ne__">__ne__</a>(y) <==> x!=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-__setitem__"><strong>__setitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Map-__setitem__">__setitem__</a>(i, y) <==> x[i]=y</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-clear"><strong>clear</strong></a>(...)</dt><dd><tt>D.<a href="#Map-clear">clear</a>() -> None. Remove all items from D.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-copy"><strong>copy</strong></a>(...)</dt><dd><tt>D.<a href="#Map-copy">copy</a>() -> a shallow copy of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-get"><strong>get</strong></a>(...)</dt><dd><tt>D.<a href="#Map-get">get</a>(k[,d]) -> D[k] if k in D, else d. d defaults to None.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-has_key"><strong>has_key</strong></a>(...)</dt><dd><tt>D.<a href="#Map-has_key">has_key</a>(k) -> True if D has a key k, else False</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-items"><strong>items</strong></a>(...)</dt><dd><tt>D.<a href="#Map-items">items</a>() -> list of D's (key, value) pairs, as 2-tuples</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-iteritems"><strong>iteritems</strong></a>(...)</dt><dd><tt>D.<a href="#Map-iteritems">iteritems</a>() -> an iterator over the (key, value) items of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-iterkeys"><strong>iterkeys</strong></a>(...)</dt><dd><tt>D.<a href="#Map-iterkeys">iterkeys</a>() -> an iterator over the keys of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-itervalues"><strong>itervalues</strong></a>(...)</dt><dd><tt>D.<a href="#Map-itervalues">itervalues</a>() -> an iterator over the values of D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-keys"><strong>keys</strong></a>(...)</dt><dd><tt>D.<a href="#Map-keys">keys</a>() -> list of D's keys</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-pop"><strong>pop</strong></a>(...)</dt><dd><tt>D.<a href="#Map-pop">pop</a>(k[,d]) -> v, remove specified key and return the corresponding value<br>
|
|
If key is not found, d is returned if given, otherwise KeyError is raised</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-popitem"><strong>popitem</strong></a>(...)</dt><dd><tt>D.<a href="#Map-popitem">popitem</a>() -> (k, v), remove and return some (key, value) pair as a<br>
|
|
2-tuple; but raise KeyError if D is empty</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-setdefault"><strong>setdefault</strong></a>(...)</dt><dd><tt>D.<a href="#Map-setdefault">setdefault</a>(k[,d]) -> D.<a href="#Map-get">get</a>(k,d), also set D[k]=d if k not in D</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-update"><strong>update</strong></a>(...)</dt><dd><tt>D.<a href="#Map-update">update</a>(E, **F) -> None. Update D from E and F: for k in E: D[k] = E[k]<br>
|
|
(if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Map-values"><strong>values</strong></a>(...)</dt><dd><tt>D.<a href="#Map-values">values</a>() -> list of D's values</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br>
|
|
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0x814b1e0><dd><tt>T.<a href="#Map-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl>
|
|
|
|
<dl><dt><strong>fromkeys</strong> = <built-in method fromkeys of type object at 0x8770ccc><dd><tt><a href="__builtin__.html#dict">dict</a>.<a href="#Map-fromkeys">fromkeys</a>(S[,v]) -> New <a href="__builtin__.html#dict">dict</a> with keys from S and values equal to v.<br>
|
|
v defaults to None.</tt></dl>
|
|
|
|
</td></tr></table></td></tr></table>
|
|
</body></html> |