Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Merge requests
!35673
IDC: Class trait tweak
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
IDC: Class trait tweak
abarton/athena:IDCClassTraits
into
master
Overview
2
Commits
1
Pipelines
0
Changes
7
Merged
Adam Edward Barton
requested to merge
abarton/athena:IDCClassTraits
into
master
4 years ago
Overview
2
Commits
1
Pipelines
0
Changes
7
Expand
std::pair
wasn't doing what I expected so swapped it for a defined struct.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
8c0a7c51
1 commit,
4 years ago
7 files
+
25
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
Event/EventContainers/EventContainers/I_InternalIDC.h
+
11
−
2
Options
@@ -8,7 +8,6 @@
#include
"Identifier/IdentifierHash.h"
#include
"GaudiKernel/StatusCode.h"
#include
<vector>
#include
<utility>
namespace
EventContainers
{
class
IDC_WriteHandleBase
;
@@ -22,9 +21,19 @@ virtualised.
A standard iterator is provided for fast iteration in a sequential order.
*/
template
<
typename
T
>
struct
hashPair
{
IdentifierHash
::
value_type
first
;
const
T
*
second
;
constexpr
hashPair
(
IdentifierHash
::
value_type
f
,
const
T
*
s
)
:
first
(
f
),
second
(
s
)
{
}
bool
operator
<
(
const
hashPair
&
b
)
const
noexcept
{
return
first
<
b
.
first
;
}
};
class
I_InternalIDC
{
public:
typedef
std
::
pair
<
IdentifierHash
::
value_type
,
const
void
*
>
hashPair
;
typedef
EventContainers
::
hashPair
<
void
>
hashPair
;
typedef
std
::
vector
<
hashPair
>::
const_iterator
InternalConstItr
;
#include
"EventContainers/deleter.h"
virtual
InternalConstItr
cbegin
()
const
=
0
;
Loading