| The Gaudi Framework v28r2-patches (bc4ad17a)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Public Attributes | List of all members
Gaudi::Details::Property::SwapCall Struct Reference

helper to disable a while triggering it, to avoid infinite recursion More...

`#include <GaudiKernel/Property.h>`

Collaboration diagram for Gaudi::Details::Property::SwapCall:
[legend]

## Public Types
using | callback_t = std::function< void(PropertyBase &)>

## Public Member Functions
| SwapCall (callback_t &input)
| ~SwapCall ()
void | operator() (PropertyBase &p) const

## Public Attributes
callback_t | tmp
callback_t & | orig

## Detailed Description

helper to disable a while triggering it, to avoid infinite recursion

Definition at line 243 of file Property.h.

## Member Typedef Documentation

using Gaudi::Details::Property::SwapCall::callback_t = std::function<void( PropertyBase& )>

Definition at line 244 of file Property.h.

## Constructor & Destructor Documentation

Gaudi::Details::Property::SwapCall::SwapCall | ( | callback_t & | input | ) |
| inline

Definition at line 246 of file Property.h.

246 : orig( input ) { tmp.swap( orig ); }
std::function::swap
T swap(T...args)
Gaudi::Details::Property::SwapCall::tmp
callback_t tmp
Definition: Property.h:245
Gaudi::Details::Property::SwapCall::orig
callback_t & orig
Definition: Property.h:245

Gaudi::Details::Property::SwapCall::~SwapCall | ( |  | ) |
| inline

Definition at line 247 of file Property.h.

247 { orig.swap( tmp ); }
std::function::swap
T swap(T...args)
Gaudi::Details::Property::SwapCall::tmp
callback_t tmp
Definition: Property.h:245
Gaudi::Details::Property::SwapCall::orig
callback_t & orig
Definition: Property.h:245

## Member Function Documentation

void Gaudi::Details::Property::SwapCall::operator() | ( | PropertyBase & | p | ) | const
| inline

Definition at line 248 of file Property.h.

248 { tmp( p ); }
Gaudi::Details::Property::SwapCall::tmp
callback_t tmp
Definition: Property.h:245

## Member Data Documentation

callback_t & Gaudi::Details::Property::SwapCall::orig

Definition at line 245 of file Property.h.

callback_t Gaudi::Details::Property::SwapCall::tmp

Definition at line 245 of file Property.h.

The documentation for this struct was generated from the following file:

- GaudiKernel/GaudiKernel/Property.h