Searched refs:object (Results 1 - 25 of 228) sorted by relevance

12345678910

/haiku/headers/os/support/
H A DClassInfo.h15 #define class_name(object) \
16 ((typeid(*(object))).name())
17 #define cast_as(object, class) \
18 (dynamic_cast<class*>(object))
19 #define is_kind_of(object, class) \
20 (dynamic_cast<class*>(object) != NULL)
21 #define is_instance_of(object, class) \
22 (typeid(*(object)) == typeid(class))
/haiku/headers/private/kernel/util/
H A DConstructor.h14 /*! Constructs the object pointed to by \a object via a
18 void Construct(Pointer object) { argument
19 if (object)
20 new(reinterpret_cast<void*>(object)) DataType();
23 /*! Constructs the object pointed to by \a object via a
28 void Construct(Pointer object, ArgType1 arg1) { argument
29 if (object)
30 new(reinterpret_cast<void*>(object)) DataTyp
38 Construct(Pointer object, ArgType1 arg1, ArgType2 arg2) argument
48 Construct(Pointer object, ArgType1 arg1, ArgType2 arg2, ArgType3 arg3) argument
59 Construct(Pointer object, ArgType1 arg1, ArgType2 arg2, ArgType3 arg3, ArgType4 arg4) argument
68 Destruct(Pointer object) argument
[all...]
H A DMallocFreeAllocator.h16 /*! malloc()'s an object of type \c DataType and returns a
23 /*! free()'s the given object.
25 void Deallocate(Pointer object) { argument
26 free(object);
/haiku/headers/private/kernel/
H A Ddebug_paranoia.h37 status_t create_paranoia_check_set(const void* object,
39 status_t delete_paranoia_check_set(const void* object);
40 status_t run_paranoia_checks(const void* object);
42 status_t set_paranoia_check(const void* object, const void* address,
44 status_t remove_paranoia_check(const void* object, const void* address,
65 #define CREATE_PARANOIA_CHECK_SET(object, description) \
66 PARANOIA_ONLY(create_paranoia_check_set((object), (description)))
67 #define DELETE_PARANOIA_CHECK_SET(object) \
68 PARANOIA_ONLY(delete_paranoia_check_set((object)))
69 #define RUN_PARANOIA_CHECKS(object) \
93 ParanoiaChecker(const void* object) argument
[all...]
H A Ddebug_heap.h45 destroy(Type* object) argument
47 if (object != NULL) {
48 object->~Type();
49 debug_free(object);
/haiku/src/apps/icon-o-matic/generic/selection/
H A DSelection.cpp30 Selection::Select(Selectable* object, bool extend) argument
35 _DeselectAllExcept(object);
39 if (!object->IsSelected()) {
42 if (fSelected.HasItem((void*)object))
44 "unselected object in list!");
47 if (fSelected.AddItem((void*)object)) {
48 object->_SetSelected(true);
58 if (!fSelected.HasItem((void*)object))
60 "already selected object not in list!");
64 // object alread
72 Deselect(Selectable* object) argument
125 Selectable* object = (Selectable*)fSelected.ItemAtFast(i); local
[all...]
H A DSelection.h24 bool Select(Selectable* object,
26 void Deselect(Selectable* object);
35 void _DeselectAllExcept(Selectable* object);
/haiku/src/tests/add-ons/print/ppd/shared/
H A DAutoDelete.h22 // AutoDelete automatically deletes the AClass object.
28 // Use Release() to prevent deletion of AClass object.
39 // Deletes the object if it owns it
49 // Sets the object the class owns
50 AutoDelete(Tp* object = NULL) : fObject(object), fOwnsObject(true) { }
52 // Deletes the object if it owns it
58 // Sets the object the class owns.
59 // Deletes a previously owned object and
60 // sets the owning flag for the new object
61 Set(Tp* object) argument
[all...]
/haiku/src/system/kernel/events/
H A Dselect_ops.h10 status_t (*select)(int32 object, struct select_info* info, bool kernel);
11 status_t (*deselect)(int32 object, struct select_info* info, bool kernel);
42 select_object(uint32 type, int32 object, struct select_info* sync, bool kernel) argument
46 return kSelectOps[type].select(object, sync, kernel);
51 deselect_object(uint32 type, int32 object, struct select_info* sync, bool kernel) argument
55 return kSelectOps[type].deselect(object, sync, kernel);
/haiku/src/system/boot/platform/riscv/
H A Dfixed_font.S8 .type gFixedFont, @object
/haiku/headers/private/system/
H A Devent_queue_defs.h19 int32 object; member in struct:event_wait_info
/haiku/headers/private/fs_shell/
H A Dfssh_auto_deleter.h9 ObjectDeleter - deletes an object
29 inline AutoDeleter(C *object) argument
30 : fObject(object)
39 inline void SetTo(C *object) argument
41 if (object != fObject) {
43 fObject = object;
64 C *object = fObject; local
66 return object;
80 inline void operator()(C *object) argument
82 delete object;
90 ObjectDeleter(C *object) argument
136 operator ()(Type *object) argument
155 CObjectDeleter(Type *object) argument
166 operator ()(Type *object) argument
196 MethodDeleter(Type *object, Destructor destructor) argument
[all...]
/haiku/src/apps/mediaplayer/support/
H A DListenerAdapter.cpp26 ListenerAdapter::ObjectChanged(const Notifier* object) argument
29 message.AddPointer("object", object);
H A DListener.h20 virtual void ObjectChanged(const Notifier* object) = 0;
H A DListenerAdapter.h23 virtual void ObjectChanged(const Notifier* object);
/haiku/headers/private/shared/
H A DAutoDeleter.h10 ObjectDeleter - deletes an object
14 MethodObjectDeleter - calls an arbitrary object function in given struct ptr
44 inline AutoDeleter(C *object) argument
45 : fObject(object)
55 inline void SetTo(C *object) argument
57 if (object == fObject && object != NULL)
60 if (object != fObject) {
63 fObject = object;
89 C *object local
113 operator ()(C *object) argument
123 ObjectDeleter(C *object) argument
174 operator ()(Type *object) argument
193 CObjectDeleter(Type *object) argument
205 operator ()(Type *object) argument
225 MethodDeleter(Type *object) argument
236 operator ()(Type *object) argument
252 MethodObjectDeleter(Type *object) argument
[all...]
/haiku/src/libs/icon/shape/
H A DPathSourceShape.cpp102 PropertyObject* object = Shape::MakePropertyObject(); local
103 if (object == NULL)
106 // object->AddProperty(new BoolProperty(PROPERTY_HINTING, fHinting));
108 object->AddProperty(new FloatProperty(PROPERTY_MIN_VISIBILITY_SCALE,
111 object->AddProperty(new FloatProperty(PROPERTY_MAX_VISIBILITY_SCALE,
114 return object;
119 PathSourceShape::SetToPropertyObject(const PropertyObject* object) argument
122 Shape::SetToPropertyObject(object);
125 // SetHinting(object->Value(PROPERTY_HINTING, fHinting));
128 SetMinVisibilityScale(object
[all...]
/haiku/src/apps/icon-o-matic/gui/
H A DIconObjectListView.h31 virtual void PasteProperties(const PropertyObject* object);
35 virtual void ObjectChanged(const Observable* object);
44 void _SetObject(IconObject* object);
/haiku/src/kits/debugger/util/
H A DArchivingUtils.cpp13 ArchivingUtils::ArchiveChild(BArchivable* object, BMessage& parentArchive, argument
16 if (object == NULL)
20 status_t error = object->Archive(&archive, true);
/haiku/src/add-ons/kernel/bus_managers/usb/
H A Dusb.cpp79 Object *object = gUSBStack->GetObjectNoLock((usb_id)id); local
80 if (!object || (object->Type() & USB_OBJECT_PIPE) == 0)
83 set_debug_variable("_usbPipe", (uint64)object);
203 ObjectBusyReleaser(Object* object) : fObject(object) {} argument
269 ObjectBusyReleaser object(gUSBStack->GetObject(dev));
270 if (!object.IsSet() || (object->Type() & USB_OBJECT_DEVICE) == 0)
272 Device *device = (Device *)object
750 set_feature_v2(const void *object, uint16 selector) argument
757 clear_feature_v2(const void *object, uint16 selector) argument
764 get_status_v2(const void *object, uint16 *status) argument
[all...]
/haiku/headers/private/kernel/slab/
H A DObjectDepot.h29 void* object, uint32 flags);
39 void (*returnObject)(object_depot* depot, void* cookie, void* object,
44 void object_depot_store(object_depot* depot, void* object, uint32 flags);
49 bool object_depot_contains_object(object_depot* depot, void* object);
/haiku/src/apps/icon-o-matic/generic/listener/
H A DObserver.h21 virtual void ObjectChanged(const Observable* object) = 0;
/haiku/src/tests/system/kernel/
H A Dwait_for_objects_test.cpp113 int32 object = infos[i].object; local
119 status_t error = acquire_sem_etc(object, 1,
121 printf("acquire_sem(%ld): %s\n", object, strerror(error));
126 ssize_t bytesRead = read_port_etc(object, &code,
128 printf("read_port(%ld): %ld\n", object, bytesRead);
131 status_t error = write_port_etc(object, 0xc0de, buffer, 10,
133 printf("write_port(%ld): %s\n", object, strerror(error));
137 ssize_t bytesRead = read(object, buffer, sizeof(buffer));
138 printf("read(%ld): %ld\n", object, bytesRea
[all...]
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dslab.cpp72 void* object = cache != NULL ? malloc(cache->objectSize) : NULL; local
73 if (object == NULL)
77 cache->objectConstructor(cache->cookie, object);
79 return object;
84 object_cache_free(object_cache *cache, void *object, uint32 flags) argument
86 if (object != NULL) {
88 cache->objectDestructor(cache->cookie, object);
90 free(object);
/haiku/src/libs/icon/transformer/
H A DAffineTransformer.cpp126 PropertyObject* object = Transformer::MakePropertyObject(); local
127 if (!object)
134 object->AddProperty(new FloatProperty(PROPERTY_TRANSLATION_X, tx));
135 object->AddProperty(new FloatProperty(PROPERTY_TRANSLATION_Y, ty));
138 object->AddProperty(new FloatProperty(PROPERTY_ROTATION,
145 object->AddProperty(new FloatProperty(PROPERTY_SCALE_X, scaleX));
146 object->AddProperty(new FloatProperty(PROPERTY_SCALE_Y, scaleY));
148 return object;
153 AffineTransformer::SetToPropertyObject(const PropertyObject* object) argument
156 Transformer::SetToPropertyObject(object);
[all...]

Completed in 190 milliseconds

12345678910