The Gaudi Framework  v37r0 (b608885e)
Gaudi::Details::Property::ReadHandler Struct Reference

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

Inheritance diagram for Gaudi::Details::Property::ReadHandler:
Collaboration diagram for Gaudi::Details::Property::ReadHandler:

Public Member Functions

void useReadHandler (const PropertyBase &p) const
 
void setReadHandler (std::function< void(PropertyBase &)> fun)
 
std::function< void(PropertyBase &)> getReadHandler () const
 
- Public Member Functions inherited from Gaudi::Details::Property::NoHandler
void useReadHandler (const PropertyBase &) const
 
void setReadHandler (std::function< void(PropertyBase &)>)
 
std::function< void(PropertyBase &)> getReadHandler () const
 
void useUpdateHandler (const PropertyBase &) const
 
void setUpdateHandler (std::function< void(PropertyBase &)>)
 
std::function< void(PropertyBase &)> getUpdateHandler () const
 

Public Attributes

std::function< void(PropertyBase &)> m_readCallBack
 

Detailed Description

Definition at line 190 of file Property.h.

Member Function Documentation

◆ getReadHandler()

std::function<void( PropertyBase& )> Gaudi::Details::Property::ReadHandler::getReadHandler ( ) const
inline

Definition at line 196 of file Property.h.

196 { return m_readCallBack; }

◆ setReadHandler()

void Gaudi::Details::Property::ReadHandler::setReadHandler ( std::function< void(PropertyBase &)>  fun)
inline

Definition at line 195 of file Property.h.

195 { m_readCallBack = std::move( fun ); }

◆ useReadHandler()

void Gaudi::Details::Property::ReadHandler::useReadHandler ( const PropertyBase p) const
inline

Definition at line 192 of file Property.h.

192  {
193  if ( m_readCallBack ) { SwapCall{ m_readCallBack }( const_cast<PropertyBase&>( p ) ); }
194  }

Member Data Documentation

◆ m_readCallBack

std::function<void( PropertyBase& )> Gaudi::Details::Property::ReadHandler::m_readCallBack
mutable

Definition at line 191 of file Property.h.


The documentation for this struct was generated from the following file:
std::move
T move(T... args)
Gaudi::Details::Property::ReadHandler::m_readCallBack
std::function< void(PropertyBase &)> m_readCallBack
Definition: Property.h:191