1 #ifndef DataFormats_Common_FwdRef_h 2 #define DataFormats_Common_FwdRef_h 120 template <
typename C,
132 typedef typename boost::binary_traits<F>::second_argument_type
argument_type;
157 T
const*
get()
const {
158 if (
ref_.isAvailable() ) {
182 if ( getter )
return getter;
183 else return backRef_.productGetter();
211 #include "DataFormats/Common/interface/RefProd.h" 216 template <
typename C,
typename T,
typename F>
220 return ref_.isNonnull() && ref_.isAvailable() ?
222 backRef_.operator*();
226 template <
typename C,
typename T,
typename F>
230 return ref_.isNonnull() && ref_.isAvailable() ?
232 backRef_.operator->();
238 template <
typename C,
typename T,
typename F>
243 (lhs.
ref() == rhs.
ref() ) &&
250 template <
typename C,
typename T,
typename F>
255 (lhs == rhs.
ref() ) ||
262 template <
typename C,
typename T,
typename F>
267 (lhs.
ref() == rhs ) ||
274 template <
typename C,
typename T,
typename F>
278 return !(lhs == rhs);
281 template <
typename C,
typename T,
typename F>
285 return !(lhs == rhs);
288 template <
typename C,
typename T,
typename F>
292 return !(lhs == rhs);
297 template <
typename C,
typename T,
typename F>
301 return (lhs.ref() < rhs.ref() );
304 template <
typename C,
typename T,
typename F>
308 return (lhs < rhs.ref() );
311 template <
typename C,
typename T,
typename F>
315 return (lhs.ref() < rhs );
#define CMS_CLASS_VERSION(_version_)
bool operator!() const
Checks for null.
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
key_type key() const
Accessor for product key.
EDProductGetter const * productGetter() const
Accessor for product getter.
bool isNull() const
Checks for null.
T const * operator->() const
Member dereference operator.
bool hasProductCache() const
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
bool isNull() const
Checks for null.
bool isNonnull() const
Checks for non-null.
FwdRef()
Default constructor needed for reading from persistent store. Not for direct use. ...
FwdRef(Ref< C, T, F > const &ref, Ref< C, T, F > const &backRef)
General purpose constructor from 2 refs (forward and backward.
bool isTransient() const
Checks if this ref is transient (i.e. not persistable).
Ref< C, T, F > const & backRef() const
Ref< C, T, F > const & ref() const
FindUsingAdvance< C, T > value
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
boost::remove_cv< typename boost::remove_reference< argument_type >::type >::type key_type
boost::binary_traits< F >::second_argument_type argument_type
ProductID id() const
Accessor for product ID.
T const & operator*() const
Dereference operator.