19 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); ++it)
26 std::vector<std::string>::const_iterator
begin,
27 std::vector<std::string>::const_iterator
end,
30 : collector_(collector),
dump_(dump), special_(special) {
38 if (++iter_.back().first == iter_.back().second)
53 bool special = special_ && iter_.size() == 1;
54 if ((!line.empty() && line[0] ==
'+') || special) {
55 if (++iter_.back().first == iter_.back().second) {
63 std::map<std::string, std::vector<std::string> >
::const_iterator pos = collector_->contents_.find(block);
64 if (pos == collector_->contents_.end())
67 << block <<
"\", included via plus sign.";
70 *
dump_ <<
"\n####### " << block <<
" #######" << std::endl;
72 if (!pos->second.empty())
73 iter_.push_back(
IterPair(pos->second.begin(), pos->second.end()));
75 cache_ = collector_->resolve(line);
77 *
dump_ << cache_ << std::endl;
88 return const_iterator(
this, pos->second.begin(), pos->second.end(),
true);
104 return const_iterator(
this, pos->second.begin(), pos->second.end());
112 dump <<
"\n####### " << block <<
" #######" << std::endl;
122 if (pos == std::string::npos)
126 if (endpos == std::string::npos)
132 const char *
path = std::getenv(var.c_str());
134 result.replace(pos, endpos - pos, path ? path :
"");
static std::string resolve(const std::string &line)
const std::string names[nVars_]
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
std::pair< std::vector< std::string >::const_iterator, std::vector< std::string >::const_iterator > IterPair
friend class const_iterator
T getParameter(std::string const &) const
std::map< std::string, std::vector< std::string > > contents_
std::vector< IterPair > iter_
const_iterator begin() const
tuple dump
OutputFilePath = cms.string('/tmp/zhokin/'), OutputFileExt = cms.string(''),.