PetscObjectComposedDataSetInt#
attach integer data to a PetscObject that may be accessed with PetscObjectComposedDataGetInt()
Synopsis#
#include "petsc/private/petscimpl.h"
PetscErrorCode PetscObjectComposedDataSetInt(PetscObject obj,int id,int data)
Not collective
Input parameters#
obj - the object to which data is to be attached
id - the identifier for the data
data - the data to be attached
Notes#
The data identifier can be created through a call to PetscObjectComposedDataRegister()
This allows the efficient composition of a single integer value with a PetscObject. Complex data may be
attached with PetscObjectCompose()
See Also#
PetscObjectComposedDataGetInt(), PetscObjectComposedDataGetReal(), PetscObjectComposedDataSetReal(),
PetscObjectComposedDataGetIntstar(), PetscObjectComposedDataSetIntstar(), PetscObject,
PetscObjectCompose(), PetscObjectQuery()
Level#
developer
Location#
include/petsc/private/petscimpl.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages