@@ -59,11 +59,11 @@ * * @warning Do not mutate objects that are in a set! Changing the hash of * objects in a set breaks the internal representation of the set! */ #ifdef OF_HAVE_GENERICS -@interface OFSet : +@interface OFSet: #else # ifndef DOXYGEN # define ObjectType id # endif @interface OFSet: @@ -80,19 +80,19 @@ * @brief Creates a new set with the specified set. * * @param set The set to initialize the set with * @return A new, autoreleased set with the specified set */ -+ (instancetype)setWithSet: (OFSet OF_GENERIC(ObjectType)*)set; ++ (instancetype)setWithSet: (OFSet OF_GENERIC(ObjectType) *)set; /*! * @brief Creates a new set with the specified array. * * @param array The array to initialize the set with * @return A new, autoreleased set with the specified array */ -+ (instancetype)setWithArray: (OFArray OF_GENERIC(ObjectType)*)array; ++ (instancetype)setWithArray: (OFArray OF_GENERIC(ObjectType) *)array; /*! * @brief Creates a new set with the specified objects. * * @param firstObject The first object for the set @@ -114,19 +114,19 @@ * @brief Initializes an already allocated set with the specified set. * * @param set The set to initialize the set with * @return An initialized set with the specified set */ -- initWithSet: (OFSet OF_GENERIC(ObjectType)*)set; +- initWithSet: (OFSet OF_GENERIC(ObjectType) *)set; /*! * @brief Initializes an already allocated set with the specified array. * * @param array The array to initialize the set with * @return An initialized set with the specified array */ -- initWithArray: (OFArray OF_GENERIC(ObjectType)*)array; +- initWithArray: (OFArray OF_GENERIC(ObjectType) *)array; /*! * @brief Initializes an already allocated set with the specified objects. * * @param firstObject The first object for the set @@ -158,54 +158,54 @@ /*! * @brief Returns whether the receiver is a subset of the specified set. * * @return Whether the receiver is a subset of the specified set */ -- (bool)isSubsetOfSet: (OFSet OF_GENERIC(ObjectType)*)set; +- (bool)isSubsetOfSet: (OFSet OF_GENERIC(ObjectType) *)set; /*! * @brief Returns whether the receiver and the specified set have at least one * object in common. * * @return Whether the receiver and the specified set have at least one object * in common */ -- (bool)intersectsSet: (OFSet OF_GENERIC(ObjectType)*)set; +- (bool)intersectsSet: (OFSet OF_GENERIC(ObjectType) *)set; /*! * @brief Creates a new set which contains the objects which are in the * receiver, but not in the specified set. * * @param set The set whose objects will not be in the new set */ -- (OFSet OF_GENERIC(ObjectType)*)setBySubtractingSet: - (OFSet OF_GENERIC(ObjectType)*)set; +- (OFSet OF_GENERIC(ObjectType) *)setBySubtractingSet: + (OFSet OF_GENERIC(ObjectType) *)set; /*! * @brief Creates a new set by creating the intersection of the receiver and * the specified set. * * @param set The set to intersect with */ -- (OFSet OF_GENERIC(ObjectType)*)setByIntersectingWithSet: - (OFSet OF_GENERIC(ObjectType)*)set; +- (OFSet OF_GENERIC(ObjectType) *)setByIntersectingWithSet: + (OFSet OF_GENERIC(ObjectType) *)set; /*! * @brief Creates a new set by creating the union of the receiver and the * specified set. * * @param set The set to create the union with */ -- (OFSet OF_GENERIC(ObjectType)*)setByAddingSet: - (OFSet OF_GENERIC(ObjectType)*)set; +- (OFSet OF_GENERIC(ObjectType) *)setByAddingSet: + (OFSet OF_GENERIC(ObjectType) *)set; /*! * @brief Returns an array of all objects in the set. * * @return An array of all objects in the set */ -- (OFArray OF_GENERIC(ObjectType)*)allObjects; +- (OFArray OF_GENERIC(ObjectType) *)allObjects; /*! * @brief Returns an arbitrary object in the set. * * @return An arbitrary object in the set @@ -232,11 +232,11 @@ * @note Unlike with @ref OFArray, any nil values are removed! * * @param key The key of the value to return * @return The value for the specified key */ -- (nullable id)valueForKey: (OFString*)key; +- (nullable id)valueForKey: (OFString *)key; /*! * @brief Set the value for the specified key * * If the key starts with an `@`, the `@` is stripped and @@ -248,18 +248,18 @@ * * @param value The value for the specified key * @param key The key of the value to set */ - (void)setValue: (nullable id)value - forKey: (OFString*)key; + forKey: (OFString *)key; /*! * @brief Returns an OFEnumerator to enumerate through all objects of the set. * * @returns An OFEnumerator to enumerate through all objects of the set */ -- (OFEnumerator OF_GENERIC(ObjectType)*)objectEnumerator; +- (OFEnumerator OF_GENERIC(ObjectType) *)objectEnumerator; #ifdef OF_HAVE_BLOCKS /*! * @brief Executes a block for each object in the set. * @@ -272,11 +272,11 @@ * returns true. * * @param block A block which determines if the object should be in the new set * @return A new, autoreleased OFSet */ -- (OFSet OF_GENERIC(ObjectType)*)filteredSetUsingBlock: +- (OFSet OF_GENERIC(ObjectType) *)filteredSetUsingBlock: (of_set_filter_block_t)block; #endif @end #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # undef ObjectType