The Gaudi Framework
v28r1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
IncludedFiles.cpp
Go to the documentation of this file.
1
// ============================================================================
2
// STD:
3
// ============================================================================
4
#include <assert.h>
5
// ============================================================================
6
#include "
IncludedFiles.h
"
7
#include "
Position.h
"
8
// ============================================================================
9
namespace
gp
=
Gaudi::Parsers
;
10
// ============================================================================
11
bool
gp::IncludedFiles::IsIncluded(
const
std::string
&
filename
)
const
{
12
return
container_.find(filename) != container_.end();
13
}
14
// ============================================================================
15
bool
gp::IncludedFiles::AddFile(
std::string
filename
,
16
Position
from){
17
return
container_.emplace(
std::move
(filename),
std::move
(from)).second;
18
}
19
// ============================================================================
20
bool
gp::IncludedFiles::GetPosition(
const
std::string
&
filename
,
21
const
Position
** pos)
const
{
22
auto
iter = container_.find(filename);
23
if
(iter == container_.end())
return
false
;
24
*pos = &iter->second;
25
assert(pos);
26
return
true
;
27
}
28
// ============================================================================
IncludedFiles.h
graphanalysis.filename
string filename
Definition:
graphanalysis.py:109
std::string
STL class.
Gaudi::Parsers::Position
Definition:
Position.h:12
std::move
T move(T...args)
Position.h
Gaudi::Parsers
Definition:
DODBasicMapper.cpp:7
GaudiCoreSvc
src
JobOptionsSvc
IncludedFiles.cpp
Generated on Tue Feb 14 2017 13:19:48 for The Gaudi Framework by
1.8.11