[const correctnes
Andreas Röver <roever@users.sourceforge.net>**20050618100849] {
hunk ./src/lib/assembly.cpp 3
-assemblyVoxel_c * assembly_c::getVoxelSpace(const puzzle_c * puz, unsigned int prob) {
+#include "puzzle.h"
hunk ./src/lib/assembly.cpp 5
+assemblyVoxel_c * assembly_c::getVoxelSpace(const puzzle_c * puz, unsigned int prob) const {
+
hunk ./src/lib/assembly.h 24
-#include "puzzle.h"
hunk ./src/lib/assembly.h 29
+class puzzle_c;
+
hunk ./src/lib/assembly.h 93
-  assemblyVoxel_c * getVoxelSpace(const puzzle_c * puz, unsigned int prob);
+  assemblyVoxel_c * getVoxelSpace(const puzzle_c * puz, unsigned int prob) const;
hunk ./src/lib/puzzle.cpp 876
-assemblyVoxel_c * puzzle_c::probGetAssembly(unsigned int prob, unsigned int sol) {
+assembly_c * puzzle_c::probGetAssembly(unsigned int prob, unsigned int sol) {
+  assert(prob < problems.size());
+  assert(sol < problems[prob]->solutions.size());
+
+  return problems[prob]->solutions[sol]->assembly;
+}
+
+const assembly_c * puzzle_c::probGetAssembly(unsigned int prob, unsigned int sol) const {
hunk ./src/lib/puzzle.cpp 891
+  assert(prob < problems.size());
+  assert(sol < problems[prob]->solutions.size());
+
+  return problems[prob]->solutions[sol]->tree;
+}
+
+const separation_c * puzzle_c::probGetDisassembly(unsigned int prob, unsigned int sol) const {
hunk ./src/lib/puzzle.h 200
+
+  const assembly_c * probGetAssembly(unsigned int prob, unsigned int sol) const;
+  const separation_c * probGetDisassembly(unsigned int prob, unsigned int sol) const;
}
