# PetscObjectComposedDataGetInt
retrieve integer data attached to an object with `PetscObjectComposedDataSetInt()` 
## Synopsis
```
#include "petsc/private/petscimpl.h"
PetscErrorCode PetscObjectComposedDataGetInt(PetscObject obj,int id,int data,PetscBool  flag)
```
Not collective


## Input parameters

- ***obj -*** the object from which data is to be retrieved
- ***id -*** the identifier for the data



## Output parameters

- ***data -*** the data to be retrieved
- ***flag -*** `PETSC_TRUE` if the data item exists and is valid, `PETSC_FALSE` otherwise





## Notes
The 'data' and 'flag' variables are inlined, so they are not pointers.

The length of the array accessed must be known.


## See Also
 `PetscObjectComposedDataSetInt()`, `PetscObjectComposedDataGetReal()`, `PetscObjectComposedDataSetReal()`,
`PetscObjectComposedDataGetIntstar()`, `PetscObjectComposedDataSetIntstar()`, `PetscObject`,
`PetscObjectCompose()`, `PetscObjectQuery()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petsc/private/petscimpl.h.html#PetscObjectComposedDataGetInt">include/petsc/private/petscimpl.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petsc/private/petscimpl.h)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
