Lines Matching defs:child
356 // add the child
357 BMutablePartition* child = delegate->MutablePartition();
358 if (!fChildren.AddItem(child, index)) {
362 child->fParent = this;
363 child->fData = new(nothrow) user_partition_data;
364 if (!child->fData) {
365 fChildren.RemoveItem(child);
370 memset(child->fData, 0, sizeof(user_partition_data));
372 child->fData->id = -1;
373 child->fData->status = B_PARTITION_UNINITIALIZED;
374 child->fData->volume = -1;
375 child->fData->index = -1;
376 child->fData->disk_system = -1;
378 *_child = child;
390 // create the child
391 BMutablePartition* child;
392 status_t error = CreateChild(index, &child);
397 error = child->SetType(type);
399 error = child->SetName(name);
401 error = child->SetParameters(parameters);
405 DeleteChild(child);
409 *_child = child;
420 BMutablePartition* child = (BMutablePartition*)fChildren.RemoveItem(index);
421 if (!child)
424 // This will delete not only all delegates in the child's hierarchy, but
427 child->fDelegate->Partition()->_DeleteDelegates();
436 BMutablePartition::DeleteChild(BMutablePartition* child)
438 return DeleteChild(IndexOfChild(child));
478 BMutablePartition::IndexOfChild(BMutablePartition* child) const
480 if (!child)
482 return fChildren.IndexOf(child);
548 // add to the parent's child list