DetectorDescription
Core
src
DDStrVector.cc
Go to the documentation of this file.
1
#include "
DetectorDescription/Core/interface/DDStrVector.h
"
2
3
#include <utility>
4
5
DDStrVector::DDStrVector
() :
DDBase
<
DDName
,
std
::
unique_ptr
<
std
::
vector
<
std
::
string
>>>() {}
6
7
DDStrVector::DDStrVector
(
const
DDName
&
name
) :
DDBase
<
DDName
,
std
::
unique_ptr
<
std
::
vector
<
std
::
string
>>>() {
8
create
(
name
);
9
}
10
11
DDStrVector::DDStrVector
(
const
DDName
&
name
,
std::unique_ptr
<std::vector<std::string>> vals) {
12
create
(
name
,
std::move
(vals));
13
}
14
15
std::ostream&
operator<<
(std::ostream& os,
const
DDStrVector
& cons) {
16
os <<
"DDStrVector name="
<< cons.
name
();
17
18
if
(cons.
isDefined
().second) {
19
os <<
" size="
<< cons.
size
() <<
" vals=( "
;
20
for
(
const
auto
& it : cons.
values
()) {
21
os << it <<
' '
;
22
}
23
os <<
')'
;
24
}
else
{
25
os <<
" constant is not yet defined, only declared."
;
26
}
27
return
os;
28
}
DDStrVector::DDStrVector
DDStrVector()
an uninitialized constant; one can assign an initialized constant to make it valid
Definition:
DDStrVector.cc:5
DDName
DDName is used to identify DDD entities uniquely.
Definition:
DDName.h:17
DDBase::isDefined
def_type isDefined() const
Definition:
DDBase.h:90
DDStrVector.h
DDStrVector
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsStrVector>
Definition:
DDStrVector.h:18
DDBase< DDName, std::unique_ptr< std::vector< std::string > > >::name
const DDName & name() const
Definition:
DDBase.h:59
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
operator<<
std::ostream & operator<<(std::ostream &os, const DDStrVector &cons)
output operator for printing ...
Definition:
DDStrVector.cc:15
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
cms::cuda::device::unique_ptr
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
Definition:
device_unique_ptr.h:33
eostools.move
def move(src, dest)
Definition:
eostools.py:511
std
Definition:
JetResolutionObject.h:76
DDBase< DDName, std::unique_ptr< std::vector< std::string > > >::create
void create(const DDName &name, std::unique_ptr< std::vector< std::string > > vals)
Definition:
DDBase.h:96
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
DDStrVector::size
size_t size() const
the size of the array of values
Definition:
DDStrVector.h:36
DDBase
Definition:
DDBase.h:10
DDStrVector::values
const value_type & values() const
the stored values
Definition:
DDStrVector.h:39
Generated for CMSSW Reference Manual by
1.8.16