The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Details::Property::SwapCall Struct Reference

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

#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Details/Property.h>

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 170 of file Property.h.

Member Typedef Documentation

◆ callback_t

Definition at line 171 of file Property.h.

Constructor & Destructor Documentation

◆ SwapCall()

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

Definition at line 173 of file Property.h.

173: orig( input ) { tmp.swap( orig ); }

◆ ~SwapCall()

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

Definition at line 174 of file Property.h.

174{ orig.swap( tmp ); }

Member Function Documentation

◆ operator()()

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

Definition at line 175 of file Property.h.

175{ tmp( p ); }

Member Data Documentation

◆ orig

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

Definition at line 172 of file Property.h.

◆ tmp

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

Definition at line 172 of file Property.h.


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