Skip to content
Snippets Groups Projects
Commit 22f22a3b authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Merge branch 'dev/PropHelpers' into 'master'

Property helpers for DataHandles and derived classes

See merge request !365# Please enter a commit message to explain why this merge is necessary,
parents 98ceba03 cb66c2b4
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -594,6 +594,37 @@ namespace Gaudi ...@@ -594,6 +594,37 @@ namespace Gaudi
m_value -= other; m_value -= other;
return *this; return *this;
} }
/// Helpers for DataHandles and derived classes
template <class T = const ValueType>
inline decltype( std::declval<T>().key() ) key() const
{
return value().key();
}
template <class T = const ValueType>
inline decltype( std::declval<T>().objKey() ) objKey() const
{
return value().objKey();
}
template <class T = const ValueType>
inline decltype( std::declval<T>().fullKey() ) fullKey() const
{
return value().fullKey();
}
template <class T = ValueType>
inline decltype( std::declval<T>().initialize() ) initialize()
{
return value().initialize();
}
template <class T = ValueType>
inline decltype( std::declval<T>().makeHandles() ) makeHandles() const
{
return value().makeHandles();
}
template <class ARG, class T = ValueType>
inline decltype( std::declval<T>().makeHandles( std::declval<ARG>() ) ) makeHandles(const ARG& arg) const
{
return value().makeHandles(arg);
}
/// @} /// @}
// ========================================================================== // ==========================================================================
public: public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment