Skip to content

Commit 2eae917

Browse files
committed
bring back and deprecate linkCollTypeName and linkTypeName
1 parent aa5e37f commit 2eae917

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

include/podio/detail/LinkCollectionImpl.h

+20
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,27 @@ void to_json(nlohmann::json& j, const podio::LinkCollection<FromT, ToT>& collect
405405
}
406406
}
407407
#endif
408+
namespace detail {
409+
/// Get the collection type name for a LinkCollection
410+
///
411+
/// @tparam FromT the From type of the link
412+
/// @tparam ToT the To type of the link
413+
/// @returns a type string that is a valid c++ template instantiation
414+
template <typename FromT, typename ToT>
415+
[[deprecated("Use LinkCollection<FromT, ToT>::typeName instead")]] inline const std::string_view linkCollTypeName() {
416+
return LinkCollection<FromT, ToT>::typeName;
417+
}
408418

419+
/// Get the value type name for a LinkCollection
420+
///
421+
/// @tparam FromT the From type of the link
422+
/// @tparam ToT the To type of the link
423+
/// @returns a type string that is a valid c++ template instantiation
424+
template <typename FromT, typename ToT>
425+
[[deprecated("Use LinkCollection<FromT, ToT>::valueTypeName instead")]] inline const std::string_view linkTypeName() {
426+
return LinkCollection<FromT, ToT>::valueTypeName;
427+
}
428+
} // namespace detail
409429
} // namespace podio
410430

411431
#endif // PODIO_DETAIL_LINKCOLLECTIONIMPL_H

0 commit comments

Comments
 (0)