Example #1
0
void AStarGridCell::copy(AStarGridCell& aStarGridCell) {
	this->cellCoordinates = aStarGridCell.cellCoordinates;
	this->cellGridPosition = aStarGridCell.cellGridPosition;
	this->cost = aStarGridCell.cost;
	this->targetCoordinates = aStarGridCell.targetCoordinates;
	this->gCost = aStarGridCell.gCost;
	if(aStarGridCell.getSuccessors().size() > 0){
		setSuccessors(aStarGridCell.getSuccessors());
	}
}
Example #2
0
Value* BasicBlock::appendNewControlValue(Procedure& proc, Opcode opcode, Origin origin, Value* predicate, const FrequentedBlock& taken, const FrequentedBlock& notTaken)
{
    RELEASE_ASSERT(opcode == Branch);
    setSuccessors(taken, notTaken);
    return appendNew<Value>(proc, opcode, origin, predicate);
}
Example #3
0
Value* BasicBlock::appendNewControlValue(Procedure& proc, Opcode opcode, Origin origin, const FrequentedBlock& target)
{
    RELEASE_ASSERT(opcode == Jump);
    setSuccessors(target);
    return appendNew<Value>(proc, opcode, origin);
}