/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Common/src/RefCoreWithIndex.cc
41 строка
2 KB
W. David Dagenhart
From scram b code-format-all (clang-format)
10 май 2019, 17:51
10 май 2019, 17:51
82e0ab0
Код
Авторство
О чём код?
#include "DataFormats/Common/interface/RefCoreWithIndex.h" #include "DataFormats/Common/interface/RefCore.h" namespace edm { RefCoreWithIndex::RefCoreWithIndex(ProductID const& theId, void const* prodPtr, EDProductGetter const* prodGetter, bool transient, unsigned int iIndex) : cachePtr_(prodPtr), processIndex_(theId.processIndex()), productIndex_(theId.productIndex()), elementIndex_(iIndex) { if (transient) { setTransient(); } if (prodPtr == nullptr && prodGetter != nullptr) { setCacheIsProductGetter(prodGetter); } } RefCoreWithIndex::RefCoreWithIndex(RefCore const& iCore, unsigned int iIndex) : processIndex_(iCore.processIndex_), productIndex_(iCore.productIndex_), elementIndex_(iIndex) { cachePtr_.store(iCore.cachePtr_.load(std::memory_order_relaxed), std::memory_order_relaxed); } RefCoreWithIndex::RefCoreWithIndex(RefCoreWithIndex const& iOther) : processIndex_(iOther.processIndex_), productIndex_(iOther.productIndex_), elementIndex_(iOther.elementIndex_) { cachePtr_.store(iOther.cachePtr_.load(std::memory_order_relaxed), std::memory_order_relaxed); } RefCoreWithIndex& RefCoreWithIndex::operator=(RefCoreWithIndex const& iOther) { cachePtr_.store(iOther.cachePtr_.load(std::memory_order_relaxed), std::memory_order_relaxed); processIndex_ = iOther.processIndex_; productIndex_ = iOther.productIndex_; elementIndex_ = iOther.elementIndex_; return *this; } } // namespace edm