#include <Ref.h>
Public Types | |
typedef boost::binary_traits< F >::second_argument_type | argument_type |
typedef value_type const | element_type |
typedef refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value | finder_type |
typedef unsigned int | key_type |
typedef std::vector< E > | product_type |
for export More... | |
typedef refhelper::ValueTrait< std::vector< E > >::value | value_type |
Public Member Functions | |
T const * | get () const |
Returns C++ pointer to the item. More... | |
bool | hasProductCache () const |
Returns true if container referenced by the Ref has been cached. More... | |
ProductID | id () const |
Accessor for product ID. More... | |
key_type | index () const |
bool | isAvailable () const |
bool | isNonnull () const |
Checks for non-null. More... | |
bool | isNull () const |
Checks for null. More... | |
bool | isTransient () const |
Checks if this ref is transient (i.e. not persistable). More... | |
key_type | key () const |
Accessor for product key. More... | |
bool | operator! () const |
Checks for null. More... | |
T const & | operator* () const |
Dereference operator. More... | |
T const * | operator-> () const |
Member dereference operator. More... | |
EDProductGetter const * | productGetter () const |
Accessor for product getter. More... | |
Ref () | |
Default constructor needed for reading from persistent store. Not for direct use. More... | |
Ref (Handle< product_type > const &handle, key_type itemKey, bool setNow=true) | |
General purpose constructor from handle. More... | |
Ref (OrphanHandle< product_type > const &handle, key_type itemKey, bool setNow=true) | |
General purpose constructor from orphan handle. More... | |
Ref (product_type const *product, key_type itemKey, bool setNow=true) | |
Constructors for ref to object that is not in an event. More... | |
Ref (TestHandle< product_type > const &handle, key_type itemKey, bool setNow=true) | |
Constructor from test handle. More... | |
Ref (ProductID const &productID, key_type itemKey, EDProductGetter const *prodGetter) | |
Ref (ProductID const &iProductID, T const *item, key_type itemKey, product_type const *) | |
Constructor for use in the various X::fillView(...) functions. More... | |
Ref (ProductID const &iProductID, T const *item, key_type itemKey) | |
Ref (ProductID const &iProductID, T const *item, key_type itemKey, bool transient) | |
Ref (ProductID const &iId) | |
Ref (RefProd< product_type > const &refProd, key_type itemKey) | |
Constructor from RefProd<C> and key. More... | |
Ref (RefCore const &iRefCore, key_type const &iKey) | |
RefCore const & | refCore () const |
~Ref () | |
Destructor. More... | |
Static Public Member Functions | |
static short | Class_Version () |
static key_type | invalidKey () |
Private Types | |
typedef refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value | F |
typedef refhelper::ValueTrait< std::vector< E > >::value | T |
typedef refhelper::FindRefVectorUsingAdvance< RefToBaseVector< T > > | VBF |
typedef refhelper::FindRefVectorUsingAdvance< RefVector< std::vector< E >, T, F > > | VF |
Private Member Functions | |
void | checkTypeAtCompileTime (product_type const *) |
Private Attributes | |
RefCoreWithIndex | product_ |
typedef boost::binary_traits<F>::second_argument_type edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::argument_type |
typedef value_type const edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::element_type |
|
private |
typedef refhelper::FindTrait<std::vector<E>, typename refhelper::ValueTrait<std::vector<E> >::value>::value edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::finder_type |
typedef unsigned int edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::key_type |
typedef std::vector<E> edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::product_type |
|
private |
typedef refhelper::ValueTrait<std::vector<E> >::value edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::value_type |
|
private |
|
private |
|
inline |
Default constructor needed for reading from persistent store. Not for direct use.
Definition at line 331 of file Ref.h.
References cmsBatch::handle, and edm::Ref< C, T, F >::Ref().
edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::Ref | ( | Handle< product_type > const & | handle, |
key_type | itemKey, | ||
bool | setNow = true |
||
) |
General purpose constructor from handle.
edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::Ref | ( | OrphanHandle< product_type > const & | handle, |
key_type | itemKey, | ||
bool | setNow = true |
||
) |
General purpose constructor from orphan handle.
edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::Ref | ( | product_type const * | product, |
key_type | itemKey, | ||
bool | setNow = true |
||
) |
Constructors for ref to object that is not in an event.
edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::Ref | ( | TestHandle< product_type > const & | handle, |
key_type | itemKey, | ||
bool | setNow = true |
||
) |
Constructor from test handle.
|
inline |
Constructor for those users who do not have a product handle, but have a pointer to a product getter (such as the EventPrincipal). prodGetter will ususally be a pointer to the event principal.
Definition at line 354 of file Ref.h.
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
Constructor that creates an invalid ("null") Ref that is associated with a given product (denoted by that product's ProductID).
Definition at line 381 of file Ref.h.
References edm::Ref< C, T, F >::Ref().
edm::Ref< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value, typename refhelper::FindTrait< std::vector< E >, typename refhelper::ValueTrait< std::vector< E > >::value >::value >::Ref | ( | RefProd< product_type > const & | refProd, |
key_type | itemKey | ||
) |
Constructor from RefProd<C> and key.
|
inline |
Destructor.
Definition at line 389 of file Ref.h.
References edm::Ref< C, T, F >::operator*(), and edm::Ref< C, T, F >::operator->().
|
inline |
|
inlineprivate |
|
inlinestatic |
|
inline |
Returns C++ pointer to the item.
Definition at line 400 of file Ref.h.
References edm::Ref< C, T, F >::isNull(), and edm::Ref< C, T, F >::operator->().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().
|
inline |
Returns true if container referenced by the Ref has been cached.
Definition at line 426 of file Ref.h.
References edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::product_, and edm::RefCore::productPtr().
|
inline |
Accessor for product ID.
Definition at line 414 of file Ref.h.
References edm::RefCore::id(), and edm::Ref< C, T, F >::product_.
|
inline |
Definition at line 423 of file Ref.h.
References edm::Ref< C, T, F >::product_.
Referenced by BeautifulSoup.PageElement::insert().
|
inlinestatic |
|
inline |
Checks if collection is in memory or available in the Event. No type checking is done.
Definition at line 585 of file Ref.h.
References edm::RefCore::isAvailable(), edm::Ref< C, T, F >::key(), and edm::Ref< C, T, F >::product_.
|
inline |
Checks for non-null.
Definition at line 408 of file Ref.h.
References edm::Ref< C, T, F >::key().
|
inline |
Checks for null.
Definition at line 405 of file Ref.h.
References edm::Ref< C, T, F >::isNonnull().
|
inline |
Checks if this ref is transient (i.e. not persistable).
Definition at line 433 of file Ref.h.
References edm::RefCore::isTransient(), and edm::Ref< C, T, F >::product_.
|
inline |
Accessor for product key.
Definition at line 420 of file Ref.h.
References edm::Ref< C, T, F >::product_.
|
inline |
|
inline |
Dereference operator.
Definition at line 602 of file Ref.h.
References edm::Ref< C, T, F >::key(), and edm::Ref< C, T, F >::product_.
|
inline |
Member dereference operator.
Definition at line 616 of file Ref.h.
References edm::Ref< C, T, F >::key(), and edm::Ref< C, T, F >::product_.
|
inline |
Accessor for product getter.
Definition at line 417 of file Ref.h.
References edm::Ref< C, T, F >::product_, and edm::RefCore::productGetter().
|
inline |
|
friend |
|
private |