Updates will be applied today, at 4 pm EDT (UTC-0400). No interruption, and site should remain available.

Xdmf.i 892 Bytes
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1 2 3 4 5 6 7 8 9
/*
XdmfPython.cpp:
swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
*/

%include std_string.i
%include std_vector.i

namespace boost {
10 11 12 13 14
  template<class T> class shared_ptr
  {
  public:
    T * operator-> () const;
  };
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
15 16 17 18
}

%template(XdmfGeometryPtr) boost::shared_ptr<XdmfGeometry>;
%template(XdmfGridPtr) boost::shared_ptr<XdmfGrid>;
19
%template(XdmfItemPtr) boost::shared_ptr<XdmfItem>;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
20 21
%template(XdmfObjPtr) boost::shared_ptr<XdmfObject>;
%template(XdmfTopologyPtr) boost::shared_ptr<XdmfTopology>;
22
%template(XdmfVisitorPtr) boost::shared_ptr<XdmfVisitor>;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
23 24 25

%module Xdmf
%{
26 27 28 29 30 31
  #include <XdmfGeometry.hpp>
  #include <XdmfGrid.hpp>
  #include <XdmfItem.hpp>
  #include <XdmfObject.hpp>
  #include <XdmfTopology.hpp>
  #include <XdmfVisitor.hpp>
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
32 33 34 35
%}

%include XdmfObject.hpp

36 37 38
%include XdmfItem.hpp
%include XdmfVisitor.hpp

Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
39 40 41
%include XdmfGeometry.hpp
%include XdmfGrid.hpp
%include XdmfTopology.hpp