GNUstep CoreBase Library 0.2
|
Data Structures | |
struct | CFRuntimeClass |
struct | CFRuntimeBase |
struct | __CFRuntimeBase._flags |
Macros | |
#define | INIT_CFRUNTIME_BASE(...) |
#define | CF_HAS_INIT_STATIC_INSTANCE 1 |
Enumerations | |
enum | { _kCFRuntimeNotATypeID = 0 } |
enum | { _kCFRuntimeScannedObject = (1UL<<0) , _kCFRuntimeResourcefulObject = (1UL<<2) , _kCFRuntimeCustomRefCount = (1UL<<3) } |
Functions | |
CFTypeID | _CFRuntimeRegisterClass (const CFRuntimeClass *const cls) |
const CFRuntimeClass * | _CFRuntimeGetClassWithTypeID (CFTypeID typeID) |
void | _CFRuntimeUnregisterClassWithTypeID (CFTypeID typeID) |
CFTypeRef | _CFRuntimeCreateInstance (CFAllocatorRef allocator, CFTypeID typeID, CFIndex extraBytes, unsigned char *category) |
void | _CFRuntimeSetInstanceTypeID (CFTypeRef cf, CFTypeID typeID) |
void | _CFRuntimeInitStaticInstance (void *memory, CFTypeID typeID) |
Garbage Collection | |
Garbage Collection is not supported. All macros and functions relating to GC return false or NULL, but are provided for compatibility. | |
Boolean | kCFUseCollectableAllocator |
Boolean(* | __CFObjCIsCollectable )(void *) |
#define | CF_USING_COLLECTABLE_MEMORY (kCFUseCollectableAllocator) |
#define | CF_IS_COLLECTABLE_ALLOCATOR(allocator) |
#define | CF_IS_COLLECTABLE(obj) |
struct __CFRuntimeClass |
Data Fields | ||
---|---|---|
CFIndex | version | |
const char * | className | |
void(*)(CFTypeRef cf) | init | |
CFTypeRef(*)(CFAllocatorRef allocator, CFTypeRef cf) | copy | |
void(*)(CFTypeRef cf) | finalize | |
Boolean(*)(CFTypeRef cf1, CFTypeRef cf2) | equal | |
CFHashCode(*)(CFTypeRef cf) | hash | |
CFStringRef(*)(CFTypeRef cf, CFDictionaryRef formatOptions) | copyFormattingDesc | |
CFStringRef(*)(CFTypeRef cf) | copyDebugDesc | |
void(*)(CFTypeRef cf) | reclaim | |
UInt32(*)(intptr_t op, CFTypeRef cf) | refcount |
struct __CFRuntimeBase |
Data Fields | ||
---|---|---|
void * | _isa |
The Objective-C class for this object. Used for the Objective-C bridge. For internal use only. |
SInt16 | _typeID | |
struct __CFRuntimeBase._flags | _flags |
#define CF_IS_COLLECTABLE_ALLOCATOR | ( | allocator | ) |
#define CF_IS_COLLECTABLE | ( | obj | ) |
#define INIT_CFRUNTIME_BASE | ( | ... | ) |
CFTypeID _CFRuntimeRegisterClass | ( | const CFRuntimeClass *const | cls | ) |
Registers a new CF class with the runtime. This function locks the class table and so is thread-safe.
cls | A constant CFRuntimeClass. |
const CFRuntimeClass * _CFRuntimeGetClassWithTypeID | ( | CFTypeID | typeID | ) |
Gets the class structure associated with the typeID.
typeID | A CFTypeID to look up. |
void _CFRuntimeUnregisterClassWithTypeID | ( | CFTypeID | typeID | ) |
Unregisters a class.
typeID | The CFTypeID to unregister. |
CFTypeRef _CFRuntimeCreateInstance | ( | CFAllocatorRef | allocator, |
CFTypeID | typeID, | ||
CFIndex | extraBytes, | ||
unsigned char * | category ) |
Creates a new CF type instance.
allocator | The CFAllocatorRef to use or NULL for the default allocator. |
typeID | The CFTypeID of the class. |
extraBytes | The amount of extra bytes over a CFRuntimeBase type needed by this instance. |
category | Currently unused, use NULL. |
void _CFRuntimeSetInstanceTypeID | ( | CFTypeRef | cf, |
CFTypeID | typeID ) |
Set the CFTypeID for an instance.
cf | The object instance to set the type ID. |
typeID | The new CFTypeID. |
void _CFRuntimeInitStaticInstance | ( | void * | memory, |
CFTypeID | typeID ) |
Initializes a static CF object instance.
memory | A pointer to a static CF object instance. |
typeID | The CFTypeID of the instance. |