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 using namespace std;
00032
00033 namespace faudes {
00034
00035 Partition::Partition()
00036 {
00037 OP_DF("Partition::Partition: entering function");
00038 nonSplitting=false;
00039 OP_DF("Partition::Partition: leaving function");
00040 }
00041
00042 void Partition::writeInfoMap(Idx event) const
00043 {
00044 OP_DF("Partition::writeInfoMap: entering function");
00045 cout << "Writing info-map for event " << event << endl;
00046 std::map<Idx,map<Idx,Idx> >::const_iterator pMap = infoMap.find(event);
00047
00048 if(pMap!=infoMap.end())
00049 {
00050 std::map<Idx,Idx>::const_iterator mIt;
00051 std::map<Idx,Idx>::const_iterator mItBegin = pMap->second.begin();
00052 std::map<Idx,Idx>::const_iterator mItEnd = pMap->second.end();
00053
00054 if(mItBegin == mItEnd)
00055 cout << "no entries for this event" << endl;
00056 for(mIt=mItBegin; mIt != mItEnd; ++mIt)
00057 cout << "state: " << (*mIt).first << " : occurrences: " << (*mIt).second << endl;
00058 cout << endl;
00059 }
00060
00061 else
00062 cout << "no info-map for this event" << endl;
00063
00064 OP_DF("Partition::writeInfoMap: leaving function");
00065 }
00066
00067 }