![]() | ||||||
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. *-----+----------+-----+----------------------------------------------------- *
#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:

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?
|
| (SARBayes) | Main | Related Pages | Class List | Hierarchy | Methods | Files |
|---|