Gadget
livesonareas.h
Go to the documentation of this file.
1 #ifndef livesonareas_h
2 #define livesonareas_h
3 
4 #include "intvector.h"
5 
10 class LivesOnAreas {
11 public:
19  virtual ~LivesOnAreas() {};
24  LivesOnAreas(const IntVector& Areas);
30  int isInArea(int area) const;
35  IntVector& getAreas() { return areas; };
41  int areaNum(int area) const;
42 protected:
47  void storeAreas(const IntVector& Areas);
52 private:
56  IntVector areaConvert;
57 };
58 
59 #endif
This class implements a dynamic vector of int values.
Definition: intvector.h:11
This is the class used to store information about the areas an object is defined on for the current m...
Definition: livesonareas.h:10
IntVector areas
This is the IntVector of internal areas that the object is defined on.
Definition: livesonareas.h:51
virtual ~LivesOnAreas()
This is the default LivesOnAreas destructor.
Definition: livesonareas.h:19
int isInArea(int area) const
This function will check whether the object is defined on a specified area.
Definition: livesonareas.cc:27
void storeAreas(const IntVector &Areas)
This function will store the internal areas to be used.
Definition: livesonareas.cc:39
LivesOnAreas()
This is the default LivesOnAreas constructor.
Definition: livesonareas.h:15
IntVector & getAreas()
This function will return the internal areas that the object is defined on.
Definition: livesonareas.h:35
int areaNum(int area) const
This function will return the area associated with an internal area.
Definition: livesonareas.cc:33