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) {
49 for (std::vector<ParameterSetID>::const_iterator
i =
theIDs_->begin(),
e =
theIDs_->end();
i !=
e; ++
i) {
62 for (std::vector<ParameterSetID>::const_iterator
i =
theIDs_->begin(),
e =
theIDs_->end();
i !=
e; ++
i) {
93 auto tmp = std::make_unique<std::vector<ParameterSet>>();
95 for (
auto const& theID : *
theIDs_) {
99 if(
theVPSet_.compare_exchange_strong(expected,
tmp.get())) {
116 return vpset().size();
124 if (!
i->isRegistered()) {
133 std::ostringstream os;
134 std::vector<ParameterSet>
const& vps =
vpset();
135 os <<
"VPSet "<<(
isTracked()?
"tracked":
"untracked")<<
" = ({" << std::endl;
138 for(std::vector<ParameterSet>::const_iterator
i = vps.begin(),
e = vps.end();
i !=
e; ++
i) {
139 os << start << indentation <<
i->dump(indent);
145 os << indentation <<
"})";
150 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)