Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
pyG4ParticleList.cc File Reference
#include <boost/python.hpp>
#include "G4ParticleTable.hh"

Go to the source code of this file.

Data Structures

class  PyG4ParticleList
 

Functions

void export_PyG4ParticleList ()
 

Function Documentation

void export_PyG4ParticleList ( )

Definition at line 85 of file pyG4ParticleList.cc.

References PyG4ParticleList::p_begin(), and PyG4ParticleList::p_end().

Referenced by BOOST_PYTHON_MODULE().

86 {
87  class_<PyG4ParticleList>("PyG4ParticleList", "particle list")
88  .def("__iter__", iterator<PyG4ParticleList::ParticleList>())
89  .add_property("particles", range(&PyG4ParticleList::p_begin,
91  ;
92 }
p_iterator p_begin()
p_iterator p_end()