10 branchIDToIndexMap_(),
11 branchListIndexMapper_() {}
15 bool unchanged =
true;
20 branchListIndexMapper.clear();
21 typedef BranchIDLists::const_iterator Iter;
23 for(Iter it = bidlists.begin(), itEnd = bidlists.end(); it != itEnd; ++it) {
27 if(j == bdata.end()) {
29 for(BranchIDList::const_iterator
i = it->begin(), iEnd = it->end();
i != iEnd; ++
i) {
31 branchIDToIndexMap.insert(std::make_pair(
BranchID(*
i), std::make_pair(blix, pix)));
34 branchListIndexMapper.insert(std::make_pair(oldBlix, blix));
46 for(ProductRegistry::ProductList::const_iterator it = preg.
productList().begin(), itEnd = preg.
productList().end();
48 if(it->second.produced()) {
49 if(it->second.branchType() ==
InEvent) {
50 bidlist.push_back(it->second.branchID().id());
56 if(!bidlist.empty()) {
60 for(BranchIDList::const_iterator
i = bidlist.begin(), iEnd = bidlist.end();
i != iEnd; ++
i) {
62 branchIDToIndexMap.insert(std::make_pair(
BranchID(*
i), std::make_pair(blix, pix)));
71 for(BranchListIndexes::iterator
i = indexes.begin(),
e = indexes.end();
i !=
e; ++
i) {
72 *
i = branchListIndexMapper[*
i];
80 breg.
extra().branchIDToIndexMap_.clear();
81 breg.
extra().branchListIndexMapper_.clear();
unsigned short BranchListIndex
BranchIDToIndexMap const & branchIDToIndexMap() const
std::vector< BranchIDList > BranchIDLists
static void clearRegistries()
static bool updateFromInput(BranchIDLists const &bidlists, std::string const &fileName)
collection_type::const_iterator const_iterator
static void fixBranchListIndexes(BranchListIndexes &indexes)
ProductList const & productList() const
void setProducedBranchListIndex(BranchListIndex blix) const
std::vector< BranchListIndex > BranchListIndexes
static ThreadSafeIndexedRegistry * instance()
bool insertMapped(value_type const &v)
std::multimap< BranchID, IndexPair > BranchIDToIndexMap
ForwardSequence::const_iterator find_in_all(ForwardSequence const &s, Datum const &d)
wrappers for std::find
std::vector< BranchID::value_type > BranchIDList
static void updateRegistries(ProductRegistry const ®)
author Stefano ARGIRO author Bill Tanenbaum
std::map< BranchListIndex, BranchListIndex > BranchListIndexMapper
collection_type & data()
Provide access to the contained collection.
std::vector< value_type > collection_type
unsigned short ProductIndex