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