1 #ifndef DataFormats_Common_HolderToVectorTrait_h 2 #define DataFormats_Common_HolderToVectorTrait_h 8 class RefVectorHolderBase;
9 template <
typename T>
class BaseVectorHolder;
11 template <
typename T,
typename REF>
15 "InvalidHolderToVector: trying to use RefToBase built with " 16 "an internal type. RefToBase should be built passing an " 17 "object of type edm::Ref<C>. This exception should never " 18 "be thrown if a RefToBase was built from a RefProd<C>.");
19 return std::unique_ptr<BaseVectorHolder<T> >();
23 template<
typename T,
typename REF>
29 template <
typename REF>
33 "InvalidRefHolderToRefVector: trying to use RefToBaseVector built with " 34 "an internal type. RefToBase should be built passing an " 35 "object of type edm::RefVector<C>");
36 return std::unique_ptr<RefVectorHolderBase>();
40 template<
typename REF>
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
static std::unique_ptr< RefVectorHolderBase > makeVectorHolder()
static std::unique_ptr< BaseVectorHolder< T > > makeVectorHolder()
InvalidRefHolderToRefVector< REF > type
InvalidHolderToVector< T, REF > type