Differences From Artifact [8625e9c54a]:
- File src/OFNumber.h — part of check-in [a06354b42a] at 2017-10-22 15:05:39 on branch trunk — Make Apple GCC with -Wshadow happy (user: js, size: 21303) [annotate] [blame] [check-ins using]
To Artifact [0a882a919b]:
- File
src/OFNumber.h
— part of check-in
[f3ccf14461]
at
2017-10-29 21:58:14
on branch trunk
— Convert methods to properties where appropriate
This improves Swift compatibility. (user: js, size: 20508) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
152 153 154 155 156 157 158 159 160 161 162 163 164 165 | } /*! * The type of the number. */ @property (readonly, nonatomic) of_number_type_t type; /*! * @brief Creates a new OFNumber with the specified bool. * * @param bool_ A bool which the OFNumber should contain * @return A new autoreleased OFNumber */ + (instancetype)numberWithBool: (bool)bool_; | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | } /*! * The type of the number. */ @property (readonly, nonatomic) of_number_type_t type; /*! * Returns the OFNumber as a bool. */ @property (readonly, nonatomic) bool boolValue; /*! * The OFNumber as a signed char. */ @property (readonly, nonatomic) signed char charValue; /*! * The OFNumber as a signed short. */ @property (readonly, nonatomic) signed short shortValue; /*! * The OFNumber as a signed int. */ @property (readonly, nonatomic) signed int intValue; /*! * The OFNumber as a signed long. */ @property (readonly, nonatomic) signed long longValue; /*! * The OFNumber as a signed long long. */ @property (readonly, nonatomic) signed long long longLongValue; /*! * The OFNumber as an unsigned char. */ @property (readonly, nonatomic) unsigned char unsignedCharValue; /*! * The OFNumber as an unsigned short. */ @property (readonly, nonatomic) unsigned short unsignedShortValue; /*! * The OFNumber as an unsigned int. */ @property (readonly, nonatomic) unsigned int unsignedIntValue; /*! * The OFNumber as an unsigned long. */ @property (readonly, nonatomic) unsigned long unsignedLongValue; /*! * The OFNumber as an unsigned long long. */ @property (readonly, nonatomic) unsigned long long unsignedLongLongValue; /*! * The OFNumber as an int8_t. */ @property (readonly, nonatomic) int8_t int8Value; /*! * The OFNumber as an int16_t. */ @property (readonly, nonatomic) int16_t int16Value; /*! * The OFNumber as an int32_t. */ @property (readonly, nonatomic) int32_t int32Value; /*! * The OFNumber as an int64_t. */ @property (readonly, nonatomic) int64_t int64Value; /*! * The OFNumber as a uint8_t. */ @property (readonly, nonatomic) uint8_t uInt8Value; /*! * The OFNumber as a uint16_t. */ @property (readonly, nonatomic) uint16_t uInt16Value; /*! * The OFNumber as a uint32_t. */ @property (readonly, nonatomic) uint32_t uInt32Value; /*! * The OFNumber as a uint64_t. */ @property (readonly, nonatomic) uint64_t uInt64Value; /*! * The OFNumber as a size_t. */ @property (readonly, nonatomic) size_t sizeValue; /*! * The OFNumber as an ssize_t. */ @property (readonly, nonatomic) ssize_t sSizeValue; /*! * The OFNumber as an intmax_t. */ @property (readonly, nonatomic) intmax_t intMaxValue; /*! * The OFNumber as a uintmax_t. */ @property (readonly, nonatomic) uintmax_t uIntMaxValue; /*! * The OFNumber as a ptrdiff_t. */ @property (readonly, nonatomic) ptrdiff_t ptrDiffValue; /*! * The OFNumber as an intptr_t. */ @property (readonly, nonatomic) intptr_t intPtrValue; /*! * The OFNumber as a uintptr_t. */ @property (readonly, nonatomic) uintptr_t uIntPtrValue; /*! * The OFNumber as a float. */ @property (readonly, nonatomic) float floatValue; /*! * The OFNumber as a double. */ @property (readonly, nonatomic) double doubleValue; /*! * @brief Creates a new OFNumber with the specified bool. * * @param bool_ A bool which the OFNumber should contain * @return A new autoreleased OFNumber */ + (instancetype)numberWithBool: (bool)bool_; |
︙ | ︙ | |||
614 615 616 617 618 619 620 | /*! * @brief Initializes an already allocated OFNumber with the specified double. * * @param double_ A double which the OFNumber should contain * @return An initialized OFNumber */ - (instancetype)initWithDouble: (double)double_; | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 | /*! * @brief Initializes an already allocated OFNumber with the specified double. * * @param double_ A double which the OFNumber should contain * @return An initialized OFNumber */ - (instancetype)initWithDouble: (double)double_; @end OF_ASSUME_NONNULL_END #if !defined(NSINTEGER_DEFINED) && !__has_feature(modules) /* Required for number literals to work */ @compatibility_alias NSNumber OFNumber; #endif |