Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Fireworks
Core
src
FWConfigurableParameterizable.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Core
4
// Class : FWConfigurableParameterizable
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author: Chris Jones
10
// Created: Sun Mar 16 12:01:36 EDT 2008
11
//
12
13
// system include files
14
15
// user include files
16
#include "
Fireworks/Core/interface/FWConfigurableParameterizable.h
"
17
#include "
Fireworks/Core/interface/FWParameterBase.h
"
18
#include "
Fireworks/Core/interface/FWConfiguration.h
"
19
#include <cassert>
20
21
//
22
// constants, enums and typedefs
23
//
24
25
//
26
// static data member definitions
27
//
28
29
//
30
// constructors and destructor
31
//
32
FWConfigurableParameterizable::FWConfigurableParameterizable
(
unsigned
int
iVersion) : m_version(iVersion) {}
33
34
// FWConfigurableParameterizable::FWConfigurableParameterizable(const FWConfigurableParameterizable& rhs)
35
// {
36
// // do actual copying here;
37
// }
38
39
FWConfigurableParameterizable::~FWConfigurableParameterizable
() {}
40
41
//
42
// assignment operators
43
//
44
// const FWConfigurableParameterizable& FWConfigurableParameterizable::operator=(const FWConfigurableParameterizable& rhs)
45
// {
46
// //An exception safe implementation is
47
// FWConfigurableParameterizable temp(rhs);
48
// swap(rhs);
49
//
50
// return *this;
51
// }
52
53
//
54
// member functions
55
//
56
void
FWConfigurableParameterizable::setFrom
(
const
FWConfiguration
& iFrom) {
57
//need a way to handle versioning
58
assert
(iFrom.
version
() ==
m_version
);
59
for
(
const_iterator
it =
begin
(), itEnd =
end
(); it != itEnd; ++it) {
60
(*it)->setFrom(iFrom);
61
}
62
}
63
64
//
65
// const member functions
66
//
67
void
FWConfigurableParameterizable::addTo
(
FWConfiguration
& oTo)
const
{
68
for
(
const_iterator
it =
begin
(), itEnd =
end
(); it != itEnd; ++it) {
69
(*it)->addTo(oTo);
70
}
71
}
72
73
//
74
// static member functions
75
//
FWParameterizable::const_iterator
std::vector< FWParameterBase * >::const_iterator const_iterator
Definition:
FWParameterizable.h:34
cms::cuda::assert
assert(be >=bs)
FWParameterizable::end
const_iterator end() const
Definition:
FWParameterizable.h:38
FWConfigurableParameterizable.h
FWParameterizable::begin
const_iterator begin() const
Definition:
FWParameterizable.h:36
FWConfigurableParameterizable::~FWConfigurableParameterizable
~FWConfigurableParameterizable() override
Definition:
FWConfigurableParameterizable.cc:39
FWConfigurableParameterizable::setFrom
void setFrom(const FWConfiguration &) override
Definition:
FWConfigurableParameterizable.cc:56
FWParameterBase.h
FWConfiguration::version
unsigned int version() const
Definition:
FWConfiguration.h:49
FWConfigurableParameterizable::addTo
void addTo(FWConfiguration &) const override
Definition:
FWConfigurableParameterizable.cc:67
FWConfiguration
Definition:
FWConfiguration.h:31
FWConfigurableParameterizable::m_version
unsigned int m_version
Definition:
FWConfigurableParameterizable.h:49
FWConfiguration.h
FWConfigurableParameterizable::FWConfigurableParameterizable
FWConfigurableParameterizable(unsigned int iVersion=1)
Definition:
FWConfigurableParameterizable.cc:32
Generated for CMSSW Reference Manual by
1.8.16