bindings/python/chain.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Wed, 12 Aug 2009 11:32:42 -0700
branchdev
changeset 161 4bfb7c31ab28
parent 130 580eaa850c4f
child 181 1ee6edc17cb6
permissions -rw-r--r--
make-zigzag-subsamples.py doesn't output the union, rips-consistency-zigzag.cpp fixed show_progress

#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)
    ;
}