#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/JobOptionsSvc/Units.h>
|
bool | Add (std::string name, double value) |
|
bool | Add (std::string name, double value, const Position &pos) |
|
bool | Find (std::string_view name, ValueWithPosition &result) const |
|
bool | Find (std::string_view name, double &result) const |
|
Definition at line 19 of file Units.h.
◆ Container
◆ ValueWithPosition
◆ Add() [1/2]
bool Gaudi::Parsers::Units::Add |
( |
std::string | name, |
|
|
double | value ) |
Definition at line 15 of file Units.cpp.
15{
return Add( std::move( name ), value, Position() ); }
bool Add(std::string name, double value)
◆ Add() [2/2]
bool Gaudi::Parsers::Units::Add |
( |
std::string | name, |
|
|
double | value, |
|
|
const Position & | pos ) |
Definition at line 17 of file Units.cpp.
17 {
19}
Container::mapped_type ValueWithPosition
◆ Find() [1/2]
bool Gaudi::Parsers::Units::Find |
( |
std::string_view | name, |
|
|
double & | result ) const |
Definition at line 21 of file Units.cpp.
21 {
23 if ( !
Find( name, r ) )
return false;
24 result = r.first;
25 return true;
26}
bool Find(std::string_view name, ValueWithPosition &result) const
◆ Find() [2/2]
bool Gaudi::Parsers::Units::Find |
( |
std::string_view | name, |
|
|
ValueWithPosition & | result ) const |
Definition at line 28 of file Units.cpp.
28 {
29 auto it =
units_.find( name );
30 if ( it ==
units_.end() )
return false;
31 result = it->second;
32 return true;
33}
◆ units_
The documentation for this class was generated from the following files: