Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
Common
interface
PostReadFixupTrait.h
Go to the documentation of this file.
1
#ifndef DataFormats_Common_PostReadFixupTrait_h
2
#define DataFormats_Common_PostReadFixupTrait_h
3
4
namespace
edm {
5
namespace
helpers {
6
struct
DoNoPostReadFixup
{
7
void
touch
() { }
8
template
<
typename
C>
9
void
operator()
(
const
C
&)
const
{ }
10
};
11
12
struct
PostReadFixup
{
13
PostReadFixup
() :
fixed_
(
false
) { }
14
void
touch
() {
fixed_
=
false
; }
15
template
<
typename
C>
16
void
operator()
(
const
C
&
c
)
const
{
17
if
(!
fixed_
) {
18
fixed_
=
true
;
19
for
(
typename
C::const_iterator
i
= c.begin(), e = c.end();
i
!= e; ++
i
)
20
(*i)->fixup();
21
}
22
}
23
private
:
24
mutable
bool
fixed_
;
25
};
26
27
template
<
typename
T>
28
struct
PostReadFixupTrait
{
29
typedef
DoNoPostReadFixup
type
;
30
};
31
}
32
}
33
34
#endif
i
int i
Definition:
DBlmapReader.cc:9
edm::helpers::PostReadFixup
Definition:
PostReadFixupTrait.h:12
edm::helpers::DoNoPostReadFixup::operator()
void operator()(const C &) const
Definition:
PostReadFixupTrait.h:9
funct::false
false
Definition:
Factorize.h:34
edm::helpers::DoNoPostReadFixup::touch
void touch()
Definition:
PostReadFixupTrait.h:7
funct::C
C
Definition:
Factorize.h:141
edm::helpers::PostReadFixup::PostReadFixup
PostReadFixup()
Definition:
PostReadFixupTrait.h:13
edm::helpers::PostReadFixupTrait::type
DoNoPostReadFixup type
Definition:
PostReadFixupTrait.h:29
edm::helpers::PostReadFixup::touch
void touch()
Definition:
PostReadFixupTrait.h:14
edm::helpers::PostReadFixup::operator()
void operator()(const C &c) const
Definition:
PostReadFixupTrait.h:16
edm::helpers::PostReadFixup::fixed_
bool fixed_
Definition:
PostReadFixupTrait.h:24
edm::helpers::DoNoPostReadFixup
Definition:
PostReadFixupTrait.h:6
trackerHits.c
tuple c
Definition:
trackerHits.py:26
edm::helpers::PostReadFixupTrait
Definition:
PostReadFixupTrait.h:28
Generated for CMSSW Reference Manual by
1.8.5