Gadget
Functions
readaggregation.h File Reference
#include "commentstream.h"
#include "intmatrix.h"
#include "doublematrix.h"
#include "charptrmatrix.h"
#include "formulamatrix.h"
Include dependency graph for readaggregation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int readAggregation (CommentStream &infile, IntMatrix &agg, CharPtrVector &aggindex)
 This is the function that will read aggregation data from a file into a matrix. More...
 
int readAggregation (CommentStream &infile, IntVector &agg, CharPtrVector &aggindex)
 This is the function that will read aggregation data from a file into a vector. More...
 
int readLengthAggregation (CommentStream &infile, DoubleVector &lengths, CharPtrVector &lenindex)
 This is the function that will read length aggregation data from a file. More...
 
int readPreyAggregation (CommentStream &infile, CharPtrMatrix &preynames, DoubleMatrix &preylengths, FormulaMatrix &digestioncoeff, CharPtrVector &preyindex, Keeper *const keeper)
 This is the function that will read prey aggregation data from a file. More...
 

Function Documentation

◆ readAggregation() [1/2]

int readAggregation ( CommentStream infile,
IntMatrix agg,
CharPtrVector aggindex 
)

This is the function that will read aggregation data from a file into a matrix.

Parameters
infileis the CommentStream to read the aggregation data from
aggis the IntMatrix that the aggregated data will be stored in
aggindexis the CharPtrVector that the aggregated data labels will be stored in
Returns
number of aggregation entries read

◆ readAggregation() [2/2]

int readAggregation ( CommentStream infile,
IntVector agg,
CharPtrVector aggindex 
)

This is the function that will read aggregation data from a file into a vector.

Parameters
infileis the CommentStream to read the aggregation data from
aggis the IntVector that the aggregated data will be stored in
aggindexis the CharPtrVector that the aggregated data labels will be stored in
Returns
number of aggregation entries read

◆ readLengthAggregation()

int readLengthAggregation ( CommentStream infile,
DoubleVector lengths,
CharPtrVector lenindex 
)

This is the function that will read length aggregation data from a file.

Parameters
infileis the CommentStream to read the aggregation data from
lengthsis the DoubleVector that the aggregated length data will be stored in
lenindexis the CharPtrVector that the aggregated length labels will be stored in
Returns
number of length aggregation entries read

◆ readPreyAggregation()

int readPreyAggregation ( CommentStream infile,
CharPtrMatrix preynames,
DoubleMatrix preylengths,
FormulaMatrix digestioncoeff,
CharPtrVector preyindex,
Keeper *const  keeper 
)

This is the function that will read prey aggregation data from a file.

Parameters
infileis the CommentStream to read the aggregation data from
preynamesis the CharPtrVector that the prey names will be stored in
preylengthsis the DoubleMatrix that the aggregated prey length data will be stored in
digestioncoeffis the FormulaMatrix that the prey digestion data will be stored in
preyindexis the CharPtrVector that the aggregated prey labels will be stored in
keeperis the Keeper for the current model
Returns
number of prey aggregation entries read