PPL Logo

patchReader Class Reference

Collaboration diagram for patchReader:

Collaboration graph
[legend]

Public Member Functions

 patchReader (const char *fileName)
 ~patchReader ()
int nextLine (void)
int nextInt (void)
double nextDouble (void)
blockDim nextDim (void)
blockSpan nextSpan (void)

Private Member Functions

void abort (const char *why)

Private Attributes

const char * fName
FILE * f
int lineCount
char line [1024]
int curChar

Detailed Description

Definition at line 20 of file patch.C.


Constructor & Destructor Documentation

patchReader::patchReader ( const char *  fileName  )  [inline]

Definition at line 33 of file patch.C.

References CkExit(), f, fName, lineCount, and nextLine().

Here is the call graph for this function:

patchReader::~patchReader (  )  [inline]

Definition at line 42 of file patch.C.

References f.


Member Function Documentation

void patchReader::abort ( const char *  why  )  [inline, private]

Definition at line 27 of file patch.C.

References CkExit(), fName, and lineCount.

Referenced by nextDouble(), and nextInt().

Here is the call graph for this function:

Here is the caller graph for this function:

int patchReader::nextLine ( void   )  [inline]

Definition at line 45 of file patch.C.

References curChar, f, line, and lineCount.

Referenced by block::block(), and patchReader().

Here is the caller graph for this function:

int patchReader::nextInt ( void   )  [inline]

Definition at line 58 of file patch.C.

References abort(), curChar, line, and offset.

Referenced by block::block(), nextDim(), and nextSpan().

Here is the call graph for this function:

Here is the caller graph for this function:

double patchReader::nextDouble ( void   )  [inline]

Definition at line 66 of file patch.C.

References abort(), curChar, line, and offset.

Referenced by block::block().

Here is the call graph for this function:

Here is the caller graph for this function:

blockDim patchReader::nextDim ( void   )  [inline]

Definition at line 75 of file patch.C.

References nextInt().

Referenced by block::block().

Here is the call graph for this function:

Here is the caller graph for this function:

blockSpan patchReader::nextSpan ( void   )  [inline]

Definition at line 82 of file patch.C.

References blockSpan::end, nextInt(), and blockSpan::start.

Referenced by block::block().

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

const char* patchReader::fName [private]

Definition at line 21 of file patch.C.

Referenced by abort(), and patchReader().

FILE* patchReader::f [private]

Definition at line 22 of file patch.C.

Referenced by nextLine(), patchReader(), and ~patchReader().

Definition at line 23 of file patch.C.

Referenced by abort(), nextLine(), and patchReader().

char patchReader::line[1024] [private]

Definition at line 24 of file patch.C.

Referenced by nextDouble(), nextInt(), and nextLine().

Definition at line 25 of file patch.C.

Referenced by nextDouble(), nextInt(), and nextLine().


The documentation for this class was generated from the following file:

Generated on Mon Sep 21 08:28:31 2020 for Charm++ by  doxygen 1.5.5