1 #ifndef DataFormats_Common_FwdRef_h 2 #define DataFormats_Common_FwdRef_h 118 template <
typename C,
130 typedef typename boost::binary_traits<F>::second_argument_type
argument_type;
155 T
const*
get()
const {
156 if (
ref_.isAvailable() ) {
180 if ( getter )
return getter;
181 else return backRef_.productGetter();
209 #include "DataFormats/Common/interface/RefProd.h" 214 template <
typename C,
typename T,
typename F>
218 return ref_.isNonnull() && ref_.isAvailable() ?
220 backRef_.operator*();
224 template <
typename C,
typename T,
typename F>
228 return ref_.isNonnull() && ref_.isAvailable() ?
230 backRef_.operator->();
236 template <
typename C,
typename T,
typename F>
241 (lhs.
ref() == rhs.
ref() ) &&
248 template <
typename C,
typename T,
typename F>
253 (lhs == rhs.
ref() ) ||
260 template <
typename C,
typename T,
typename F>
265 (lhs.
ref() == rhs ) ||
272 template <
typename C,
typename T,
typename F>
276 return !(lhs == rhs);
279 template <
typename C,
typename T,
typename F>
283 return !(lhs == rhs);
286 template <
typename C,
typename T,
typename F>
290 return !(lhs == rhs);
295 template <
typename C,
typename T,
typename F>
299 return (lhs.ref() < rhs.ref() );
302 template <
typename C,
typename T,
typename F>
306 return (lhs < rhs.ref() );
309 template <
typename C,
typename T,
typename F>
313 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.