![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Used to map locations of individuals for density estimates. More...
#include <PositionMap.h>
Public Member Functions | |
int | GetMapValue (unsigned x, unsigned y) |
void | SetMapValue (unsigned x, unsigned y) |
void | ClearMapValue (unsigned x, unsigned y) |
int | GetMapDensity (unsigned x, unsigned y) |
int | GetMapDensity (unsigned x, unsigned y, unsigned range) |
bool | GetMapPositive (unsigned x, unsigned y, unsigned range) |
bool | GetMapPositiveB (unsigned x, unsigned y, unsigned range) |
int | GetMapDensity5x5 (unsigned x, unsigned y) |
bool | GetMapDensity32 (unsigned x, unsigned y) |
int | GetTotalSpace (int x, int y) |
int | GetTotalN (int x, int y) |
PositionMap (unsigned a_size) | |
PositionMap (Landscape *L) | |
~PositionMap () | |
Public Attributes | |
PointerInt * | m_TheMap |
PointerInt | m_xmaxx |
PointerInt | m_maxx |
PointerInt | m_maxy |
PointerInt | m_TheBitMaskArray [65] |
PointerInt | m_TheBitMaskArray2 [65] |
Protected Member Functions | |
void | Init () |
PointerInt | BitCount (PointerInt n) |
Protected Attributes | |
Landscape * | m_ALandscape |
Used to map locations of individuals for density estimates.
PositionMap::PositionMap | ( | unsigned | a_size | ) |
References __3264minus0, __3264minus1, Init(), m_maxx, m_maxy, m_TheMap, and m_xmaxx.
PositionMap::PositionMap | ( | Landscape * | L | ) |
References __3264minus0, __3264minus1, Init(), m_ALandscape, m_maxx, m_maxy, m_TheMap, m_xmaxx, Landscape::SupplySimAreaHeight(), and Landscape::SupplySimAreaWidth().
|
inlineprotected |
Referenced by GetMapDensity().
void PositionMap::ClearMapValue | ( | unsigned | x, |
unsigned | y | ||
) |
int PositionMap::GetMapDensity | ( | unsigned | x, |
unsigned | y | ||
) |
References __3264divide, __3264minus1, m_maxx, and m_TheMap.
int PositionMap::GetMapDensity | ( | unsigned | x, |
unsigned | y, | ||
unsigned | range | ||
) |
References __3264divide, __3264minus0, __3264minus1, BitCount(), m_maxx, m_maxy, m_TheBitMaskArray, m_TheBitMaskArray2, and m_TheMap.
bool PositionMap::GetMapDensity32 | ( | unsigned | x, |
unsigned | y | ||
) |
References __3264divide, __3264minus1, m_maxx, and m_TheMap.
int PositionMap::GetMapDensity5x5 | ( | unsigned | x, |
unsigned | y | ||
) |
References __3264divide, __3264minus1, m_maxx, and m_TheMap.
bool PositionMap::GetMapPositive | ( | unsigned | x, |
unsigned | y, | ||
unsigned | range | ||
) |
References __3264divide, __3264minus0, __3264minus1, m_maxx, m_maxy, m_TheBitMaskArray, m_TheBitMaskArray2, and m_TheMap.
bool PositionMap::GetMapPositiveB | ( | unsigned | x, |
unsigned | y, | ||
unsigned | range | ||
) |
References __3264divide, __3264minus1, m_maxx, m_maxy, m_TheBitMaskArray, and m_TheMap.
int PositionMap::GetMapValue | ( | unsigned | x, |
unsigned | y | ||
) |
References __3264divide, __3264minus1, m_maxx, and m_TheMap.
Referenced by GetTotalN(), and GetTotalSpace().
int PositionMap::GetTotalN | ( | int | x, |
int | y | ||
) |
References GetMapValue().
int PositionMap::GetTotalSpace | ( | int | x, |
int | y | ||
) |
References GetMapValue().
|
protected |
References __3264minus0, ClearMapValue(), m_maxy, m_TheBitMaskArray, m_TheBitMaskArray2, and m_xmaxx.
Referenced by PositionMap().
void PositionMap::SetMapValue | ( | unsigned | x, |
unsigned | y | ||
) |
References __3264divide, __3264minus1, m_maxx, and m_TheMap.
|
protected |
Referenced by PositionMap().
PointerInt PositionMap::m_maxx |
Referenced by ClearMapValue(), GetMapDensity(), GetMapDensity32(), GetMapDensity5x5(), GetMapPositive(), GetMapPositiveB(), GetMapValue(), PositionMap(), and SetMapValue().
PointerInt PositionMap::m_maxy |
Referenced by GetMapDensity(), GetMapPositive(), GetMapPositiveB(), Init(), and PositionMap().
PointerInt PositionMap::m_TheBitMaskArray[65] |
Referenced by GetMapDensity(), GetMapPositive(), GetMapPositiveB(), and Init().
PointerInt PositionMap::m_TheBitMaskArray2[65] |
Referenced by GetMapDensity(), GetMapPositive(), and Init().
PointerInt* PositionMap::m_TheMap |
PointerInt PositionMap::m_xmaxx |
Referenced by Init(), and PositionMap().