24 using boost::property_tree::ptree;
 
   29 ListSweep::ListSweep(
const vector<string>& values) : m_values(values) {}
 
   38         assert(index < m_values.size() && 
"The index doesn't exist.");
 
   39         return m_values[index];
 
   44         return m_values.size();
 
   50         for (
const string &value : m_values) {
 
   51                 pt.add(
"list.value", value);
 
   56 void ListSweep::ReadPtree(
const ptree& pt)
 
   59         for (
const auto& entry : pt.get_child(
"list")) {
 
   60                 m_values.push_back(entry.second.data());
 
virtual std::string GetValue(unsigned int index) const 
Returns the value on the given index. 
 
ListSweep(const std::vector< std::string > &values)
Constructor. 
 
virtual boost::property_tree::ptree ToPtree() const 
Convert the list sweep to a ptree. 
 
virtual unsigned int GetNumberOfValues() const 
Returns the number of values in the sweep. 
 
Namespace for SimPT parameter explorer package.