This is the class used to store information about the areas an object is defined on for the current model.
More...
#include <livesonareas.h>
This is the class used to store information about the areas an object is defined on for the current model.
◆ LivesOnAreas() [1/2]
LivesOnAreas::LivesOnAreas |
( |
| ) |
|
|
inline |
◆ ~LivesOnAreas()
virtual LivesOnAreas::~LivesOnAreas |
( |
| ) |
|
|
inlinevirtual |
◆ LivesOnAreas() [2/2]
LivesOnAreas::LivesOnAreas |
( |
const IntVector & |
Areas | ) |
|
This is the LivesOnAreas constructor for a specified vector of areas.
- Parameters
-
Areas | is the IntVector of internal areas to be used |
◆ areaNum()
int LivesOnAreas::areaNum |
( |
int |
area | ) |
const |
This function will return the area associated with an internal area.
- Parameters
-
area | is an integer to denote the internal area of interest |
- Returns
- the associated area number
◆ getAreas()
This function will return the internal areas that the object is defined on.
- Returns
- areas
◆ isInArea()
int LivesOnAreas::isInArea |
( |
int |
area | ) |
const |
This function will check whether the object is defined on a specified area.
- Parameters
-
area | is an integer to denote the internal area of interest |
- Returns
- 1 if the object is defined on the area, 0 otherwise
◆ storeAreas()
void LivesOnAreas::storeAreas |
( |
const IntVector & |
Areas | ) |
|
|
protected |
This function will store the internal areas to be used.
- Parameters
-
Areas | is the IntVector of internal areas to be used |
◆ areas
This is the IntVector of internal areas that the object is defined on.
The documentation for this class was generated from the following files: