Go to the documentation of this file.00001 #ifndef DataFormats_Common_RefHolder_h
00002 #define DataFormats_Common_RefHolder_h
00003 #include "DataFormats/Common/interface/RefHolder_.h"
00004
00005 #include "DataFormats/Common/interface/IndirectVectorHolder.h"
00006 #include "DataFormats/Common/interface/RefVectorHolder.h"
00007 #include "DataFormats/Common/interface/RefVector.h"
00008 #include "DataFormats/Common/interface/HolderToVectorTrait.h"
00009 #include <memory>
00010
00011 namespace edm {
00012 namespace reftobase {
00013 template <class REF>
00014 std::auto_ptr<RefVectorHolderBase> RefHolder<REF>::makeVectorHolder() const {
00015 typedef typename RefHolderToRefVectorTrait<REF>::type helper;
00016 return helper::makeVectorHolder();
00017 }
00018 }
00019 }
00020
00021 #include "DataFormats/Common/interface/RefKeyTrait.h"
00022
00023 namespace edm {
00024 namespace reftobase {
00025 template <class REF>
00026 size_t
00027 RefHolder<REF>::key() const
00028 {
00029 typedef typename RefKeyTrait<REF>::type helper;
00030 return helper::key( ref_ );
00031 }
00032
00033 }
00034 }
00035
00036 #endif