![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/doc/gnustep-base-doc/Base/Reference/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>NSMapTable class reference</title> </head> <body> <font face="serif"> <a href="Base.html">Up</a> <br /> <h1><a name="title$NSMapTable">NSMapTable class reference</a></h1> <h3>Authors</h3> <dl> <dt>Richard Frith-Macdonald (<a href="mailto:rfm@gnu.org"><code>rfm@gnu.org</code></a>)</dt> <dd> </dd> </dl> <p><b>Copyright:</b> (C) 2009 Free Software Foundation, Inc.</p> <div> </div> <h1><a name="001000000000"> Software documentation for the NSMapTable class </a></h1> <h2><a name="class$NSMapTable">NSMapTable</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSMapTable.h</dd> </dl> </blockquote> <blockquote> <dl> <dt><b>Conforms to:</b></dt> <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCopying)">NSCopying</a></dd> <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCoding)">NSCoding</a></dd> <dd><a rel="gsdoc" href="NSEnumerator.html#protocol$(NSFastEnumeration)">NSFastEnumeration</a></dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+mapTableWithKeyOptions$valueOptions$">+mapTableWithKeyOptions:valueOptions:</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+mapTableWithStrongToStrongObjects">+mapTableWithStrongToStrongObjects</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+mapTableWithStrongToWeakObjects">+mapTableWithStrongToWeakObjects</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+mapTableWithWeakToStrongObjects">+mapTableWithWeakToStrongObjects</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+mapTableWithWeakToWeakObjects">+mapTableWithWeakToWeakObjects</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+strongToStrongObjectsMapTable">+strongToStrongObjectsMapTable</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+strongToWeakObjectsMapTable">+strongToWeakObjectsMapTable</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+weakToStrongObjectsMapTable">+weakToStrongObjectsMapTable</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable+weakToWeakObjectsMapTable">+weakToWeakObjectsMapTable</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-count">-count</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-dictionaryRepresentation">-dictionaryRepresentation</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-initWithKeyOptions$valueOptions$capacity$">-initWithKeyOptions:valueOptions:capacity:</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-initWithKeyPointerFunctions$valuePointerFunctions$capacity$">-initWithKeyPointerFunctions:valuePointerFunctions:capacity:</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-keyEnumerator">-keyEnumerator</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-keyPointerFunctions">-keyPointerFunctions</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-objectEnumerator">-objectEnumerator</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-objectForKey$">-objectForKey:</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-removeAllObjects">-removeAllObjects</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-removeObjectForKey$">-removeObjectForKey:</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-setObject$forKey$">-setObject:forKey:</a></li> <li><a rel="gsdoc" href="NSMapTable.html#method$NSMapTable-valuePointerFunctions">-valuePointerFunctions</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSMapTable+mapTableWithKeyOptions$valueOptions$">mapTableWithKeyOptions: valueOptions: </a></h3> + (id) <b>mapTableWithKeyOptions:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSPointerFunctionsOptions">NSPointerFunctionsOptions</a>)keyOptions<b> valueOptions:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSPointerFunctionsOptions">NSPointerFunctionsOptions</a>)valueOptions;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Return a map table initialised using the specified options for keys and values. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable+mapTableWithStrongToStrongObjects">mapTableWithStrongToStrongObjects </a></h3> + (id) <b>mapTableWithStrongToStrongObjects</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Convenience method for creating a map table to store object values using object keys. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable+mapTableWithStrongToWeakObjects">mapTableWithStrongToWeakObjects </a></h3> + (id) <b>mapTableWithStrongToWeakObjects</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Convenience method for creating a map table to store non-retained object values with retained object keys. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable+mapTableWithWeakToStrongObjects">mapTableWithWeakToStrongObjects </a></h3> + (id) <b>mapTableWithWeakToStrongObjects</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Convenience method for creating a map table to store retained object values with non-retained object keys. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable+mapTableWithWeakToWeakObjects">mapTableWithWeakToWeakObjects </a></h3> + (id) <b>mapTableWithWeakToWeakObjects</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Convenience method for creating a map table to store non-retained object values with non-retained object keys. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable+strongToStrongObjectsMapTable">strongToStrongObjectsMapTable </a></h3> + (id) <b>strongToStrongObjectsMapTable</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Convenience method for creating a map table to store object values using object keys. The collection will retain both the key and the value. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable+strongToWeakObjectsMapTable">strongToWeakObjectsMapTable </a></h3> + (id) <b>strongToWeakObjectsMapTable</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Convenience method for creating a map table to store object values using object keys. The collection will retain the key, the value will be a zeroing weak reference. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable+weakToStrongObjectsMapTable">weakToStrongObjectsMapTable </a></h3> + (id) <b>weakToStrongObjectsMapTable</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Convenience method for creating a map table to store object values using object keys. The collection will retain the value, the key will be a zeroing weak reference. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable+weakToWeakObjectsMapTable">weakToWeakObjectsMapTable </a></h3> + (id) <b>weakToWeakObjectsMapTable</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Convenience method for creating a map table to store object values using object keys. The collection will use zeroing weak references for both the key and the value. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-count">count </a></h3> - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>count</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Return the number of items stored in the map. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-dictionaryRepresentation">dictionaryRepresentation </a></h3> - (<a rel="gsdoc" href="NSDictionary.html#class$NSDictionary">NSDictionary</a>*) <b>dictionaryRepresentation</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Return a dictionary containing the keys and values in the receiver. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-initWithKeyOptions$valueOptions$capacity$">initWithKeyOptions: valueOptions: capacity: </a></h3> - (id) <b>initWithKeyOptions:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSPointerFunctionsOptions">NSPointerFunctionsOptions</a>)keyOptions<b> valueOptions:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSPointerFunctionsOptions">NSPointerFunctionsOptions</a>)valueOptions<b> capacity:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)initialCapacity;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Initialiser using option bitmasks to describe the keys and values. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-initWithKeyPointerFunctions$valuePointerFunctions$capacity$">initWithKeyPointerFunctions: valuePointerFunctions: capacity: </a></h3> - (id) <b>initWithKeyPointerFunctions:</b> (<a rel="gsdoc" href="NSPointerFunctions.html#class$NSPointerFunctions">NSPointerFunctions</a>*)keyFunctions<b> valuePointerFunctions:</b> (<a rel="gsdoc" href="NSPointerFunctions.html#class$NSPointerFunctions">NSPointerFunctions</a>*)valueFunctions<b> capacity:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)initialCapacity;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Initialiser using full pointer function information to describe the keys and values. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-keyEnumerator">keyEnumerator </a></h3> - (<a rel="gsdoc" href="NSEnumerator.html#class$NSEnumerator">NSEnumerator</a>*) <b>keyEnumerator</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Return an enumerator able to enumerate the keys in the receiver. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-keyPointerFunctions">keyPointerFunctions </a></h3> - (<a rel="gsdoc" href="NSPointerFunctions.html#class$NSPointerFunctions">NSPointerFunctions</a>*) <b>keyPointerFunctions</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Return an NSPointerFunctions value describind the functions used by the receiver to handle keys. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-objectEnumerator">objectEnumerator </a></h3> - (<a rel="gsdoc" href="NSEnumerator.html#class$NSEnumerator">NSEnumerator</a>*) <b>objectEnumerator</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Return an enumerator able to enumerate the values in the receiver. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-objectForKey$">objectForKey: </a></h3> - (id) <b>objectForKey:</b> (id)aKey;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Return the object stored under the specified key. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-removeAllObjects">removeAllObjects </a></h3> - (void) <b>removeAllObjects</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Empty the receiver of all stored values. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-removeObjectForKey$">removeObjectForKey: </a></h3> - (void) <b>removeObjectForKey:</b> (id)aKey;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Remove the object stored under the specified key. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-setObject$forKey$">setObject: forKey: </a></h3> - (void) <b>setObject:</b> (id)anObject<b> forKey:</b> (id)aKey;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Store the object under the specified key, replacing any object which was previously stored under that key. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMapTable-valuePointerFunctions">valuePointerFunctions </a></h3> - (<a rel="gsdoc" href="NSPointerFunctions.html#class$NSPointerFunctions">NSPointerFunctions</a>*) <b>valuePointerFunctions</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Return an NSPointerFunctions value describind the functions used by the receiver to handle values. </div> <hr width="25%" align="left" /> </div> <br /> <a href="Base.html">Up</a> </font> </body> </html>