The Gaudi Framework
v30r3 (a5ef0a68)
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
{
13
return
container_.find( filename ) != container_.end();
14
}
15
// ============================================================================
16
bool
gp::IncludedFiles::AddFile(
std::string
filename
,
Position
from )
17
{
18
return
container_.emplace(
std::move
( filename ),
std::move
( from ) ).second;
19
}
20
// ============================================================================
21
bool
gp::IncludedFiles::GetPosition(
const
std::string
&
filename
,
const
Position
** pos )
const
22
{
23
auto
iter = container_.find( filename );
24
if
( iter == container_.end() )
return
false
;
25
*pos = &iter->second;
26
assert( pos );
27
return
true
;
28
}
29
// ============================================================================
IncludedFiles.h
graphanalysis.filename
string filename
Definition:
graphanalysis.py:117
std::string
STL class.
Gaudi::Parsers::Position
Definition:
Position.h:15
std::move
T move(T...args)
Position.h
Gaudi::Parsers
Definition:
DODBasicMapper.cpp:8
GaudiCoreSvc
src
JobOptionsSvc
IncludedFiles.cpp
Generated on Wed Aug 1 2018 23:20:54 for The Gaudi Framework by
1.8.11