Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
#ifndef DataFormats_Common_fwd_setPtr_h
#define DataFormats_Common_fwd_setPtr_h
// -*- C++ -*-
//
// Package:     Common
// Class  :     setPtr
//
/**
 Description: Forward declare the standard setPtr functions

 Usage:

*/
//
// Original Author:  Chris Jones
//         Created:  Sat Oct 20 11:45:38 CEST 2007
//

// user include files
// system include files
#include <typeinfo>
#include <vector>
#include <list>
#include <set>
#include <deque>

// forward declarations
namespace edm {
  template <typename T, typename A>
  void setPtr(std::vector<T, A> const& obj, std::type_info const& iToType, unsigned long iIndex, void const*& oPtr);

  template <typename T, typename A>
  void setPtr(std::list<T, A> const& obj, std::type_info const& iToType, unsigned long iIndex, void const*& oPtr);

  template <typename T, typename A>
  void setPtr(std::deque<T, A> const& obj, std::type_info const& iToType, unsigned long iIndex, void const*& oPtr);

  template <typename T, typename A, typename Comp>
  void setPtr(std::set<T, A, Comp> const& obj, std::type_info const& iToType, unsigned long iIndex, void const*& oPtr);

}  // namespace edm

#endif