The Gaudi Framework  master (594c33fa)
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>

Collaboration diagram for Gaudi::Details::Property::SwapCall:

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_torig
 

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

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:
std::function::swap
T swap(T... args)
Gaudi::Details::Property::SwapCall::tmp
callback_t tmp
Definition: Property.h:172
Gaudi::Details::Property::SwapCall::orig
callback_t & orig
Definition: Property.h:172