Gadget
migrationarea.h
Go to the documentation of this file.
1 #ifndef migrationarea_h
2 #define migrationarea_h
3 
4 #include "rectangleptrvector.h"
5 #include "commentstream.h"
6 #include "gadget.h"
7 
13 public:
20  MigrationArea(CommentStream& infile, char* name, int id);
29  double getArea() { return areaSize; };
34  int getAreaID() { return areaid; };
39  int getNumRectangles() { return rectangles.Size(); };
44  RectanglePtrVector& getRectangles() { return rectangles; };
45 private:
49  char* areaName;
53  int areaid;
57  double areaSize;
61  RectanglePtrVector rectangles;
62 };
63 
64 #endif
This is the class used to strip comments (and whitespace) from any input stream.
Definition: commentstream.h:40
This is the class used to store details of the areas used when calculating the migration within the m...
Definition: migrationarea.h:12
RectanglePtrVector & getRectangles()
This will return the RectanglePtrVector of rectangles that make up the the migration area.
Definition: migrationarea.h:44
double getArea()
This will return the size of the migration area.
Definition: migrationarea.h:29
int getAreaID()
This will return the internal identifier of the migration area.
Definition: migrationarea.h:34
~MigrationArea()
This is the default MigrationArea destructor.
Definition: migrationarea.cc:29
int getNumRectangles()
This will return the number of rectangles that make up the the migration area.
Definition: migrationarea.h:39
MigrationArea(CommentStream &infile, char *name, int id)
This is the MigrationArea constructor.
Definition: migrationarea.cc:8
This class implements a dynamic vector of Rectangle values.
Definition: rectangleptrvector.h:10
int Size() const
This will return the size of the vector.
Definition: rectangleptrvector.h:41