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
|
/*!
* @protocol OFObject OFObject.h ObjFW/OFObject.h
*
* @brief The protocol which all root classes implement.
*/
@protocol OFObject
/*!
* The class of the object.
*/
@property (readonly, nonatomic) Class class;
/*!
* The superclass of the object.
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) Class superclass;
/*!
* A 32 bit hash for the object.
*
* Classes containing data (like strings, arrays, lists etc.) should reimplement
* this!
*
* @warning If you reimplement this, you also need to reimplement @ref isEqual:
* to behave in a way compatible to your reimplementation of this
* method!
*/
@property (readonly, nonatomic) uint32_t hash;
/*!
* The retain count.
*/
@property (readonly, nonatomic) unsigned int retainCount;
/*!
* Whether the object is a proxy object.
*/
@property (readonly, nonatomic) bool isProxy;
/*!
* Whether the object allows weak references.
*/
@property (readonly, nonatomic) bool allowsWeakReference;
/*!
* @brief Returns a boolean whether the object of the specified kind.
*
* @param class_ The class whose kind is checked
|
|
|
|
|
|
|
|
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
|
/*!
* @protocol OFObject OFObject.h ObjFW/OFObject.h
*
* @brief The protocol which all root classes implement.
*/
@protocol OFObject
/*!
* @brief The class of the object.
*/
@property (readonly, nonatomic) Class class;
/*!
* @brief The superclass of the object.
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) Class superclass;
/*!
* @brief A 32 bit hash for the object.
*
* Classes containing data (like strings, arrays, lists etc.) should reimplement
* this!
*
* @warning If you reimplement this, you also need to reimplement @ref isEqual:
* to behave in a way compatible to your reimplementation of this
* method!
*/
@property (readonly, nonatomic) uint32_t hash;
/*!
* @brief The retain count.
*/
@property (readonly, nonatomic) unsigned int retainCount;
/*!
* @brief Whether the object is a proxy object.
*/
@property (readonly, nonatomic) bool isProxy;
/*!
* @brief Whether the object allows weak references.
*/
@property (readonly, nonatomic) bool allowsWeakReference;
/*!
* @brief Returns a boolean whether the object of the specified kind.
*
* @param class_ The class whose kind is checked
|
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
|
@property (class, readonly, nonatomic) Class class;
@property (class, readonly, nonatomic) OFString *className;
@property (class, readonly, nullable, nonatomic) Class superclass;
@property (class, readonly, nonatomic) OFString *description;
#endif
/*!
* The name of the object's class.
*/
@property (readonly, nonatomic) OFString *className;
/*!
* A description for the object.
*
* This is used when the object is used in a format string and for debugging
* purposes.
*/
@property (readonly, nonatomic) OFString *description;
/*!
|
|
|
|
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
|
@property (class, readonly, nonatomic) Class class;
@property (class, readonly, nonatomic) OFString *className;
@property (class, readonly, nullable, nonatomic) Class superclass;
@property (class, readonly, nonatomic) OFString *description;
#endif
/*!
* @brief The name of the object's class.
*/
@property (readonly, nonatomic) OFString *className;
/*!
* @brief A description for the object.
*
* This is used when the object is used in a format string and for debugging
* purposes.
*/
@property (readonly, nonatomic) OFString *description;
/*!
|