Gadget
readfunc.h
Go to the documentation of this file.
1 #ifndef readfunc_h
2 #define readfunc_h
3 
4 #include "doublematrix.h"
5 #include "areatime.h"
6 #include "charptrvector.h"
8 #include "commentstream.h"
9 
16 int countColumns(CommentStream& infile);
22 void readRefWeights(CommentStream& infile, DoubleMatrix& M);
23 void readAmounts(CommentStream& infile, const IntVector& tmpareas,
24  const TimeClass* const TimeInfo, const AreaClass* const Area,
25  FormulaMatrix& amount, const char* givenname);
26 void readGrowthAmounts(CommentStream& infile, const TimeClass* const TimeInfo,
27  const AreaClass* const Area, FormulaMatrixPtrVector& amount,
28  const CharPtrVector& lenindex, const IntVector& tmpareas);
29 
30 #endif
31 
32 
33 
This is the class used to store information about the areas used for the current model.
Definition: areatime.h:18
This class implements a dynamic vector of char values.
Definition: charptrvector.h:8
This is the class used to strip comments (and whitespace) from any input stream.
Definition: commentstream.h:40
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11
This class implements a dynamic vector of FormulaMatrix values.
Definition: formulamatrixptrvector.h:10
This class implements a dynamic vector of FormulaVector values.
Definition: formulamatrix.h:11
This class implements a dynamic vector of int values.
Definition: intvector.h:11
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87
int countColumns(CommentStream &infile)
This is the function that will count the number of columns of data in a file.
Definition: readfunc.cc:40
void readRefWeights(CommentStream &infile, DoubleMatrix &M)
This is the function that will read reference weight data from a file into a matrix.
Definition: readfunc.cc:6
void readAmounts(CommentStream &infile, const IntVector &tmpareas, const TimeClass *const TimeInfo, const AreaClass *const Area, FormulaMatrix &amount, const char *givenname)
Definition: readfunc.cc:93
void readGrowthAmounts(CommentStream &infile, const TimeClass *const TimeInfo, const AreaClass *const Area, FormulaMatrixPtrVector &amount, const CharPtrVector &lenindex, const IntVector &tmpareas)
Definition: readfunc.cc:162