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

Go to the source code of this file.

Enumerations

enum  Color { red =100, blue, yellow }
 

Functions

 BOOST_PYTHON_MODULE (test07)
 

Enumeration Type Documentation

enum Color
Enumerator
red 
blue 
yellow 

Definition at line 36 of file test07.cc.

36 { red=100, blue, yellow };
Definition: test07.cc:36
Definition: test07.cc:36
Definition: test07.cc:36

Function Documentation

BOOST_PYTHON_MODULE ( test07  )

Definition at line 44 of file test07.cc.

References blue, red, and yellow.

45 {
46  enum_<Color>("Color")
47  .value("red", red)
48  .value("blue", blue)
49  .value("yellow", yellow)
50  ;
51 }
Definition: test07.cc:36
Definition: test07.cc:36
Definition: test07.cc:36
const XML_Char int const XML_Char * value