bindings/python/chain.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Wed, 15 Apr 2009 14:17:21 -0700
branchdev
changeset 130 580eaa850c4f
parent 129 95454ea3f9c0
child 181 1ee6edc17cb6
permissions -rw-r--r--
Placed all Python bindings code into dionysus::python namespace

#include <boost/python.hpp>
#include <boost/python/iterator.hpp>
namespace bp = boost::python;

#include "chain.h"
namespace dp = dionysus::python;


void export_chain()
{
    bp::class_<dp::VChain>("Chain")
        .def("__iter__",    bp::iterator<dp::VChain>())
        .def("__len__",     &dp::VChain::size)
    ;
}