CMS 3D CMS Logo

List of all members | Static Public Member Functions
edm::reftobase::InvalidHolderToVector< T, REF > Struct Template Reference

#include <HolderToVectorTrait.h>

Static Public Member Functions

static std::unique_ptr< BaseVectorHolder< T > > makeVectorHolder ()
 

Detailed Description

template<typename T, typename REF>
struct edm::reftobase::InvalidHolderToVector< T, REF >

Definition at line 12 of file HolderToVectorTrait.h.

Member Function Documentation

template<typename T , typename REF >
static std::unique_ptr<BaseVectorHolder<T> > edm::reftobase::InvalidHolderToVector< T, REF >::makeVectorHolder ( )
inlinestatic

Definition at line 13 of file HolderToVectorTrait.h.

References edm::errors::InvalidReference, and edm::Exception::throwThis().

13  {
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> >();
20  }
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
Definition: EDMException.cc:83