src/ell/SC_ListingCompr.cc
Go to the documentation of this file.00001 #include "ell/SC_ListingCompr.hh" 00002 00003 namespace ell { 00004 00005 SC_ListingCompr::SC_ListingCompr() 00006 : SC_Counting(), stateList() 00007 { 00008 } 00009 00010 SC_ListingCompr::~SC_ListingCompr() 00011 { 00012 } 00013 00014 // This function is used to track all added intermediate States. 00015 // @param s the added State 00016 void 00017 SC_ListingCompr::add(const State& s) { 00018 // call handler of super class 00019 SC_Counting::add(s); 00020 // store compressed string representation of s 00021 stateList.push_back(s.compress()); 00022 } 00023 00025 00026 // Returns a list of all added States. 00027 // @return the State list 00028 const SC_ListingCompr::List& 00029 SC_ListingCompr::getList() const { 00030 return stateList; 00031 } 00032 00033 } // namespace ell