00001
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include <op_partition.h>
00030
00031 namespace faudes {
00032
00033 Partition::Partition()
00034 {
00035 OP_DF("Partition::Partition: entering function");
00036 nonSplitting=false;
00037 OP_DF("Partition::Partition: leaving function");
00038 }
00039
00040 void Partition::writeInfoMap(Idx event) const
00041 {
00042 OP_DF("Partition::writeInfoMap: entering function");
00043 cout << "Writing info-map for event " << event << endl;
00044 map<Idx,map<Idx,Idx> >::const_iterator pMap = infoMap.find(event);
00045
00046 if(pMap!=infoMap.end())
00047 {
00048 map<Idx,Idx>::const_iterator mIt;
00049 map<Idx,Idx>::const_iterator mItBegin = pMap->second.begin();
00050 map<Idx,Idx>::const_iterator mItEnd = pMap->second.end();
00051
00052 if(mItBegin == mItEnd)
00053 cout << "no entries for this event" << endl;
00054 for(mIt=mItBegin; mIt != mItEnd; ++mIt)
00055 cout << "state: " << (*mIt).first << " : occurrences: " << (*mIt).second << endl;
00056 cout << endl;
00057 }
00058
00059 else
00060 cout << "no info-map for this event" << endl;
00061
00062 OP_DF("Partition::writeInfoMap: leaving function");
00063 }
00064
00065 }