22 for (std::vector<ParameterSet>::const_iterator
i = vpset.begin(),
e = vpset.end();
i !=
e; ++
i) {
31 assert(rep[0] ==
'+' || rep[0] ==
'-');
32 std::vector<std::string>
temp;
34 std::string bracketedRepr(rep.begin()+2, rep.end());
35 split(std::back_inserter(temp), bracketedRepr,
'{',
',',
'}');
37 for (std::vector<std::string>::const_iterator
i = temp.begin(),
e = temp.end();
i !=
e; ++
i) {
51 for (std::vector<ParameterSetID>::const_iterator
i =
theIDs_->begin(),
e =
theIDs_->end();
i !=
e; ++
i) {
64 for (std::vector<ParameterSetID>::const_iterator
i =
theIDs_->begin(),
e =
theIDs_->end();
i !=
e; ++
i) {
95 auto tmp = std::make_unique<std::vector<ParameterSet>>();
97 for (
auto const& theID : *
theIDs_) {
101 if(
theVPSet_.compare_exchange_strong(expected,
tmp.get())) {
118 return vpset().size();
126 if (!
i->isRegistered()) {
135 std::ostringstream os;
136 std::vector<ParameterSet>
const& vps =
vpset();
137 os <<
"VPSet "<<(
isTracked()?
"tracked":
"untracked")<<
" = ({" << std::endl;
140 for(std::vector<ParameterSet>::const_iterator
i = vps.begin(),
e = vps.end();
i !=
e; ++
i) {
141 os << start << indentation <<
i->dump(indent);
147 os << indentation <<
"})";
152 os << vpsetEntry.
dump();
friend std::ostream & operator<<(std::ostream &os, VParameterSetEntry const &vpsetEntry)
std::string dump(unsigned int indent=0) const
void fillVPSet() const
reconstitutes the VPSet from the registry
std::vector< ParameterSet > VParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
std::vector< ParameterSet > & vpsetForUpdate()
void toDigest(cms::Digest &digest) const
value_ptr< std::vector< ParameterSetID > > theIDs_
atomic_value_ptr< std::vector< ParameterSet > > theVPSet_
std::vector< ParameterSet > const & vpset() const
returns the VPSet
bool split(OutIter result, std::string const &string_to_split, char first, char sep, char last)
Hash< ParameterSetType > ParameterSetID
std::string toString() const
void registerPsetsAndUpdateIDs()
std::vector< std::vector< double > > tmp
std::vector< ParameterSet >::size_type size() const
ParameterSet & psetInVector(int i)
void append(std::string const &s)