Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
analysis_tree
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
pwg-c2f
data
analysis_tree
Commits
27c83bcd
Commit
27c83bcd
authored
5 years ago
by
mam-mih-val
Browse files
Options
Downloads
Patches
Plain Diff
Removing
parent
42797b22
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!10
Template way
,
!9
Template way
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ContainerConfig.h
+0
-61
0 additions, 61 deletions
src/ContainerConfig.h
with
0 additions
and
61 deletions
src/ContainerConfig.h
deleted
100644 → 0
+
0
−
61
View file @
42797b22
#ifndef ANALYSISTREE_BRANCHCONFIG_H
#define ANALYSISTREE_BRANCHCONFIG_H
#include
<utility>
#include
<vector>
#include
<map>
#include
<string>
#include
<iostream>
#include
<RtypesCore.h>
#include
<TObject.h>
#include
"Constants.h"
namespace
AnalysisTree
{
template
<
typename
T
>
class
ContainerConfig
{
public:
ContainerConfig
()
=
default
;
explicit
ContainerConfig
(
std
::
string
name
)
:
name_
(
std
::
move
(
name
))
{};
ContainerConfig
(
const
ContainerConfig
&
otherContainerConfig
)
=
default
;
ContainerConfig
(
ContainerConfig
&&
otherContainerConfig
)
=
default
;
ContainerConfig
&
operator
=
(
ContainerConfig
&&
)
=
default
;
ContainerConfig
&
operator
=
(
const
ContainerConfig
&
part
)
=
default
;
~
ContainerConfig
()
=
default
;
ShortInt_t
GetSize
()
const
{
return
map_
.
size
();
}
void
AddField
(
const
std
::
string
&
name
)
{
map_
.
insert
(
std
::
pair
<
std
::
string
,
ShortInt_t
>
(
name
,
map_
.
size
())
);
}
void
AddField
(
const
std
::
vector
<
std
::
string
>&
sname
)
{
for
(
const
auto
&
name
:
sname
){
map_
.
insert
(
std
::
pair
<
std
::
string
,
ShortInt_t
>
(
name
,
map_
.
size
())
);
}
}
ShortInt_t
GetId
(
const
std
::
string
&
sField
)
const
{
auto
search
=
map_
.
find
(
sField
);
if
(
search
!=
map_
.
end
()){
return
search
->
second
;
}
else
{
return
UndefValueShort
;
}
}
void
SetId
(
ShortInt_t
id
)
{
id_
=
id
;
}
ShortInt_t
GetId
()
const
{
return
id_
;
}
protected
:
std
::
map
<
std
::
string
,
ShortInt_t
>
map_
{};
ClassDef
(
ContainerConfig
::
BranchConfig
,
1
)
};
}
// AnalysisTree
#endif //ANALYSISTREE_BRANCHCONFIG_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment