-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Association to Link after EDM4hep discussion
- Loading branch information
Showing
25 changed files
with
1,057 additions
and
1,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef PODIO_LINKCOLLECTION_H | ||
#define PODIO_LINKCOLLECTION_H | ||
|
||
#include "podio/detail/LinkCollectionImpl.h" | ||
|
||
// Preprocessor helper macros for concatenating tokens at preprocessing times | ||
// Necessary because we use __COUNTER__ below for unique names of static | ||
// variables for values returned by registration function calls | ||
#define PODIO_PP_CONCAT_IMPL(x, y) x##y | ||
#define PODIO_PP_CONCAT(x, y) PODIO_PP_CONCAT_IMPL(x, y) | ||
|
||
#ifndef PODIO_ENABLE_SIO | ||
#define PODIO_ENABLE_SIO 0 | ||
#endif | ||
|
||
#if PODIO_ENABLE_SIO && __has_include("podio/detail/LinkSIOBlock.h") | ||
#include "podio/detail/LinkSIOBlock.h" | ||
/// Main macro for declaring links. Takes care of the following things: | ||
/// - Registering the necessary buffer creation functionality with the | ||
/// CollectionBufferFactory. | ||
/// - Registering the necessary SIOBlock with the SIOBlock factory | ||
#define PODIO_DECLARE_LINK(FromT, ToT) \ | ||
const static auto PODIO_PP_CONCAT(REGISTERED_LINK_, __COUNTER__) = \ | ||
podio::detail::registerLinkCollection<FromT, ToT>(podio::detail::linkCollTypeName<FromT, ToT>()); \ | ||
const static auto PODIO_PP_CONCAT(LINK_SIO_BLOCK_, __COUNTER__) = podio::LinkSIOBlock<FromT, ToT>{}; | ||
#else | ||
/// Main macro for declaring links. Takes care of the following things: | ||
/// - Registering the necessary buffer creation functionality with the | ||
/// CollectionBufferFactory. | ||
#define PODIO_DECLARE_LINK(FromT, ToT) \ | ||
const static auto PODIO_PP_CONCAT(REGISTERED_LINK_, __COUNTER__) = \ | ||
podio::detail::registerLinkCollection<FromT, ToT>(podio::detail::linkCollTypeName<FromT, ToT>()); | ||
#endif | ||
|
||
#endif // PODIO_LINKCOLLECTION_H |
Oops, something went wrong.