Lines Matching defs:OSObject
28 /* OSObject.cpp created by gvdl on Fri 1998-11-17 */
30 #include <libkern/c++/OSObject.h>
53 // OSDefineMetaClassAndAbstractStructors(OSObject, 0);
55 OSObject::MetaClass OSObject::gMetaClass;
56 const OSMetaClass * const OSObject::metaClass = &OSObject::gMetaClass;
57 const OSMetaClass * const OSObject::superClass = 0;
60 OSObject::OSObject() { retainCount = 1; }
61 OSObject::OSObject(const OSMetaClass *) { retainCount = 1; }
62 OSObject::~OSObject() { }
63 const OSMetaClass * OSObject::getMetaClass() const
65 OSObject *OSObject::MetaClass::alloc() const { return 0; }
67 /* The OSObject::MetaClass constructor */
68 OSObject::MetaClass::MetaClass()
69 : OSMetaClass("OSObject", OSObject::superClass, sizeof(OSObject))
73 OSMetaClassDefineReservedUnused(OSObject, 0);
74 OSMetaClassDefineReservedUnused(OSObject, 1);
75 OSMetaClassDefineReservedUnused(OSObject, 2);
76 OSMetaClassDefineReservedUnused(OSObject, 3);
77 OSMetaClassDefineReservedUnused(OSObject, 4);
78 OSMetaClassDefineReservedUnused(OSObject, 5);
79 OSMetaClassDefineReservedUnused(OSObject, 6);
80 OSMetaClassDefineReservedUnused(OSObject, 7);
81 OSMetaClassDefineReservedUnused(OSObject, 8);
82 OSMetaClassDefineReservedUnused(OSObject, 9);
83 OSMetaClassDefineReservedUnused(OSObject, 10);
84 OSMetaClassDefineReservedUnused(OSObject, 11);
85 OSMetaClassDefineReservedUnused(OSObject, 12);
86 OSMetaClassDefineReservedUnused(OSObject, 13);
87 OSMetaClassDefineReservedUnused(OSObject, 14);
88 OSMetaClassDefineReservedUnused(OSObject, 15);
91 OSMetaClassDefineReservedUnused(OSObject, 16);
92 OSMetaClassDefineReservedUnused(OSObject, 17);
93 OSMetaClassDefineReservedUnused(OSObject, 18);
94 OSMetaClassDefineReservedUnused(OSObject, 19);
95 OSMetaClassDefineReservedUnused(OSObject, 20);
96 OSMetaClassDefineReservedUnused(OSObject, 21);
97 OSMetaClassDefineReservedUnused(OSObject, 22);
98 OSMetaClassDefineReservedUnused(OSObject, 23);
99 OSMetaClassDefineReservedUnused(OSObject, 24);
100 OSMetaClassDefineReservedUnused(OSObject, 25);
101 OSMetaClassDefineReservedUnused(OSObject, 26);
102 OSMetaClassDefineReservedUnused(OSObject, 27);
103 OSMetaClassDefineReservedUnused(OSObject, 28);
104 OSMetaClassDefineReservedUnused(OSObject, 29);
105 OSMetaClassDefineReservedUnused(OSObject, 30);
106 OSMetaClassDefineReservedUnused(OSObject, 31);
109 static const char *getClassName(const OSObject *obj)
115 bool OSObject::init()
124 void OSObject::free()
134 int OSObject::getRetainCount() const
139 void OSObject::taggedRetain(const void *tag) const
174 panic("OSObject::refcount: %s", msg);
181 void OSObject::taggedRelease(const void *tag) const
186 void OSObject::taggedRelease(const void *tag, const int when) const
218 panic("OSObject::refcount: %s",
245 ((OSObject *) this)->free();
248 void OSObject::release() const
253 void OSObject::retain() const
258 void OSObject::release(int when) const
263 bool OSObject::serialize(OSSerialize *s) const
296 array->setObject((OSObject *) (next + 1));
310 void *OSObject::operator new(size_t size)
339 void OSObject::operator delete(void *_mem, size_t size)