@@ -86,10 +86,15 @@ /*! * The object functions used by the map table. */ @property (readonly, nonatomic) of_map_table_functions_t objectFunctions; +/*! + * The number of objects in the map table. + */ +@property (readonly, nonatomic) size_t count; + /*! * @brief Creates a new OFMapTable with the specified key and object functions. * * @param keyFunctions A structure of functions for handling keys * @param objectFunctions A structure of functions for handling objects @@ -140,17 +145,10 @@ - (instancetype)initWithKeyFunctions: (of_map_table_functions_t)keyFunctions objectFunctions: (of_map_table_functions_t)objectFunctions capacity: (size_t)capacity OF_DESIGNATED_INITIALIZER; -/*! - * @brief Returns the number of objects in the map table. - * - * @return The number of objects in the map table - */ -- (size_t)count; - /*! * @brief Returns the object for the given key or NULL if the key was not found. * * @param key The key whose object should be returned * @return The object for the given key or NULL if the key was not found