/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/Core/src/DDStrVector.cc
28 строк
805 B
Cms Build
Clang-Format
29 май 2019, 08:28
29 май 2019, 08:28
96591f2
Код
Авторство
О чём код?
#include "DetectorDescription/Core/interface/DDStrVector.h" #include <utility> DDStrVector::DDStrVector() : DDBase<DDName, std::unique_ptr<std::vector<std::string>>>() {} DDStrVector::DDStrVector(const DDName& name) : DDBase<DDName, std::unique_ptr<std::vector<std::string>>>() { create(name); } DDStrVector::DDStrVector(const DDName& name, std::unique_ptr<std::vector<std::string>> vals) { create(name, std::move(vals)); } std::ostream& operator<<(std::ostream& os, const DDStrVector& cons) { os << "DDStrVector name=" << cons.name(); if (cons.isDefined().second) { os << " size=" << cons.size() << " vals=( "; for (const auto& it : cons.values()) { os << it << ' '; } os << ')'; } else { os << " constant is not yet defined, only declared."; } return os; }