#include <PartitionManager.h>
Public Member Functions | |
| CellAndObjectIntersection () | |
| ~CellAndObjectIntersection () | |
| void | addCoverage (PartitionCell *cell, PartitionData *module) |
| void | removeAllCoverage () |
| PartitionCell * | getCell () |
| PartitionData * | getModule () |
| CellAndObjectIntersection * | getPrevCoi () |
| CellAndObjectIntersection * | getNextCoi () |
| void | friend_addToCellList (CellAndObjectIntersection **pListHead) |
| void | friend_removeFromCellList (CellAndObjectIntersection **pListHead) |
This class (often called COI for short) is the abstraction of the intersection between an Object and a Partition Cell. For every Cell that an Object's geometry touches, even partially, we allocate a COI. This allows us to maintain an efficient two-way list, such that for every Object, we know the Cells that it touches; and, for every Cell, we know the Objects that touch it.
Definition at line 192 of file PartitionManager.h.
| CellAndObjectIntersection::CellAndObjectIntersection | ( | ) |
Definition at line 1127 of file PartitionManager.cpp.
| CellAndObjectIntersection::~CellAndObjectIntersection | ( | ) |
Definition at line 1136 of file PartitionManager.cpp.
| void CellAndObjectIntersection::addCoverage | ( | PartitionCell * | cell, |
| PartitionData * | module ) |
make 'this' refer to the specified cell and module. Normally, this involves updated the member variables and adding 'this' to the Cell's list of COIs.
Definition at line 1186 of file PartitionManager.cpp.
| void CellAndObjectIntersection::friend_addToCellList | ( | CellAndObjectIntersection ** | pListHead | ) |
Definition at line 1143 of file PartitionManager.cpp.
| void CellAndObjectIntersection::friend_removeFromCellList | ( | CellAndObjectIntersection ** | pListHead | ) |
Definition at line 1154 of file PartitionManager.cpp.
|
inline |
return the Cell for this COI (null if the COI is not in use)
Definition at line 221 of file PartitionManager.h.
|
inline |
return the Module for this COI (null if the COI is not in use)
Definition at line 226 of file PartitionManager.h.
|
inline |
return the next COI in the Cell's list of COIs.
Definition at line 236 of file PartitionManager.h.
|
inline |
return the previous COI in the Cell's list of COIs.
Definition at line 231 of file PartitionManager.h.
| void CellAndObjectIntersection::removeAllCoverage | ( | ) |
make 'this' refer to nothing at all. this involves resetting the member variables to null, and removing 'this' from the Cell's list of COI's.
Definition at line 1205 of file PartitionManager.cpp.