Geant4-11
Namespaces | Typedefs | Functions
pyglobals.cc File Reference
#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include "G4Version.hh"
#include "G4strstreambuf.hh"
#include "G4UImanager.hh"
#include "G4PyCoutDestination.hh"
#include "G4ThreeVector.hh"
#include "G4TwoVector.hh"
#include <vector>

Go to the source code of this file.

Namespaces

namespace  pyglobals
 

Typedefs

typedef std::vector< G4doublepyglobals::G4doubleVector
 
typedef std::vector< G4intpyglobals::G4intVector
 
typedef std::vector< G4Stringpyglobals::G4StringVector
 
typedef std::vector< G4ThreeVectorpyglobals::G4ThreeVectorVector
 
typedef std::vector< G4TwoVectorpyglobals::G4TwoVectorVector
 

Functions

void export_globals ()
 
void pyglobals::ResetG4PyCoutDestination ()
 
void pyglobals::SetG4PyCoutDestination ()
 

Function Documentation

◆ export_globals()

void export_globals ( )

Definition at line 76 of file pyglobals.cc.

77{
78 def("SetG4PyCoutDestination", SetG4PyCoutDestination);
79 def("ResetG4PyCoutDestination", ResetG4PyCoutDestination);
80
81 class_<G4intVector> ("G4intVector", "int vector")
82 .def(vector_indexing_suite<G4intVector>())
83 ;
84
85 class_<G4doubleVector> ("G4doubleVector", "double vector")
86 .def(vector_indexing_suite<G4doubleVector>())
87 ;
88
89 class_<G4StringVector> ("G4StringVector", "string vector")
90 .def(vector_indexing_suite<G4StringVector>())
91 ;
92
93 class_<G4ThreeVectorVector> ("G4ThreeVectorVector", "3-vector vector")
94 .def(vector_indexing_suite<G4ThreeVectorVector>())
95 ;
96
97 class_<G4TwoVectorVector> ("G4StringVector", "2-vector vector")
98 .def(vector_indexing_suite<G4TwoVectorVector>())
99 ;
100
101}
void ResetG4PyCoutDestination()
Definition: pyglobals.cc:57
void SetG4PyCoutDestination()
Definition: pyglobals.cc:49

References pyglobals::ResetG4PyCoutDestination(), and pyglobals::SetG4PyCoutDestination().

Referenced by BOOST_PYTHON_MODULE().