Actual source code: viewerimpl.h

      2: #ifndef _VIEWERIMPL
      3: #define _VIEWERIMPL

     5:  #include petsc.h

      7: struct _PetscViewerOps {
      8:    PetscErrorCode (*destroy)(PetscViewer);
      9:    PetscErrorCode (*view)(PetscViewer,PetscViewer);
     10:    PetscErrorCode (*flush)(PetscViewer);
     11:    PetscErrorCode (*getsingleton)(PetscViewer,PetscViewer*);
     12:    PetscErrorCode (*restoresingleton)(PetscViewer,PetscViewer*);
     13:    PetscErrorCode (*setfromoptions)(PetscViewer);
     14: };

     16: /*
     17:    Defines the viewer data structure.
     18: */
     19: struct _p_PetscViewer {
     20:   PETSCHEADER(struct _PetscViewerOps);
     21:   PetscViewerFormat format,formats[10];
     22:   int               iformat;
     23:   void              *data;
     24: };

     28: #endif