Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:51

0001 #ifndef DataFormats_Common_fwd_setPtr_h
0002 #define DataFormats_Common_fwd_setPtr_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Common
0006 // Class  :     setPtr
0007 //
0008 /**
0009  Description: Forward declare the standard setPtr functions
0010 
0011  Usage:
0012 
0013 */
0014 //
0015 // Original Author:  Chris Jones
0016 //         Created:  Sat Oct 20 11:45:38 CEST 2007
0017 //
0018 
0019 // user include files
0020 // system include files
0021 #include <typeinfo>
0022 #include <vector>
0023 #include <list>
0024 #include <set>
0025 #include <deque>
0026 
0027 // forward declarations
0028 namespace edm {
0029   template <typename T, typename A>
0030   void setPtr(std::vector<T, A> const& obj, std::type_info const& iToType, unsigned long iIndex, void const*& oPtr);
0031 
0032   template <typename T, typename A>
0033   void setPtr(std::list<T, A> const& obj, std::type_info const& iToType, unsigned long iIndex, void const*& oPtr);
0034 
0035   template <typename T, typename A>
0036   void setPtr(std::deque<T, A> const& obj, std::type_info const& iToType, unsigned long iIndex, void const*& oPtr);
0037 
0038   template <typename T, typename A, typename Comp>
0039   void setPtr(std::set<T, A, Comp> const& obj, std::type_info const& iToType, unsigned long iIndex, void const*& oPtr);
0040 
0041 }  // namespace edm
0042 
0043 #endif