@@ -27,11 +27,11 @@ } of_dictionary_list_object_t; /** * The OFDictionary class provides a class for using hash tables. */ -@interface OFDictionary: OFObject +@interface OFDictionary: OFObject { OFList **data; size_t size; } @@ -40,10 +40,18 @@ * * \return A new autoreleased OFDictionary */ + dictionary; +/** + * Creates a new OFDictionary with the specified dictionary. + * + * \param dict An OFDictionary + * \return A new autoreleased OFDictionary + */ ++ dictionaryWithDictionary: (OFDictionary*)dict; + /** * Creates a new OFDictionary with a hash of N bits. * * \param bits The size of the hash to use * \return A new autoreleased OFDictionary @@ -83,10 +91,19 @@ * * \return An initialized OFDictionary */ - init; +/** + * Initializes an already allocated OFDictionary with the specified + * OFDictionary. + * + * \param dict An OFDictionary + * \return An initialized OFDictionary + */ +- initWithDictionary: (OFDictionary*)dict; + /** * Initializes an already allocated OFDictionary with a hash of N bits. * * \param bits The size of the hash to use * \return An initialized OFDictionary