Lines Matching full:name
14 - name - the name to use for the object
19 …Use `PetscObjectListAdd`(`PetscObjectList`,const char name[],NULL) to truly remove the object from…
29 PetscErrorCode PetscObjectListRemoveReference(PetscObjectList *fl, const char name[]) in PetscObjectListRemoveReference() argument
36 PetscAssertPointer(name, 2); in PetscObjectListRemoveReference()
39 PetscCall(PetscStrcmp(name, nlist->name, &match)); in PetscObjectListRemoveReference()
57 . name - the name to use for the object
69 PetscErrorCode PetscObjectListAdd(PetscObjectList *fl, const char name[], PetscObject obj) in PetscObjectListAdd() argument
80 PetscCall(PetscStrcmp(name, nlist->name, &match)); in PetscObjectListAdd()
98 PetscCall(PetscStrcmp(name, nlist->name, &match)); in PetscObjectListAdd()
115 PetscCall(PetscStrncpy(olist->name, name, sizeof(olist->name))); in PetscObjectListAdd()
156 PetscObjectListFind - given a name, find the matching object in a list
162 - name - name string
170 The name must have been registered with the `PetscObjectListAdd()` before calling this routine.
176 PetscErrorCode PetscObjectListFind(PetscObjectList fl, const char name[], PetscObject *obj) in PetscObjectListFind() argument
183 PetscCall(PetscStrcmp(name, fl->name, &match)); in PetscObjectListFind()
194 PetscObjectListReverseFind - given a object, find the matching name if it exists
203 + name - name string
209 The name must have been registered with the `PetscObjectListAdd()` before calling this routine.
215 PetscErrorCode PetscObjectListReverseFind(PetscObjectList fl, PetscObject obj, const char *name[], … in PetscObjectListReverseFind() argument
218 PetscAssertPointer(name, 3); in PetscObjectListReverseFind()
220 *name = NULL; in PetscObjectListReverseFind()
223 *name = fl->name; in PetscObjectListReverseFind()
253 PetscCall(PetscObjectListAdd(nl, fl->name, fl->obj)); in PetscObjectListDuplicate()