36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
* \brief A range.
*/
typedef struct __of_range {
size_t start;
size_t length;
} of_range_t;
/**
* \brief The root class for all other classes inside ObjFW.
*/
@interface OFObject
{
/// The class of the object
Class isa;
|
>
>
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
* \brief A range.
*/
typedef struct __of_range {
size_t start;
size_t length;
} of_range_t;
@class OFString;
/**
* \brief The root class for all other classes inside ObjFW.
*/
@interface OFObject
{
/// The class of the object
Class isa;
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
/**
* \param selector The selector for which the type encoding should be returned
* \return The type encoding of the instance method for the specified selector
*/
+ (const char*)typeEncodingForInstanceSelector: (SEL)selector;
/**
* Replaces a class method implementation with another implementation.
*
* \param newimp The new implementation for the class method
* \param selector The selector of the class method to replace
* \return The old implementation
*/
|
>
>
>
>
>
>
>
|
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
/**
* \param selector The selector for which the type encoding should be returned
* \return The type encoding of the instance method for the specified selector
*/
+ (const char*)typeEncodingForInstanceSelector: (SEL)selector;
/**
* Returns a description for the class, which is usually the class name.
*
* This is mostly for debugging purposes.
*/
+ (OFString*)description;
/**
* Replaces a class method implementation with another implementation.
*
* \param newimp The new implementation for the class method
* \param selector The selector of the class method to replace
* \return The old implementation
*/
|
239
240
241
242
243
244
245
246
247
248
249
250
251
252
|
* Classes containing data (like strings, arrays, lists etc.) should reimplement
* this!
*
* \return A 32 bit hash for the object
*/
- (uint32_t)hash;
/**
* Adds a pointer to the object's memory pool.
*
* This is useful to add memory allocated by functions such as asprintf to the
* pool so it gets free'd automatically when the object is deallocated.
*
* \param ptr A pointer to add to the memory pool
|
>
>
>
>
>
>
>
|
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
|
* Classes containing data (like strings, arrays, lists etc.) should reimplement
* this!
*
* \return A 32 bit hash for the object
*/
- (uint32_t)hash;
/**
* Returns a description for the object.
*
* This is mostly for debugging purposes.
*/
- (OFString*)description;
/**
* Adds a pointer to the object's memory pool.
*
* This is useful to add memory allocated by functions such as asprintf to the
* pool so it gets free'd automatically when the object is deallocated.
*
* \param ptr A pointer to add to the memory pool
|