ATLAS Offline Software
Loading...
Searching...
No Matches
ConfiguredValue.h File Reference
#include <iostream>
Include dependency graph for ConfiguredValue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ConfiguredValue< T, UnsetResult >

Macros

#define GENERATOR(OP)
#define OPERATOR_GENERATOR(OP)
#define REV_OPERATOR_GENERATOR(OP, REVOP)

Functions

template<typename T, bool UnsetResult = false>
std::ostream & operator<< (std::ostream &s, const ConfiguredValue< T > &p)

Detailed Description

Author
sutt
Date
Tue 8 Sep 2026 12:34:40 BST
Id
ConfiguredValue.h, v0.0 Tue 8 Sep 2026 12:34:40 BST sutt

Copyright (C) 2026 sutt (sutt@.nosp@m.cern.nosp@m..ch)
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration

Definition in file ConfiguredValue.h.

Macro Definition Documentation

◆ GENERATOR

#define GENERATOR ( OP)
Value:
{ if ( !isset() ) return UnsetResult; return m_value OP a; }
bool isset(const Gaudi::Property< ConfiguredValue< T, UnsetResult > > &p)
static Double_t a

Definition at line 20 of file ConfiguredValue.h.

◆ OPERATOR_GENERATOR

#define OPERATOR_GENERATOR ( OP)
Value:
template<typename U> bool operator OP ( const U& a ) const GENERATOR(OP)
#define GENERATOR(OP)

Definition at line 22 of file ConfiguredValue.h.

◆ REV_OPERATOR_GENERATOR

#define REV_OPERATOR_GENERATOR ( OP,
REVOP )
Value:
template<typename T, typename U> bool operator OP ( const U& a, const ConfiguredValue<T>& p ) { return p REVOP a; }

Definition at line 23 of file ConfiguredValue.h.

Function Documentation

◆ operator<<()

template<typename T, bool UnsetResult = false>
std::ostream & operator<< ( std::ostream & s,
const ConfiguredValue< T > & p )

Definition at line 75 of file ConfiguredValue.h.

75 {
76 if (p.isset()) return s << (T)p;
77 return s << "not set";
78}