![]() | ||||||
This program creates an allocation, and then prints it by walking over the results.
Version History
*-----+----------+-----+----------------------------------------------------- * Who | When | Ver | What *-----+----------+-----+----------------------------------------------------- * ASO | 18/1/03 | 1 | Created as TestBed.cpp *-----+----------+-----+----------------------------------------------------- * crt | 7apr03 | 2 | Made sample.cpp (TestBed is now for real testing). *-----+----------+-----+----------------------------------------------------- * crt | 03may03 | 3 | Simplified printAssignments. *-----+----------+-----+----------------------------------------------------- *
Definition in file sample.cpp.
#include <iostream>
#include <vector>
#include "containr.h"
#include "Allocatn.h"
#include "Array2D.h"
#include "Alloc-W.h"
#include "Alloc-CC.h"
#include "UserDef.h"
Include dependency graph for sample.cpp:

Go to the source code of this file.
Functions | |
| void | printAssignments (const Allocation &theAllocation) |
| Prints the assignments in an Allocation. | |
| int | main () |
|
|
Prints the assignments in an Allocation. Prints all and only the assignments in an Allocation, by using the standard iterator paradigm: start with ActiveAreasIterator and proceed from there. Since this program now compares answers numerically, and only prints the offending allocations, maybe we can remove this function, which now lives usefully in sample.cpp?
Definition at line 136 of file sample.cpp. References ResourceIterator::atEnd(), ActiveAreasIterator::atEnd(), ActiveArea::getActiveAreaNum(), ResourceAssignment::getResourceNum(), and ResourceAssignment::getTime(). |
| (SARBayes) | Main | Related Pages | Class List | Hierarchy | Methods | Files |
|---|