ReFRACtor
swig_type_mapper_base.h
Go to the documentation of this file.
1 #ifndef SWIG_TYPE_MAPPER_BASE_H
2 #define SWIG_TYPE_MAPPER_BASE_H
3 #include <Python.h>
4 #include <boost/shared_ptr.hpp>
5 #include <map>
6 #include <iostream>
7 #include "generic_object.h"
8 #include "fp_type_index.h"
9 
10 
11 namespace FullPhysics {
12 
13 /****************************************************************/
18 public:
19  virtual PyObject* to_python(const boost::shared_ptr<FullPhysics::GenericObject>& V) = 0;
20 };
21 
22 //-----------------------------------------------------------------------
25 //-----------------------------------------------------------------------
26 
27  extern std::map<type_index, boost::shared_ptr<SwigTypeMapperBase> > swig_type_map;
28 
29 }
30 #endif
virtual PyObject * to_python(const boost::shared_ptr< FullPhysics::GenericObject > &V)=0
std::map< type_index, boost::shared_ptr< SwigTypeMapperBase > > swig_type_map
Map to go from type_index to the SwigTypeMapperBase object associated with it.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
This is the base class that is used by fp_shared_ptr.i to map a shared_ptr to a python object...

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:11