// File: std/stl_vector.cpp #include // CFace #include // CFace::CFace #include // CFace::operator= #include // CFace::operator[] #include // CFace::setIndices #include // InfoAtVertex #include // InfoAtVertex::InfoAtVertex #include // InfoAtVertex::operator= #include // QuoteInfoAtVertex #include // QuoteInfoAtVertex::QuoteInfoAtVertex #include // QuoteInfoAtVertex::operator= #include // CPoint3D #include // CPoint3D::CPoint3D #include // CPoint3D::Len #include // CPoint3D::Normalize #include // CPoint3D::operator*= #include // CPoint3D::operator+= #include // CPoint3D::operator-= #include // CPoint3D::operator/ #include // CPoint3D::operator/= #include // CPoint3D::operator= #include // CPoint3D::operator== #include // InfoAtAngle #include // InfoAtAngle::InfoAtAngle #include // InfoAtAngle::operator= #include // QuoteWindow #include // QuoteWindow::QuoteWindow #include // QuoteWindow::operator= #include // CEdge #include // CEdge::CEdge #include // CEdge::operator= #include // CRichModel #include // EdgePoint #include // EdgePoint::EdgePoint #include // EdgePoint::Get3DPoint #include // EdgePoint::operator= #include // std::initializer_list #include // std::initializer_list::begin #include // std::initializer_list::end #include // std::initializer_list::initializer_list #include // std::initializer_list::size #include // std::initializer_list::begin #include // std::initializer_list::end #include // std::initializer_list::initializer_list #include // std::initializer_list::size #include // std::initializer_list::begin #include // std::initializer_list::end #include // std::initializer_list::initializer_list #include // std::initializer_list::size #include // std::initializer_list::begin #include // std::initializer_list::end #include // std::initializer_list::initializer_list #include // std::initializer_list::size #include // std::initializer_list::begin #include // std::initializer_list::end #include // std::initializer_list::initializer_list #include // std::initializer_list::size #include // std::initializer_list::begin #include // std::initializer_list::end #include // std::initializer_list::initializer_list #include // std::initializer_list::size #include // std::initializer_list >::begin #include // std::initializer_list >::end #include // std::initializer_list >::initializer_list #include // std::initializer_list >::size #include // __gnu_cxx::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::base #include // __gnu_cxx::__normal_iterator > >::operator* #include // __gnu_cxx::__normal_iterator > >::operator+ #include // __gnu_cxx::__normal_iterator > >::operator++ #include // __gnu_cxx::__normal_iterator > >::operator+= #include // __gnu_cxx::__normal_iterator > >::operator- #include // __gnu_cxx::__normal_iterator > >::operator-- #include // __gnu_cxx::__normal_iterator > >::operator-= #include // __gnu_cxx::__normal_iterator > >::operator[] #include // __gnu_cxx::__normal_iterator > >::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::base #include // __gnu_cxx::__normal_iterator > >::operator* #include // __gnu_cxx::__normal_iterator > >::operator+ #include // __gnu_cxx::__normal_iterator > >::operator++ #include // __gnu_cxx::__normal_iterator > >::operator+= #include // __gnu_cxx::__normal_iterator > >::operator- #include // __gnu_cxx::__normal_iterator > >::operator-- #include // __gnu_cxx::__normal_iterator > >::operator-= #include // __gnu_cxx::__normal_iterator > >::operator[] #include // __gnu_cxx::__normal_iterator > >::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::base #include // __gnu_cxx::__normal_iterator > >::operator* #include // __gnu_cxx::__normal_iterator > >::operator+ #include // __gnu_cxx::__normal_iterator > >::operator++ #include // __gnu_cxx::__normal_iterator > >::operator+= #include // __gnu_cxx::__normal_iterator > >::operator- #include // __gnu_cxx::__normal_iterator > >::operator-- #include // __gnu_cxx::__normal_iterator > >::operator-= #include // __gnu_cxx::__normal_iterator > >::operator[] #include // __gnu_cxx::__normal_iterator > >::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::base #include // __gnu_cxx::__normal_iterator > >::operator* #include // __gnu_cxx::__normal_iterator > >::operator+ #include // __gnu_cxx::__normal_iterator > >::operator++ #include // __gnu_cxx::__normal_iterator > >::operator+= #include // __gnu_cxx::__normal_iterator > >::operator- #include // __gnu_cxx::__normal_iterator > >::operator-- #include // __gnu_cxx::__normal_iterator > >::operator-= #include // __gnu_cxx::__normal_iterator > >::operator[] #include // __gnu_cxx::__normal_iterator > >::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::base #include // __gnu_cxx::__normal_iterator > >::operator* #include // __gnu_cxx::__normal_iterator > >::operator+ #include // __gnu_cxx::__normal_iterator > >::operator++ #include // __gnu_cxx::__normal_iterator > >::operator+= #include // __gnu_cxx::__normal_iterator > >::operator- #include // __gnu_cxx::__normal_iterator > >::operator-- #include // __gnu_cxx::__normal_iterator > >::operator-= #include // __gnu_cxx::__normal_iterator > >::operator[] #include // __gnu_cxx::__normal_iterator > >::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::base #include // __gnu_cxx::__normal_iterator > >::operator* #include // __gnu_cxx::__normal_iterator > >::operator+ #include // __gnu_cxx::__normal_iterator > >::operator++ #include // __gnu_cxx::__normal_iterator > >::operator+= #include // __gnu_cxx::__normal_iterator > >::operator- #include // __gnu_cxx::__normal_iterator > >::operator-- #include // __gnu_cxx::__normal_iterator > >::operator-= #include // __gnu_cxx::__normal_iterator > >::operator[] #include // __gnu_cxx::__normal_iterator > >::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::base #include // __gnu_cxx::__normal_iterator > >::operator* #include // __gnu_cxx::__normal_iterator > >::operator+ #include // __gnu_cxx::__normal_iterator > >::operator++ #include // __gnu_cxx::__normal_iterator > >::operator+= #include // __gnu_cxx::__normal_iterator > >::operator- #include // __gnu_cxx::__normal_iterator > >::operator-- #include // __gnu_cxx::__normal_iterator > >::operator-= #include // __gnu_cxx::__normal_iterator > >::operator[] #include // __gnu_cxx::__normal_iterator > >::__normal_iterator #include // __gnu_cxx::__normal_iterator > >::base #include // __gnu_cxx::__normal_iterator > >::operator* #include // __gnu_cxx::__normal_iterator > >::operator+ #include // __gnu_cxx::__normal_iterator > >::operator++ #include // __gnu_cxx::__normal_iterator > >::operator+= #include // __gnu_cxx::__normal_iterator > >::operator- #include // __gnu_cxx::__normal_iterator > >::operator-- #include // __gnu_cxx::__normal_iterator > >::operator-= #include // __gnu_cxx::__normal_iterator > >::operator[] #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::__normal_iterator #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::base #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::operator* #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::operator+ #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::operator++ #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::operator+= #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::operator- #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::operator-- #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::operator-= #include // __gnu_cxx::__normal_iterator *, std::vector, std::allocator > > >::operator[] #include // std::reverse_iterator #include // std::reverse_iterator::base #include // std::reverse_iterator::operator* #include // std::reverse_iterator::operator+ #include // std::reverse_iterator::operator++ #include // std::reverse_iterator::operator+= #include // std::reverse_iterator::operator- #include // std::reverse_iterator::operator-- #include // std::reverse_iterator::operator-= #include // std::reverse_iterator::operator[] #include // std::reverse_iterator::reverse_iterator #include // std::reverse_iterator::base #include // std::reverse_iterator::operator* #include // std::reverse_iterator::operator+ #include // std::reverse_iterator::operator++ #include // std::reverse_iterator::operator+= #include // std::reverse_iterator::operator- #include // std::reverse_iterator::operator-- #include // std::reverse_iterator::operator-= #include // std::reverse_iterator::operator[] #include // std::reverse_iterator::reverse_iterator #include // std::_List_const_iterator #include // std::_List_iterator #include // std::__cxx11::list #include // std::__cxx11::list >::assign #include // std::__cxx11::list >::back #include // std::__cxx11::list >::begin #include // std::__cxx11::list >::cbegin #include // std::__cxx11::list >::cend #include // std::__cxx11::list >::clear #include // std::__cxx11::list >::empty #include // std::__cxx11::list >::end #include // std::__cxx11::list >::erase #include // std::__cxx11::list >::front #include // std::__cxx11::list >::get_allocator #include // std::__cxx11::list >::insert #include // std::__cxx11::list >::list #include // std::__cxx11::list >::max_size #include // std::__cxx11::list >::merge #include // std::__cxx11::list >::operator= #include // std::__cxx11::list >::pop_back #include // std::__cxx11::list >::pop_front #include // std::__cxx11::list >::push_back #include // std::__cxx11::list >::push_front #include // std::__cxx11::list >::remove #include // std::__cxx11::list >::resize #include // std::__cxx11::list >::reverse #include // std::__cxx11::list >::size #include // std::__cxx11::list >::sort #include // std::__cxx11::list >::splice #include // std::__cxx11::list >::swap #include // std::__cxx11::list >::unique #include // std::allocator #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator::allocator #include // std::allocator::allocator #include // std::allocator::operator= #include // std::allocator > >::allocator #include // std::allocator > >::operator= #include // std::allocator >::allocator #include // std::allocator >::operator= #include // std::allocator, std::allocator > > >::allocator #include // std::allocator, std::allocator > > >::operator= #include // __str__ #include // std::pair #include // std::pair::pair #include // std::_Bit_const_iterator #include // std::_Bit_const_iterator::_Bit_const_iterator #include // std::_Bit_const_iterator::_M_const_cast #include // std::_Bit_const_iterator::operator* #include // std::_Bit_const_iterator::operator+ #include // std::_Bit_const_iterator::operator++ #include // std::_Bit_const_iterator::operator+= #include // std::_Bit_const_iterator::operator- #include // std::_Bit_const_iterator::operator-- #include // std::_Bit_const_iterator::operator-= #include // std::_Bit_const_iterator::operator[] #include // std::_Bit_iterator #include // std::_Bit_iterator::_Bit_iterator #include // std::_Bit_iterator::_M_const_cast #include // std::_Bit_iterator::operator* #include // std::_Bit_iterator::operator+ #include // std::_Bit_iterator::operator++ #include // std::_Bit_iterator::operator+= #include // std::_Bit_iterator::operator- #include // std::_Bit_iterator::operator-- #include // std::_Bit_iterator::operator-= #include // std::_Bit_iterator::operator= #include // std::_Bit_iterator::operator[] #include // std::_Bit_reference #include // std::_Bit_reference::_Bit_reference #include // std::_Bit_reference::flip #include // std::_Bit_reference::operator= #include // std::_Bit_reference::operator== #include // std::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::crbegin #include // std::vector >::crend #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::flip #include // std::vector >::front #include // std::vector >::get_allocator #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::rbegin #include // std::vector >::rend #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >, std::allocator > > >::assign #include // std::vector >, std::allocator > > >::at #include // std::vector >, std::allocator > > >::back #include // std::vector >, std::allocator > > >::begin #include // std::vector >, std::allocator > > >::capacity #include // std::vector >, std::allocator > > >::cbegin #include // std::vector >, std::allocator > > >::cend #include // std::vector >, std::allocator > > >::clear #include // std::vector >, std::allocator > > >::data #include // std::vector >, std::allocator > > >::empty #include // std::vector >, std::allocator > > >::end #include // std::vector >, std::allocator > > >::erase #include // std::vector >, std::allocator > > >::front #include // std::vector >, std::allocator > > >::insert #include // std::vector >, std::allocator > > >::max_size #include // std::vector >, std::allocator > > >::operator= #include // std::vector >, std::allocator > > >::operator[] #include // std::vector >, std::allocator > > >::pop_back #include // std::vector >, std::allocator > > >::push_back #include // std::vector >, std::allocator > > >::reserve #include // std::vector >, std::allocator > > >::resize #include // std::vector >, std::allocator > > >::shrink_to_fit #include // std::vector >, std::allocator > > >::size #include // std::vector >, std::allocator > > >::swap #include // std::vector >, std::allocator > > >::vector #include // std::vector, std::allocator > >::assign #include // std::vector, std::allocator > >::at #include // std::vector, std::allocator > >::back #include // std::vector, std::allocator > >::begin #include // std::vector, std::allocator > >::capacity #include // std::vector, std::allocator > >::cbegin #include // std::vector, std::allocator > >::cend #include // std::vector, std::allocator > >::clear #include // std::vector, std::allocator > >::data #include // std::vector, std::allocator > >::empty #include // std::vector, std::allocator > >::end #include // std::vector, std::allocator > >::front #include // std::vector, std::allocator > >::max_size #include // std::vector, std::allocator > >::operator= #include // std::vector, std::allocator > >::operator[] #include // std::vector, std::allocator > >::pop_back #include // std::vector, std::allocator > >::push_back #include // std::vector, std::allocator > >::reserve #include // std::vector, std::allocator > >::resize #include // std::vector, std::allocator > >::shrink_to_fit #include // std::vector, std::allocator > >::size #include // std::vector, std::allocator > >::swap #include // std::vector, std::allocator > >::vector #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::assign #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::at #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::back #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::begin #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::capacity #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::cbegin #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::cend #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::clear #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::data #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::empty #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::end #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::erase #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::front #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::insert #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::max_size #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::operator= #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::operator[] #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::pop_back #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::push_back #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::reserve #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::resize #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::shrink_to_fit #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::size #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::swap #include // std::vector, std::allocator > >, std::allocator, std::allocator > > > >::vector #include #include #include #ifndef BINDER_PYBIND11_TYPE_CASTER #define BINDER_PYBIND11_TYPE_CASTER PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr); PYBIND11_DECLARE_HOLDER_TYPE(T, T*); PYBIND11_MAKE_OPAQUE(std::shared_ptr); #endif void bind_std_stl_vector(std::function< pybind11::module &(std::string const &namespace_) > &M) { // std::vector file:bits/stl_vector.h line:214 binder::vector_binder>(M("std"), "CPoint3D", "std_allocator_CPoint3D_t"); // std::vector file:bits/stl_vector.h line:214 binder::vector_binder>(M("std"), "CFace", "std_allocator_CFace_t"); // std::vector file:bits/stl_vector.h line:214 binder::vector_binder,std::allocator >>(M("std"), "std_pair_int_double_t", "std_allocator_std_pair_int_double_t"); // std::vector file:bits/stl_vector.h line:214 binder::vector_binder>(M("std"), "EdgePoint", "std_allocator_EdgePoint_t"); } // File: std/stl_set.cpp #include // std::less #include // std::less::less #include // std::less::operator() #include // std::less::operator= #include // std::initializer_list #include // std::initializer_list::begin #include // std::initializer_list::end #include // std::initializer_list::initializer_list #include // std::initializer_list::size #include // std::_Rb_tree_const_iterator #include // std::_Rb_tree_const_iterator::_M_const_cast #include // std::_Rb_tree_const_iterator::_Rb_tree_const_iterator #include // std::_Rb_tree_const_iterator::operator!= #include // std::_Rb_tree_const_iterator::operator* #include // std::_Rb_tree_const_iterator::operator++ #include // std::_Rb_tree_const_iterator::operator-- #include // std::_Rb_tree_const_iterator::operator== #include // std::_Rb_tree_iterator #include // std::allocator #include // std::allocator::allocator #include // std::allocator::operator= #include // std::set #include // std::set, std::allocator >::begin #include // std::set, std::allocator >::cbegin #include // std::set, std::allocator >::cend #include // std::set, std::allocator >::clear #include // std::set, std::allocator >::count #include // std::set, std::allocator >::empty #include // std::set, std::allocator >::end #include // std::set, std::allocator >::equal_range #include // std::set, std::allocator >::erase #include // std::set, std::allocator >::find #include // std::set, std::allocator >::get_allocator #include // std::set, std::allocator >::insert #include // std::set, std::allocator >::key_comp #include // std::set, std::allocator >::lower_bound #include // std::set, std::allocator >::max_size #include // std::set, std::allocator >::operator= #include // std::set, std::allocator >::set #include // std::set, std::allocator >::size #include // std::set, std::allocator >::swap #include // std::set, std::allocator >::upper_bound #include // std::set, std::allocator >::value_comp #include // __str__ #include // std::pair #include // std::pair, bool>::pair #include #include #include #ifndef BINDER_PYBIND11_TYPE_CASTER #define BINDER_PYBIND11_TYPE_CASTER PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr); PYBIND11_DECLARE_HOLDER_TYPE(T, T*); PYBIND11_MAKE_OPAQUE(std::shared_ptr); #endif void bind_std_stl_set(std::function< pybind11::module &(std::string const &namespace_) > &M) { { // std::set file:bits/stl_set.h line:90 pybind11::class_, std::shared_ptr>> cl(M("std"), "set_int_t", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def("__init__", [](std::set *self_, const struct std::less & a0) { new (self_) std::set(a0); }, "doc"); cl.def(pybind11::init &, const class std::allocator &>(), pybind11::arg("__comp"), pybind11::arg("__a")); cl.def(pybind11::init, class std::allocator > &>(), pybind11::arg("__x")); cl.def("__init__", [](std::set *self_, class std::initializer_list const &a0) { new (self_) std::set(a0); }, "doc"); cl.def("__init__", [](std::set *self_, class std::initializer_list const &a0, const struct std::less & a1) { new (self_) std::set(a0, a1); }, "doc"); cl.def(pybind11::init, const struct std::less &, const class std::allocator &>(), pybind11::arg("__l"), pybind11::arg("__comp"), pybind11::arg("__a")); cl.def(pybind11::init &>(), pybind11::arg("__a")); cl.def(pybind11::init, class std::allocator > &, const class std::allocator &>(), pybind11::arg("__x"), pybind11::arg("__a")); cl.def(pybind11::init, const class std::allocator &>(), pybind11::arg("__l"), pybind11::arg("__a")); cl.def("assign", (class std::set, class std::allocator > & (std::set::*)(const class std::set, class std::allocator > &)) &std::set, std::allocator >::operator=, "C++: std::set, std::allocator >::operator=(const class std::set, class std::allocator > &) --> class std::set, class std::allocator > &", pybind11::return_value_policy::automatic, pybind11::arg("__x")); cl.def("assign", (class std::set, class std::allocator > & (std::set::*)(class std::initializer_list)) &std::set, std::allocator >::operator=, "C++: std::set, std::allocator >::operator=(class std::initializer_list) --> class std::set, class std::allocator > &", pybind11::return_value_policy::automatic, pybind11::arg("__l")); cl.def("key_comp", (struct std::less (std::set::*)() const) &std::set, std::allocator >::key_comp, "C++: std::set, std::allocator >::key_comp() const --> struct std::less"); cl.def("value_comp", (struct std::less (std::set::*)() const) &std::set, std::allocator >::value_comp, "C++: std::set, std::allocator >::value_comp() const --> struct std::less"); cl.def("get_allocator", (class std::allocator (std::set::*)() const) &std::set, std::allocator >::get_allocator, "C++: std::set, std::allocator >::get_allocator() const --> class std::allocator"); cl.def("begin", (struct std::_Rb_tree_const_iterator (std::set::*)() const) &std::set, std::allocator >::begin, "C++: std::set, std::allocator >::begin() const --> struct std::_Rb_tree_const_iterator"); cl.def("end", (struct std::_Rb_tree_const_iterator (std::set::*)() const) &std::set, std::allocator >::end, "C++: std::set, std::allocator >::end() const --> struct std::_Rb_tree_const_iterator"); cl.def("cbegin", (struct std::_Rb_tree_const_iterator (std::set::*)() const) &std::set, std::allocator >::cbegin, "C++: std::set, std::allocator >::cbegin() const --> struct std::_Rb_tree_const_iterator"); cl.def("cend", (struct std::_Rb_tree_const_iterator (std::set::*)() const) &std::set, std::allocator >::cend, "C++: std::set, std::allocator >::cend() const --> struct std::_Rb_tree_const_iterator"); cl.def("empty", (bool (std::set::*)() const) &std::set, std::allocator >::empty, "C++: std::set, std::allocator >::empty() const --> bool"); cl.def("size", (unsigned long (std::set::*)() const) &std::set, std::allocator >::size, "C++: std::set, std::allocator >::size() const --> unsigned long"); cl.def("max_size", (unsigned long (std::set::*)() const) &std::set, std::allocator >::max_size, "C++: std::set, std::allocator >::max_size() const --> unsigned long"); cl.def("swap", (void (std::set::*)(class std::set, class std::allocator > &)) &std::set, std::allocator >::swap, "C++: std::set, std::allocator >::swap(class std::set, class std::allocator > &) --> void", pybind11::arg("__x")); cl.def("insert", (struct std::pair, bool> (std::set::*)(const int &)) &std::set, std::allocator >::insert, "C++: std::set, std::allocator >::insert(const int &) --> struct std::pair, bool>", pybind11::arg("__x")); cl.def("insert", (struct std::_Rb_tree_const_iterator (std::set::*)(struct std::_Rb_tree_const_iterator, const int &)) &std::set, std::allocator >::insert, "C++: std::set, std::allocator >::insert(struct std::_Rb_tree_const_iterator, const int &) --> struct std::_Rb_tree_const_iterator", pybind11::arg("__position"), pybind11::arg("__x")); cl.def("insert", (void (std::set::*)(class std::initializer_list)) &std::set, std::allocator >::insert, "C++: std::set, std::allocator >::insert(class std::initializer_list) --> void", pybind11::arg("__l")); cl.def("erase", (struct std::_Rb_tree_const_iterator (std::set::*)(struct std::_Rb_tree_const_iterator)) &std::set, std::allocator >::erase, "C++: std::set, std::allocator >::erase(struct std::_Rb_tree_const_iterator) --> struct std::_Rb_tree_const_iterator", pybind11::arg("__position")); cl.def("erase", (unsigned long (std::set::*)(const int &)) &std::set, std::allocator >::erase, "C++: std::set, std::allocator >::erase(const int &) --> unsigned long", pybind11::arg("__x")); cl.def("erase", (struct std::_Rb_tree_const_iterator (std::set::*)(struct std::_Rb_tree_const_iterator, struct std::_Rb_tree_const_iterator)) &std::set, std::allocator >::erase, "C++: std::set, std::allocator >::erase(struct std::_Rb_tree_const_iterator, struct std::_Rb_tree_const_iterator) --> struct std::_Rb_tree_const_iterator", pybind11::arg("__first"), pybind11::arg("__last")); cl.def("clear", (void (std::set::*)()) &std::set, std::allocator >::clear, "C++: std::set, std::allocator >::clear() --> void"); cl.def("count", (unsigned long (std::set::*)(const int &) const) &std::set, std::allocator >::count, "C++: std::set, std::allocator >::count(const int &) const --> unsigned long", pybind11::arg("__x")); cl.def("find", (struct std::_Rb_tree_const_iterator (std::set::*)(const int &)) &std::set, std::allocator >::find, "C++: std::set, std::allocator >::find(const int &) --> struct std::_Rb_tree_const_iterator", pybind11::arg("__x")); cl.def("lower_bound", (struct std::_Rb_tree_const_iterator (std::set::*)(const int &)) &std::set, std::allocator >::lower_bound, "C++: std::set, std::allocator >::lower_bound(const int &) --> struct std::_Rb_tree_const_iterator", pybind11::arg("__x")); cl.def("upper_bound", (struct std::_Rb_tree_const_iterator (std::set::*)(const int &)) &std::set, std::allocator >::upper_bound, "C++: std::set, std::allocator >::upper_bound(const int &) --> struct std::_Rb_tree_const_iterator", pybind11::arg("__x")); cl.def("equal_range", (struct std::pair, struct std::_Rb_tree_const_iterator > (std::set::*)(const int &)) &std::set, std::allocator >::equal_range, "C++: std::set, std::allocator >::equal_range(const int &) --> struct std::pair, struct std::_Rb_tree_const_iterator >", pybind11::arg("__x")); } } // File: Point3D.cpp #include // CBaseModel #include // CBaseModel::AdjustScaleAndComputeNormalsToVerts #include // CBaseModel::CBaseModel #include // CBaseModel::Face #include // CBaseModel::Finalize #include // CBaseModel::GetNumOfFaces #include // CBaseModel::GetNumOfVerts #include // CBaseModel::LoadModel #include // CBaseModel::Normal #include // CBaseModel::Vert #include // CBaseModel::isAValidModel #include // CBaseModel::operator= #include // CFace #include // CFace::CFace #include // CFace::operator= #include // CFace::operator[] #include // CFace::setIndices #include // AngleBetween #include // CPoint3D #include // CPoint3D::CPoint3D #include // CPoint3D::Len #include // CPoint3D::Normalize #include // CPoint3D::operator*= #include // CPoint3D::operator+= #include // CPoint3D::operator-= #include // CPoint3D::operator/ #include // CPoint3D::operator/= #include // CPoint3D::operator= #include // CPoint3D::operator== #include // GetTriangleArea #include // VectorCross #include // VectorDot #include // CEdge #include // CEdge::CEdge #include // CEdge::operator= #include // CRichModel #include // CRichModel::AngleSum #include // CRichModel::CRichModel #include // CRichModel::ClearEdges #include // CRichModel::CollectAndArrangeNeighs #include // CRichModel::CombinePointAndNormalTo #include // CRichModel::CombineTwoNormalsTo #include // CRichModel::ComputeAnglesAroundVerts #include // CRichModel::ComputeNumOfComponents #include // CRichModel::ComputeNumOfHoles #include // CRichModel::ComputePlanarCoordsOfIncidentVertForEdges #include // CRichModel::ComputeShiftPoint #include // CRichModel::CreateEdgesFromVertsAndFaces #include // CRichModel::DistanceToIncidentAngle #include // CRichModel::Edge #include // CRichModel::GetEdgeIndexFromTwoVertices #include // CRichModel::GetNew2DCoordinatesByReversingCurrentEdge #include // CRichModel::GetNew2DCoordinatesByRotatingAroundLeftChildEdge #include // CRichModel::GetNew2DCoordinatesByRotatingAroundRightChildEdge #include // CRichModel::GetNumOfBoundries #include // CRichModel::GetNumOfComponents #include // CRichModel::GetNumOfEdges #include // CRichModel::GetNumOfGenera #include // CRichModel::GetNumOfIsolated #include // CRichModel::GetNumOfTotalUndirectedEdges #include // CRichModel::GetNumOfValidDirectedEdges #include // CRichModel::GetSubindexToVert #include // CRichModel::HasBeenProcessed #include // CRichModel::IsClosedModel #include // CRichModel::IsConvexVert #include // CRichModel::IsExtremeEdge #include // CRichModel::IsStartEdge #include // CRichModel::Neigh #include // CRichModel::Preprocess #include // CRichModel::ProportionOnEdgeByImage #include // CRichModel::ProportionOnLeftEdgeByImage #include // CRichModel::ProportionOnRightEdgeByImage #include // CRichModel::SetEdgeLength #include // CRichModel::UpdateAfterChangingEdgeLengths #include // CRichModel::isBoundaryVert #include // std::initializer_list #include // __gnu_cxx::__normal_iterator #include // std::allocator #include // __str__ #include // std::pair #include // std::pair::pair #include // std::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include // std::vector, std::allocator > >::assign #include // std::vector, std::allocator > >::at #include // std::vector, std::allocator > >::back #include // std::vector, std::allocator > >::begin #include // std::vector, std::allocator > >::capacity #include // std::vector, std::allocator > >::cbegin #include // std::vector, std::allocator > >::cend #include // std::vector, std::allocator > >::clear #include // std::vector, std::allocator > >::data #include // std::vector, std::allocator > >::empty #include // std::vector, std::allocator > >::end #include // std::vector, std::allocator > >::front #include // std::vector, std::allocator > >::max_size #include // std::vector, std::allocator > >::operator= #include // std::vector, std::allocator > >::operator[] #include // std::vector, std::allocator > >::pop_back #include // std::vector, std::allocator > >::push_back #include // std::vector, std::allocator > >::reserve #include // std::vector, std::allocator > >::resize #include // std::vector, std::allocator > >::shrink_to_fit #include // std::vector, std::allocator > >::size #include // std::vector, std::allocator > >::swap #include // std::vector, std::allocator > >::vector #include #include #include #ifndef BINDER_PYBIND11_TYPE_CASTER #define BINDER_PYBIND11_TYPE_CASTER PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr); PYBIND11_DECLARE_HOLDER_TYPE(T, T*); PYBIND11_MAKE_OPAQUE(std::shared_ptr); #endif void bind_Point3D(std::function< pybind11::module &(std::string const &namespace_) > &M) { { // CPoint3D file:Point3D.hpp line:8 pybind11::class_> cl(M(""), "CPoint3D", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("x"), pybind11::arg("y"), pybind11::arg("z")); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("x", &CPoint3D::x); cl.def_readwrite("y", &CPoint3D::y); cl.def_readwrite("z", &CPoint3D::z); cl.def("__iadd__", (struct CPoint3D & (CPoint3D::*)(const struct CPoint3D &)) &CPoint3D::operator+=, "C++: CPoint3D::operator+=(const struct CPoint3D &) --> struct CPoint3D &", pybind11::return_value_policy::automatic, pybind11::arg("pt")); cl.def("__isub__", (struct CPoint3D & (CPoint3D::*)(const struct CPoint3D &)) &CPoint3D::operator-=, "C++: CPoint3D::operator-=(const struct CPoint3D &) --> struct CPoint3D &", pybind11::return_value_policy::automatic, pybind11::arg("pt")); cl.def("__imul__", (struct CPoint3D & (CPoint3D::*)(double)) &CPoint3D::operator*=, "C++: CPoint3D::operator*=(double) --> struct CPoint3D &", pybind11::return_value_policy::automatic, pybind11::arg("times")); cl.def("__idiv__", (struct CPoint3D & (CPoint3D::*)(double)) &CPoint3D::operator/=, "C++: CPoint3D::operator/=(double) --> struct CPoint3D &", pybind11::return_value_policy::automatic, pybind11::arg("times")); cl.def("__div__", (struct CPoint3D (CPoint3D::*)(double) const) &CPoint3D::operator/, "C++: CPoint3D::operator/(double) const --> struct CPoint3D", pybind11::arg("times")); cl.def("Len", (double (CPoint3D::*)() const) &CPoint3D::Len, "C++: CPoint3D::Len() const --> double"); cl.def("Normalize", (void (CPoint3D::*)()) &CPoint3D::Normalize, "C++: CPoint3D::Normalize() --> void"); cl.def("__eq__", (bool (CPoint3D::*)(const struct CPoint3D &) const) &CPoint3D::operator==, "C++: CPoint3D::operator==(const struct CPoint3D &) const --> bool", pybind11::arg("other")); cl.def("assign", (struct CPoint3D & (CPoint3D::*)(const struct CPoint3D &)) &CPoint3D::operator=, "C++: CPoint3D::operator=(const struct CPoint3D &) --> struct CPoint3D &", pybind11::return_value_policy::automatic, pybind11::arg("")); } // VectorCross(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &) file:Point3D.hpp line:82 M("").def("VectorCross", (struct CPoint3D (*)(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &)) &VectorCross, "C++: VectorCross(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &) --> struct CPoint3D", pybind11::arg("pt1"), pybind11::arg("pt2"), pybind11::arg("pt3")); // VectorCross(const float *, const float *, float *) file:Point3D.hpp line:83 M("").def("VectorCross", (void (*)(const float *, const float *, float *)) &VectorCross, "C++: VectorCross(const float *, const float *, float *) --> void", pybind11::arg("u"), pybind11::arg("v"), pybind11::arg("n")); // GetTriangleArea(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &) file:Point3D.hpp line:86 M("").def("GetTriangleArea", (double (*)(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &)) &GetTriangleArea, "C++: GetTriangleArea(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &) --> double", pybind11::arg("pt1"), pybind11::arg("pt2"), pybind11::arg("pt3")); // AngleBetween(const struct CPoint3D &, const struct CPoint3D &) file:Point3D.hpp line:87 M("").def("AngleBetween", (double (*)(const struct CPoint3D &, const struct CPoint3D &)) &AngleBetween, "C++: AngleBetween(const struct CPoint3D &, const struct CPoint3D &) --> double", pybind11::arg("pt1"), pybind11::arg("pt2")); // AngleBetween(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &) file:Point3D.hpp line:88 M("").def("AngleBetween", (double (*)(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &)) &AngleBetween, "C++: AngleBetween(const struct CPoint3D &, const struct CPoint3D &, const struct CPoint3D &) --> double", pybind11::arg("pt1"), pybind11::arg("pt2"), pybind11::arg("pt3")); // VectorDot(const float *, const float *) file:Point3D.hpp line:89 M("").def("VectorDot", (float (*)(const float *, const float *)) &VectorDot, "C++: VectorDot(const float *, const float *) --> float", pybind11::arg("u"), pybind11::arg("v")); // AngleBetween(const float *, const float *) file:Point3D.hpp line:90 M("").def("AngleBetween", (float (*)(const float *, const float *)) &AngleBetween, "C++: AngleBetween(const float *, const float *) --> float", pybind11::arg("u"), pybind11::arg("v")); { // CFace file:BaseModel.hpp line:10 pybind11::class_> cl(M(""), "CFace", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("x"), pybind11::arg("y"), pybind11::arg("z")); cl.def(pybind11::init(), pybind11::arg("")); cl.def("setIndices", (void (CFace::*)(int, int, int)) &CFace::setIndices, "C++: CFace::setIndices(int, int, int) --> void", pybind11::arg("x"), pybind11::arg("y"), pybind11::arg("z")); cl.def("__getitem__", (int & (CFace::*)(int)) &CFace::operator[], "C++: CFace::operator[](int) --> int &", pybind11::return_value_policy::automatic, pybind11::arg("index")); cl.def("assign", (struct CFace & (CFace::*)(const struct CFace &)) &CFace::operator=, "C++: CFace::operator=(const struct CFace &) --> struct CFace &", pybind11::return_value_policy::automatic, pybind11::arg("")); } { // CBaseModel file:BaseModel.hpp line:38 pybind11::class_> cl(M(""), "CBaseModel", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("m_Verts", &CBaseModel::m_Verts); cl.def_readwrite("m_NormalsToVerts", &CBaseModel::m_NormalsToVerts); cl.def_readwrite("m_ptUp", &CBaseModel::m_ptUp); cl.def_readwrite("m_ptDown", &CBaseModel::m_ptDown); cl.def_readwrite("m_center", &CBaseModel::m_center); cl.def_readwrite("m_Faces", &CBaseModel::m_Faces); cl.def_readwrite("m_scale", &CBaseModel::m_scale); cl.def_readwrite("m_fBeLoaded", &CBaseModel::m_fBeLoaded); cl.def("LoadModel", (void (CBaseModel::*)(class std::vector >, class std::vector >)) &CBaseModel::LoadModel, "C++: CBaseModel::LoadModel(class std::vector >, class std::vector >) --> void", pybind11::arg("vertices"), pybind11::arg("faces")); cl.def("Finalize", (void (CBaseModel::*)()) &CBaseModel::Finalize, "C++: CBaseModel::Finalize() --> void"); cl.def("isAValidModel", (bool (CBaseModel::*)()) &CBaseModel::isAValidModel, "C++: CBaseModel::isAValidModel() --> bool"); cl.def("AdjustScaleAndComputeNormalsToVerts", (void (CBaseModel::*)()) &CBaseModel::AdjustScaleAndComputeNormalsToVerts, "C++: CBaseModel::AdjustScaleAndComputeNormalsToVerts() --> void"); cl.def("GetNumOfVerts", (int (CBaseModel::*)() const) &CBaseModel::GetNumOfVerts, "C++: CBaseModel::GetNumOfVerts() const --> int"); cl.def("GetNumOfFaces", (int (CBaseModel::*)() const) &CBaseModel::GetNumOfFaces, "C++: CBaseModel::GetNumOfFaces() const --> int"); cl.def("Vert", (const struct CPoint3D & (CBaseModel::*)(int) const) &CBaseModel::Vert, "C++: CBaseModel::Vert(int) const --> const struct CPoint3D &", pybind11::return_value_policy::automatic, pybind11::arg("vertIndex")); cl.def("Normal", (const struct CPoint3D & (CBaseModel::*)(int) const) &CBaseModel::Normal, "C++: CBaseModel::Normal(int) const --> const struct CPoint3D &", pybind11::return_value_policy::automatic, pybind11::arg("vertIndex")); cl.def("Face", (const struct CFace & (CBaseModel::*)(int) const) &CBaseModel::Face, "C++: CBaseModel::Face(int) const --> const struct CFace &", pybind11::return_value_policy::automatic, pybind11::arg("faceIndex")); cl.def("assign", (class CBaseModel & (CBaseModel::*)(const class CBaseModel &)) &CBaseModel::operator=, "C++: CBaseModel::operator=(const class CBaseModel &) --> class CBaseModel &", pybind11::return_value_policy::automatic, pybind11::arg("")); } { // CEdge file:RichModel.hpp line:13 pybind11::class_> cl(M(""), "CEdge", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("indexOfLeftVert", &CEdge::indexOfLeftVert); cl.def_readwrite("indexOfRightVert", &CEdge::indexOfRightVert); cl.def_readwrite("indexOfOppositeVert", &CEdge::indexOfOppositeVert); cl.def_readwrite("indexOfLeftEdge", &CEdge::indexOfLeftEdge); cl.def_readwrite("indexOfRightEdge", &CEdge::indexOfRightEdge); cl.def_readwrite("indexOfReverseEdge", &CEdge::indexOfReverseEdge); cl.def_readwrite("indexOfFrontFace", &CEdge::indexOfFrontFace); cl.def_readwrite("length", &CEdge::length); cl.def_readwrite("coordOfOppositeVert", &CEdge::coordOfOppositeVert); cl.def_readwrite("matrixRotatedToLeftEdge", &CEdge::matrixRotatedToLeftEdge); cl.def_readwrite("matrixRotatedToRightEdge", &CEdge::matrixRotatedToRightEdge); cl.def("assign", (struct CEdge & (CEdge::*)(const struct CEdge &)) &CEdge::operator=, "C++: CEdge::operator=(const struct CEdge &) --> struct CEdge &", pybind11::return_value_policy::automatic, pybind11::arg("")); } { // CRichModel file:RichModel.hpp line:37 pybind11::class_, CBaseModel> cl(M(""), "CRichModel", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("m_Edges", &CRichModel::m_Edges); cl.def("Preprocess", (void (CRichModel::*)()) &CRichModel::Preprocess, "C++: CRichModel::Preprocess() --> void"); cl.def("ClearEdges", (void (CRichModel::*)()) &CRichModel::ClearEdges, "C++: CRichModel::ClearEdges() --> void"); cl.def("CreateEdgesFromVertsAndFaces", (void (CRichModel::*)()) &CRichModel::CreateEdgesFromVertsAndFaces, "C++: CRichModel::CreateEdgesFromVertsAndFaces() --> void"); cl.def("CollectAndArrangeNeighs", (void (CRichModel::*)()) &CRichModel::CollectAndArrangeNeighs, "C++: CRichModel::CollectAndArrangeNeighs() --> void"); cl.def("ComputeAnglesAroundVerts", (void (CRichModel::*)()) &CRichModel::ComputeAnglesAroundVerts, "C++: CRichModel::ComputeAnglesAroundVerts() --> void"); cl.def("ComputePlanarCoordsOfIncidentVertForEdges", (void (CRichModel::*)()) &CRichModel::ComputePlanarCoordsOfIncidentVertForEdges, "C++: CRichModel::ComputePlanarCoordsOfIncidentVertForEdges() --> void"); cl.def("ComputeNumOfHoles", (void (CRichModel::*)()) &CRichModel::ComputeNumOfHoles, "C++: CRichModel::ComputeNumOfHoles() --> void"); cl.def("ComputeNumOfComponents", (void (CRichModel::*)()) &CRichModel::ComputeNumOfComponents, "C++: CRichModel::ComputeNumOfComponents() --> void"); cl.def("GetSubindexToVert", (int (CRichModel::*)(int, int) const) &CRichModel::GetSubindexToVert, "C++: CRichModel::GetSubindexToVert(int, int) const --> int", pybind11::arg("root"), pybind11::arg("neigh")); cl.def("Edge", (const struct CEdge & (CRichModel::*)(int) const) &CRichModel::Edge, "C++: CRichModel::Edge(int) const --> const struct CEdge &", pybind11::return_value_policy::automatic, pybind11::arg("edgeIndex")); cl.def("Neigh", (const class std::vector, class std::allocator > > & (CRichModel::*)(int) const) &CRichModel::Neigh, "C++: CRichModel::Neigh(int) const --> const class std::vector, class std::allocator > > &", pybind11::return_value_policy::automatic, pybind11::arg("root")); cl.def("AngleSum", (double (CRichModel::*)(int) const) &CRichModel::AngleSum, "C++: CRichModel::AngleSum(int) const --> double", pybind11::arg("vertIndex")); cl.def("ProportionOnEdgeByImage", (double (CRichModel::*)(int, const struct std::pair &) const) &CRichModel::ProportionOnEdgeByImage, "C++: CRichModel::ProportionOnEdgeByImage(int, const struct std::pair &) const --> double", pybind11::arg("edgeIndex"), pybind11::arg("coord")); cl.def("ProportionOnLeftEdgeByImage", (double (CRichModel::*)(int, const struct std::pair &, double) const) &CRichModel::ProportionOnLeftEdgeByImage, "C++: CRichModel::ProportionOnLeftEdgeByImage(int, const struct std::pair &, double) const --> double", pybind11::arg("edgeIndex"), pybind11::arg("coord"), pybind11::arg("proportion")); cl.def("ProportionOnRightEdgeByImage", (double (CRichModel::*)(int, const struct std::pair &, double) const) &CRichModel::ProportionOnRightEdgeByImage, "C++: CRichModel::ProportionOnRightEdgeByImage(int, const struct std::pair &, double) const --> double", pybind11::arg("edgeIndex"), pybind11::arg("coord"), pybind11::arg("proportion")); cl.def("ProportionOnEdgeByImage", (double (CRichModel::*)(int, double, double, double, double) const) &CRichModel::ProportionOnEdgeByImage, "C++: CRichModel::ProportionOnEdgeByImage(int, double, double, double, double) const --> double", pybind11::arg("edgeIndex"), pybind11::arg("x1"), pybind11::arg("y1"), pybind11::arg("x2"), pybind11::arg("y2")); cl.def("GetNew2DCoordinatesByRotatingAroundLeftChildEdge", (struct std::pair (CRichModel::*)(int, const struct std::pair &) const) &CRichModel::GetNew2DCoordinatesByRotatingAroundLeftChildEdge, "C++: CRichModel::GetNew2DCoordinatesByRotatingAroundLeftChildEdge(int, const struct std::pair &) const --> struct std::pair", pybind11::arg("edgeIndex"), pybind11::arg("input2DCoordinates")); cl.def("GetNew2DCoordinatesByRotatingAroundRightChildEdge", (struct std::pair (CRichModel::*)(int, const struct std::pair &) const) &CRichModel::GetNew2DCoordinatesByRotatingAroundRightChildEdge, "C++: CRichModel::GetNew2DCoordinatesByRotatingAroundRightChildEdge(int, const struct std::pair &) const --> struct std::pair", pybind11::arg("edgeIndex"), pybind11::arg("input2DCoordinates")); cl.def("GetNew2DCoordinatesByReversingCurrentEdge", (struct std::pair (CRichModel::*)(int, const struct std::pair &) const) &CRichModel::GetNew2DCoordinatesByReversingCurrentEdge, "C++: CRichModel::GetNew2DCoordinatesByReversingCurrentEdge(int, const struct std::pair &) const --> struct std::pair", pybind11::arg("edgeIndex"), pybind11::arg("input2DCoordinates")); cl.def("DistanceToIncidentAngle", (double (CRichModel::*)(int, const struct std::pair &) const) &CRichModel::DistanceToIncidentAngle, "C++: CRichModel::DistanceToIncidentAngle(int, const struct std::pair &) const --> double", pybind11::arg("edgeIndex"), pybind11::arg("coord")); cl.def("GetNumOfEdges", (int (CRichModel::*)() const) &CRichModel::GetNumOfEdges, "C++: CRichModel::GetNumOfEdges() const --> int"); cl.def("GetNumOfValidDirectedEdges", (int (CRichModel::*)() const) &CRichModel::GetNumOfValidDirectedEdges, "C++: CRichModel::GetNumOfValidDirectedEdges() const --> int"); cl.def("GetNumOfTotalUndirectedEdges", (int (CRichModel::*)() const) &CRichModel::GetNumOfTotalUndirectedEdges, "C++: CRichModel::GetNumOfTotalUndirectedEdges() const --> int"); cl.def("GetNumOfGenera", (int (CRichModel::*)() const) &CRichModel::GetNumOfGenera, "C++: CRichModel::GetNumOfGenera() const --> int"); cl.def("GetNumOfIsolated", (int (CRichModel::*)() const) &CRichModel::GetNumOfIsolated, "C++: CRichModel::GetNumOfIsolated() const --> int"); cl.def("GetNumOfComponents", (int (CRichModel::*)() const) &CRichModel::GetNumOfComponents, "C++: CRichModel::GetNumOfComponents() const --> int"); cl.def("GetNumOfBoundries", (int (CRichModel::*)() const) &CRichModel::GetNumOfBoundries, "C++: CRichModel::GetNumOfBoundries() const --> int"); cl.def("IsConvexVert", (bool (CRichModel::*)(int) const) &CRichModel::IsConvexVert, "C++: CRichModel::IsConvexVert(int) const --> bool", pybind11::arg("index")); cl.def("isBoundaryVert", (bool (CRichModel::*)(int) const) &CRichModel::isBoundaryVert, "C++: CRichModel::isBoundaryVert(int) const --> bool", pybind11::arg("index")); cl.def("IsClosedModel", (bool (CRichModel::*)() const) &CRichModel::IsClosedModel, "C++: CRichModel::IsClosedModel() const --> bool"); cl.def("IsExtremeEdge", (bool (CRichModel::*)(int) const) &CRichModel::IsExtremeEdge, "C++: CRichModel::IsExtremeEdge(int) const --> bool", pybind11::arg("edgeIndex")); cl.def("IsStartEdge", (bool (CRichModel::*)(int) const) &CRichModel::IsStartEdge, "C++: CRichModel::IsStartEdge(int) const --> bool", pybind11::arg("edgeIndex")); cl.def("HasBeenProcessed", (bool (CRichModel::*)() const) &CRichModel::HasBeenProcessed, "C++: CRichModel::HasBeenProcessed() const --> bool"); cl.def("GetEdgeIndexFromTwoVertices", (int (CRichModel::*)(int, int) const) &CRichModel::GetEdgeIndexFromTwoVertices, "C++: CRichModel::GetEdgeIndexFromTwoVertices(int, int) const --> int", pybind11::arg("leftVert"), pybind11::arg("rightVert")); cl.def("SetEdgeLength", (void (CRichModel::*)(int, int, double, bool)) &CRichModel::SetEdgeLength, "C++: CRichModel::SetEdgeLength(int, int, double, bool) --> void", pybind11::arg("leftVert"), pybind11::arg("rightVert"), pybind11::arg("newLen"), pybind11::arg("apply_reverse")); cl.def("UpdateAfterChangingEdgeLengths", (void (CRichModel::*)()) &CRichModel::UpdateAfterChangingEdgeLengths, "C++: CRichModel::UpdateAfterChangingEdgeLengths() --> void"); cl.def("ComputeShiftPoint", (struct CPoint3D (CRichModel::*)(int) const) &CRichModel::ComputeShiftPoint, "C++: CRichModel::ComputeShiftPoint(int) const --> struct CPoint3D", pybind11::arg("indexOfVert")); cl.def("ComputeShiftPoint", (struct CPoint3D (CRichModel::*)(int, double) const) &CRichModel::ComputeShiftPoint, "C++: CRichModel::ComputeShiftPoint(int, double) const --> struct CPoint3D", pybind11::arg("indexOfVert"), pybind11::arg("epsilon")); cl.def_static("CombinePointAndNormalTo", (struct CPoint3D (*)(const struct CPoint3D &, const struct CPoint3D &)) &CRichModel::CombinePointAndNormalTo, "C++: CRichModel::CombinePointAndNormalTo(const struct CPoint3D &, const struct CPoint3D &) --> struct CPoint3D", pybind11::arg("pt"), pybind11::arg("normal")); cl.def_static("CombineTwoNormalsTo", (struct CPoint3D (*)(const struct CPoint3D &, double, const struct CPoint3D &, double)) &CRichModel::CombineTwoNormalsTo, "C++: CRichModel::CombineTwoNormalsTo(const struct CPoint3D &, double, const struct CPoint3D &, double) --> struct CPoint3D", pybind11::arg("pt1"), pybind11::arg("coef1"), pybind11::arg("pt2"), pybind11::arg("coef2")); } } // File: RichModel.cpp #include // CExactMethodForDGP #include // CExactMethodForDGP::BuildSequenceTree #include // CExactMethodForDGP::CExactMethodForDGP #include // CExactMethodForDGP::ClearContainers #include // CExactMethodForDGP::Execute #include // CExactMethodForDGP::FillExperimentalResults #include // CExactMethodForDGP::FindSourceVertex #include // CExactMethodForDGP::GetAlgorithmName #include // CExactMethodForDGP::GetDepthOfSequenceTree #include // CExactMethodForDGP::GetMaxLenOfQue #include // CExactMethodForDGP::GetMemoryCost #include // CExactMethodForDGP::GetNPE #include // CExactMethodForDGP::GetRootSourceOfVert #include // CExactMethodForDGP::GetRunTime #include // CExactMethodForDGP::GetWindowNum #include // CExactMethodForDGP::HasBeenCompleted #include // CExactMethodForDGP::InitContainers #include // CExactMethodForDGP::PickShortestPaths #include // GetTickCount #include // InfoAtVertex #include // InfoAtVertex::InfoAtVertex #include // InfoAtVertex::operator= #include // QuoteInfoAtVertex #include // QuoteInfoAtVertex::QuoteInfoAtVertex #include // QuoteInfoAtVertex::operator= #include // CICHWithFurtherPriorityQueue #include // CICHWithFurtherPriorityQueue::AddIntoQueueOfPseudoSources #include // CICHWithFurtherPriorityQueue::AddIntoQueueOfWindows #include // CICHWithFurtherPriorityQueue::BuildSequenceTree #include // CICHWithFurtherPriorityQueue::CICHWithFurtherPriorityQueue #include // CICHWithFurtherPriorityQueue::ClearContainers #include // CICHWithFurtherPriorityQueue::InitContainers #include // CICHWithFurtherPriorityQueue::UpdateTreeDepthBackWithChoice #include // CImprovedCHWithEdgeValve #include // CImprovedCHWithEdgeValve::CImprovedCHWithEdgeValve #include // CImprovedCHWithEdgeValve::CheckValidityOfWindow #include // CPoint3D #include // CPoint3D::CPoint3D #include // CPoint3D::Len #include // CPoint3D::Normalize #include // CPoint3D::operator*= #include // CPoint3D::operator+= #include // CPoint3D::operator-= #include // CPoint3D::operator/ #include // CPoint3D::operator/= #include // CPoint3D::operator= #include // CPoint3D::operator== #include // CPreviousCH #include // CPreviousCH::AddIntoQueueOfPseudoSources #include // CPreviousCH::AddIntoQueueOfWindows #include // CPreviousCH::BuildSequenceTree #include // CPreviousCH::CPreviousCH #include // CPreviousCH::CheckValidityOfWindow #include // CPreviousCH::ClearContainers #include // CPreviousCH::FillExperimentalResults #include // CPreviousCH::InitContainers #include // CPreviousCH::UpdateTreeDepthBackWithChoice #include // InfoAtAngle #include // InfoAtAngle::InfoAtAngle #include // InfoAtAngle::operator= #include // QuoteWindow #include // QuoteWindow::QuoteWindow #include // QuoteWindow::operator= #include // Window #include // Window::Window #include // CEdge #include // CRichModel #include // CRichModel::AngleSum #include // CRichModel::CRichModel #include // CRichModel::ClearEdges #include // CRichModel::CollectAndArrangeNeighs #include // CRichModel::CombinePointAndNormalTo #include // CRichModel::CombineTwoNormalsTo #include // CRichModel::ComputeAnglesAroundVerts #include // CRichModel::ComputeNumOfComponents #include // CRichModel::ComputeNumOfHoles #include // CRichModel::ComputePlanarCoordsOfIncidentVertForEdges #include // CRichModel::ComputeShiftPoint #include // CRichModel::CreateEdgesFromVertsAndFaces #include // CRichModel::DistanceToIncidentAngle #include // CRichModel::Edge #include // CRichModel::GetEdgeIndexFromTwoVertices #include // CRichModel::GetNew2DCoordinatesByReversingCurrentEdge #include // CRichModel::GetNew2DCoordinatesByRotatingAroundLeftChildEdge #include // CRichModel::GetNew2DCoordinatesByRotatingAroundRightChildEdge #include // CRichModel::GetNumOfBoundries #include // CRichModel::GetNumOfComponents #include // CRichModel::GetNumOfEdges #include // CRichModel::GetNumOfGenera #include // CRichModel::GetNumOfIsolated #include // CRichModel::GetNumOfTotalUndirectedEdges #include // CRichModel::GetNumOfValidDirectedEdges #include // CRichModel::GetSubindexToVert #include // CRichModel::HasBeenProcessed #include // CRichModel::IsClosedModel #include // CRichModel::IsConvexVert #include // CRichModel::IsExtremeEdge #include // CRichModel::IsStartEdge #include // CRichModel::Neigh #include // CRichModel::Preprocess #include // CRichModel::ProportionOnEdgeByImage #include // CRichModel::ProportionOnLeftEdgeByImage #include // CRichModel::ProportionOnRightEdgeByImage #include // CRichModel::SetEdgeLength #include // CRichModel::UpdateAfterChangingEdgeLengths #include // CRichModel::isBoundaryVert #include // EdgePoint #include // EdgePoint::EdgePoint #include // EdgePoint::Get3DPoint #include // EdgePoint::operator= #include // std::less #include // std::initializer_list #include // __gnu_cxx::__normal_iterator #include // std::_Rb_tree_const_iterator #include // std::allocator #include // std::set #include // std::set, std::allocator >::begin #include // std::set, std::allocator >::cbegin #include // std::set, std::allocator >::cend #include // std::set, std::allocator >::clear #include // std::set, std::allocator >::count #include // std::set, std::allocator >::empty #include // std::set, std::allocator >::end #include // std::set, std::allocator >::equal_range #include // std::set, std::allocator >::erase #include // std::set, std::allocator >::find #include // std::set, std::allocator >::get_allocator #include // std::set, std::allocator >::insert #include // std::set, std::allocator >::key_comp #include // std::set, std::allocator >::lower_bound #include // std::set, std::allocator >::max_size #include // std::set, std::allocator >::operator= #include // std::set, std::allocator >::set #include // std::set, std::allocator >::size #include // std::set, std::allocator >::swap #include // std::set, std::allocator >::upper_bound #include // std::set, std::allocator >::value_comp #include // __str__ #include // std::__cxx11::basic_string #include // std::__cxx11::basic_string, std::allocator >::append #include // std::__cxx11::basic_string, std::allocator >::assign #include // std::__cxx11::basic_string, std::allocator >::at #include // std::__cxx11::basic_string, std::allocator >::back #include // std::__cxx11::basic_string, std::allocator >::basic_string #include // std::__cxx11::basic_string, std::allocator >::begin #include // std::__cxx11::basic_string, std::allocator >::c_str #include // std::__cxx11::basic_string, std::allocator >::capacity #include // std::__cxx11::basic_string, std::allocator >::cbegin #include // std::__cxx11::basic_string, std::allocator >::cend #include // std::__cxx11::basic_string, std::allocator >::clear #include // std::__cxx11::basic_string, std::allocator >::compare #include // std::__cxx11::basic_string, std::allocator >::copy #include // std::__cxx11::basic_string, std::allocator >::data #include // std::__cxx11::basic_string, std::allocator >::empty #include // std::__cxx11::basic_string, std::allocator >::end #include // std::__cxx11::basic_string, std::allocator >::erase #include // std::__cxx11::basic_string, std::allocator >::find #include // std::__cxx11::basic_string, std::allocator >::find_first_not_of #include // std::__cxx11::basic_string, std::allocator >::find_first_of #include // std::__cxx11::basic_string, std::allocator >::find_last_not_of #include // std::__cxx11::basic_string, std::allocator >::find_last_of #include // std::__cxx11::basic_string, std::allocator >::front #include // std::__cxx11::basic_string, std::allocator >::get_allocator #include // std::__cxx11::basic_string, std::allocator >::insert #include // std::__cxx11::basic_string, std::allocator >::length #include // std::__cxx11::basic_string, std::allocator >::max_size #include // std::__cxx11::basic_string, std::allocator >::operator+= #include // std::__cxx11::basic_string, std::allocator >::operator= #include // std::__cxx11::basic_string, std::allocator >::operator[] #include // std::__cxx11::basic_string, std::allocator >::pop_back #include // std::__cxx11::basic_string, std::allocator >::push_back #include // std::__cxx11::basic_string, std::allocator >::replace #include // std::__cxx11::basic_string, std::allocator >::reserve #include // std::__cxx11::basic_string, std::allocator >::resize #include // std::__cxx11::basic_string, std::allocator >::rfind #include // std::__cxx11::basic_string, std::allocator >::shrink_to_fit #include // std::__cxx11::basic_string, std::allocator >::size #include // std::__cxx11::basic_string, std::allocator >::substr #include // std::__cxx11::basic_string, std::allocator >::swap #include // std::char_traits #include // std::pair #include // std::vector #include // std::vector >::assign #include // std::vector >::at #include // std::vector >::back #include // std::vector >::begin #include // std::vector >::capacity #include // std::vector >::cbegin #include // std::vector >::cend #include // std::vector >::clear #include // std::vector >::data #include // std::vector >::empty #include // std::vector >::end #include // std::vector >::erase #include // std::vector >::front #include // std::vector >::insert #include // std::vector >::max_size #include // std::vector >::operator= #include // std::vector >::operator[] #include // std::vector >::pop_back #include // std::vector >::push_back #include // std::vector >::reserve #include // std::vector >::resize #include // std::vector >::shrink_to_fit #include // std::vector >::size #include // std::vector >::swap #include // std::vector >::vector #include #include #include #ifndef BINDER_PYBIND11_TYPE_CASTER #define BINDER_PYBIND11_TYPE_CASTER PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr); PYBIND11_DECLARE_HOLDER_TYPE(T, T*); PYBIND11_MAKE_OPAQUE(std::shared_ptr); #endif // CExactMethodForDGP file:ExactMethodForDGP.hpp line:48 struct PyCallBack_CExactMethodForDGP : public CExactMethodForDGP { using CExactMethodForDGP::CExactMethodForDGP; void Execute() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "Execute"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CExactMethodForDGP::Execute(); } void InitContainers() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "InitContainers"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } pybind11::pybind11_fail("Tried to call pure virtual function \"CExactMethodForDGP::InitContainers\""); } void BuildSequenceTree() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "BuildSequenceTree"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } pybind11::pybind11_fail("Tried to call pure virtual function \"CExactMethodForDGP::BuildSequenceTree\""); } void ClearContainers() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "ClearContainers"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } pybind11::pybind11_fail("Tried to call pure virtual function \"CExactMethodForDGP::ClearContainers\""); } void FillExperimentalResults() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "FillExperimentalResults"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } pybind11::pybind11_fail("Tried to call pure virtual function \"CExactMethodForDGP::FillExperimentalResults\""); } }; // CPreviousCH file:PreviousCH.hpp line:51 struct PyCallBack_CPreviousCH : public CPreviousCH { using CPreviousCH::CPreviousCH; void InitContainers() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "InitContainers"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::InitContainers(); } void ClearContainers() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "ClearContainers"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::ClearContainers(); } void BuildSequenceTree() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "BuildSequenceTree"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::BuildSequenceTree(); } void AddIntoQueueOfPseudoSources(struct QuoteInfoAtVertex a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "AddIntoQueueOfPseudoSources"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::AddIntoQueueOfPseudoSources(a0); } void AddIntoQueueOfWindows(struct QuoteWindow & a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "AddIntoQueueOfWindows"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::AddIntoQueueOfWindows(a0); } bool UpdateTreeDepthBackWithChoice() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "UpdateTreeDepthBackWithChoice"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::UpdateTreeDepthBackWithChoice(); } bool CheckValidityOfWindow(struct Window & a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "CheckValidityOfWindow"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::CheckValidityOfWindow(a0); } void FillExperimentalResults() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "FillExperimentalResults"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::FillExperimentalResults(); } void Execute() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "Execute"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CExactMethodForDGP::Execute(); } }; // CImprovedCHWithEdgeValve file:ImprovedCHWithEdgeValve.hpp line:11 struct PyCallBack_CImprovedCHWithEdgeValve : public CImprovedCHWithEdgeValve { using CImprovedCHWithEdgeValve::CImprovedCHWithEdgeValve; bool CheckValidityOfWindow(struct Window & a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "CheckValidityOfWindow"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CImprovedCHWithEdgeValve::CheckValidityOfWindow(a0); } void InitContainers() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "InitContainers"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::InitContainers(); } void ClearContainers() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "ClearContainers"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::ClearContainers(); } void BuildSequenceTree() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "BuildSequenceTree"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::BuildSequenceTree(); } void AddIntoQueueOfPseudoSources(struct QuoteInfoAtVertex a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "AddIntoQueueOfPseudoSources"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::AddIntoQueueOfPseudoSources(a0); } void AddIntoQueueOfWindows(struct QuoteWindow & a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "AddIntoQueueOfWindows"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::AddIntoQueueOfWindows(a0); } bool UpdateTreeDepthBackWithChoice() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "UpdateTreeDepthBackWithChoice"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::UpdateTreeDepthBackWithChoice(); } void FillExperimentalResults() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "FillExperimentalResults"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::FillExperimentalResults(); } void Execute() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "Execute"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CExactMethodForDGP::Execute(); } }; // CICHWithFurtherPriorityQueue file:ICHWithFurtherPriorityQueue.hpp line:13 struct PyCallBack_CICHWithFurtherPriorityQueue : public CICHWithFurtherPriorityQueue { using CICHWithFurtherPriorityQueue::CICHWithFurtherPriorityQueue; void AddIntoQueueOfPseudoSources(struct QuoteInfoAtVertex a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "AddIntoQueueOfPseudoSources"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CICHWithFurtherPriorityQueue::AddIntoQueueOfPseudoSources(a0); } void AddIntoQueueOfWindows(struct QuoteWindow & a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "AddIntoQueueOfWindows"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CICHWithFurtherPriorityQueue::AddIntoQueueOfWindows(a0); } bool UpdateTreeDepthBackWithChoice() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "UpdateTreeDepthBackWithChoice"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CICHWithFurtherPriorityQueue::UpdateTreeDepthBackWithChoice(); } void BuildSequenceTree() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "BuildSequenceTree"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CICHWithFurtherPriorityQueue::BuildSequenceTree(); } void InitContainers() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "InitContainers"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CICHWithFurtherPriorityQueue::InitContainers(); } void ClearContainers() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "ClearContainers"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CICHWithFurtherPriorityQueue::ClearContainers(); } bool CheckValidityOfWindow(struct Window & a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "CheckValidityOfWindow"); if (overload) { auto o = overload.operator()(a0); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CImprovedCHWithEdgeValve::CheckValidityOfWindow(a0); } void FillExperimentalResults() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "FillExperimentalResults"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CPreviousCH::FillExperimentalResults(); } void Execute() override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "Execute"); if (overload) { auto o = overload.operator()(); if (pybind11::detail::cast_is_temporary_value_reference::value) { static pybind11::detail::overload_caster_t caster; return pybind11::detail::cast_ref(std::move(o), caster); } else return pybind11::detail::cast_safe(std::move(o)); } return CExactMethodForDGP::Execute(); } }; void bind_RichModel(std::function< pybind11::module &(std::string const &namespace_) > &M) { { // EdgePoint file:RichModel.hpp line:324 pybind11::class_> cl(M(""), "EdgePoint", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("index")); cl.def(pybind11::init(), pybind11::arg("index"), pybind11::arg("proportion")); cl.def(pybind11::init(), pybind11::arg("model"), pybind11::arg("leftVert"), pybind11::arg("rightVert"), pybind11::arg("proportion")); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("index", &EdgePoint::index); cl.def_readwrite("proportion", &EdgePoint::proportion); cl.def_readwrite("isVertex", &EdgePoint::isVertex); cl.def("Get3DPoint", (struct CPoint3D (EdgePoint::*)(const class CRichModel &)) &EdgePoint::Get3DPoint, "C++: EdgePoint::Get3DPoint(const class CRichModel &) --> struct CPoint3D", pybind11::arg("model")); cl.def("assign", (struct EdgePoint & (EdgePoint::*)(const struct EdgePoint &)) &EdgePoint::operator=, "C++: EdgePoint::operator=(const struct EdgePoint &) --> struct EdgePoint &", pybind11::return_value_policy::automatic, pybind11::arg("")); } { // InfoAtVertex file:ExactMethodForDGP.hpp line:12 pybind11::class_> cl(M(""), "InfoAtVertex", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("fParentIsPseudoSource", &InfoAtVertex::fParentIsPseudoSource); cl.def_readwrite("birthTime", &InfoAtVertex::birthTime); cl.def_readwrite("indexOfParent", &InfoAtVertex::indexOfParent); cl.def_readwrite("indexOfRootVertOfParent", &InfoAtVertex::indexOfRootVertOfParent); cl.def_readwrite("level", &InfoAtVertex::level); cl.def_readwrite("disUptodate", &InfoAtVertex::disUptodate); cl.def_readwrite("entryProp", &InfoAtVertex::entryProp); cl.def("assign", (struct InfoAtVertex & (InfoAtVertex::*)(const struct InfoAtVertex &)) &InfoAtVertex::operator=, "C++: InfoAtVertex::operator=(const struct InfoAtVertex &) --> struct InfoAtVertex &", pybind11::return_value_policy::automatic, pybind11::arg("")); } { // QuoteInfoAtVertex file:ExactMethodForDGP.hpp line:28 pybind11::class_> cl(M(""), "QuoteInfoAtVertex", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("birthTime"), pybind11::arg("indexOfVert"), pybind11::arg("disUptodate")); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("birthTime", &QuoteInfoAtVertex::birthTime); cl.def_readwrite("indexOfVert", &QuoteInfoAtVertex::indexOfVert); cl.def_readwrite("disUptodate", &QuoteInfoAtVertex::disUptodate); cl.def("assign", (struct QuoteInfoAtVertex & (QuoteInfoAtVertex::*)(const struct QuoteInfoAtVertex &)) &QuoteInfoAtVertex::operator=, "C++: QuoteInfoAtVertex::operator=(const struct QuoteInfoAtVertex &) --> struct QuoteInfoAtVertex &", pybind11::return_value_policy::automatic, pybind11::arg("")); } { // CExactMethodForDGP file:ExactMethodForDGP.hpp line:48 pybind11::class_, PyCallBack_CExactMethodForDGP> cl(M(""), "CExactMethodForDGP", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init, class std::allocator > &>(), pybind11::arg("inputModel"), pybind11::arg("indexOfSourceVerts")); cl.def(pybind11::init()); cl.def_readwrite("m_InfoAtVertices", &CExactMethodForDGP::m_InfoAtVertices); cl.def("GetRootSourceOfVert", (int (CExactMethodForDGP::*)(int) const) &CExactMethodForDGP::GetRootSourceOfVert, "C++: CExactMethodForDGP::GetRootSourceOfVert(int) const --> int", pybind11::arg("index")); cl.def("FindSourceVertex", (class std::vector > & (CExactMethodForDGP::*)(int, class std::vector > &) const) &CExactMethodForDGP::FindSourceVertex, "C++: CExactMethodForDGP::FindSourceVertex(int, class std::vector > &) const --> class std::vector > &", pybind11::return_value_policy::automatic, pybind11::arg("indexOfVert"), pybind11::arg("resultingPath")); cl.def("PickShortestPaths", (void (CExactMethodForDGP::*)(int)) &CExactMethodForDGP::PickShortestPaths, "C++: CExactMethodForDGP::PickShortestPaths(int) --> void", pybind11::arg("num")); cl.def("Execute", (void (CExactMethodForDGP::*)()) &CExactMethodForDGP::Execute, "C++: CExactMethodForDGP::Execute() --> void"); cl.def("InitContainers", (void (CExactMethodForDGP::*)()) &CExactMethodForDGP::InitContainers, "C++: CExactMethodForDGP::InitContainers() --> void"); cl.def("BuildSequenceTree", (void (CExactMethodForDGP::*)()) &CExactMethodForDGP::BuildSequenceTree, "C++: CExactMethodForDGP::BuildSequenceTree() --> void"); cl.def("ClearContainers", (void (CExactMethodForDGP::*)()) &CExactMethodForDGP::ClearContainers, "C++: CExactMethodForDGP::ClearContainers() --> void"); cl.def("FillExperimentalResults", (void (CExactMethodForDGP::*)()) &CExactMethodForDGP::FillExperimentalResults, "C++: CExactMethodForDGP::FillExperimentalResults() --> void"); cl.def("GetRunTime", (double (CExactMethodForDGP::*)() const) &CExactMethodForDGP::GetRunTime, "C++: CExactMethodForDGP::GetRunTime() const --> double"); cl.def("GetMemoryCost", (double (CExactMethodForDGP::*)() const) &CExactMethodForDGP::GetMemoryCost, "C++: CExactMethodForDGP::GetMemoryCost() const --> double"); cl.def("GetWindowNum", (int (CExactMethodForDGP::*)() const) &CExactMethodForDGP::GetWindowNum, "C++: CExactMethodForDGP::GetWindowNum() const --> int"); cl.def("GetMaxLenOfQue", (int (CExactMethodForDGP::*)() const) &CExactMethodForDGP::GetMaxLenOfQue, "C++: CExactMethodForDGP::GetMaxLenOfQue() const --> int"); cl.def("GetNPE", (double (CExactMethodForDGP::*)() const) &CExactMethodForDGP::GetNPE, "C++: CExactMethodForDGP::GetNPE() const --> double"); cl.def("GetDepthOfSequenceTree", (int (CExactMethodForDGP::*)() const) &CExactMethodForDGP::GetDepthOfSequenceTree, "C++: CExactMethodForDGP::GetDepthOfSequenceTree() const --> int"); cl.def("GetAlgorithmName", (std::string (CExactMethodForDGP::*)() const) &CExactMethodForDGP::GetAlgorithmName, "C++: CExactMethodForDGP::GetAlgorithmName() const --> std::string"); cl.def("HasBeenCompleted", (bool (CExactMethodForDGP::*)() const) &CExactMethodForDGP::HasBeenCompleted, "C++: CExactMethodForDGP::HasBeenCompleted() const --> bool"); } // GetTickCount() file:ExactMethodForDGP.hpp line:425 M("").def("GetTickCount", (int (*)()) &GetTickCount, "C++: GetTickCount() --> int"); { // InfoAtAngle file:PreviousCH.hpp line:13 pybind11::class_> cl(M(""), "InfoAtAngle", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("birthTime", &InfoAtAngle::birthTime); cl.def_readwrite("disUptodate", &InfoAtAngle::disUptodate); cl.def_readwrite("entryProp", &InfoAtAngle::entryProp); cl.def("assign", (struct InfoAtAngle & (InfoAtAngle::*)(const struct InfoAtAngle &)) &InfoAtAngle::operator=, "C++: InfoAtAngle::operator=(const struct InfoAtAngle &) --> struct InfoAtAngle &", pybind11::return_value_policy::automatic, pybind11::arg("")); } { // Window file:PreviousCH.hpp line:24 pybind11::class_> cl(M(""), "Window", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("fIsOnLeftSubtree", &Window::fIsOnLeftSubtree); cl.def_readwrite("fParentIsPseudoSource", &Window::fParentIsPseudoSource); cl.def_readwrite("fDirectParentEdgeOnLeft", &Window::fDirectParentEdgeOnLeft); cl.def_readwrite("fDirectParenIsPseudoSource", &Window::fDirectParenIsPseudoSource); cl.def_readwrite("birthTimeOfParent", &Window::birthTimeOfParent); cl.def_readwrite("indexOfParent", &Window::indexOfParent); cl.def_readwrite("indexOfRoot", &Window::indexOfRoot); cl.def_readwrite("indexOfCurEdge", &Window::indexOfCurEdge); cl.def_readwrite("level", &Window::level); cl.def_readwrite("disToRoot", &Window::disToRoot); cl.def_readwrite("entryPropOfParent", &Window::entryPropOfParent); cl.def_readwrite("coordOfPseudoSource", &Window::coordOfPseudoSource); } { // QuoteWindow file:PreviousCH.hpp line:40 pybind11::class_> cl(M(""), "QuoteWindow", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init<>()); cl.def(pybind11::init(), pybind11::arg("")); cl.def_readwrite("disUptodate", &QuoteWindow::disUptodate); cl.def("assign", (struct QuoteWindow & (QuoteWindow::*)(const struct QuoteWindow &)) &QuoteWindow::operator=, "C++: QuoteWindow::operator=(const struct QuoteWindow &) --> struct QuoteWindow &", pybind11::return_value_policy::automatic, pybind11::arg("")); } { // CPreviousCH file:PreviousCH.hpp line:51 pybind11::class_, PyCallBack_CPreviousCH, CExactMethodForDGP> cl(M(""), "CPreviousCH", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init, class std::allocator > &>(), pybind11::arg("inputModel"), pybind11::arg("indexOfSourceVerts")); cl.def(pybind11::init()); } { // CImprovedCHWithEdgeValve file:ImprovedCHWithEdgeValve.hpp line:11 pybind11::class_, PyCallBack_CImprovedCHWithEdgeValve, CPreviousCH> cl(M(""), "CImprovedCHWithEdgeValve", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init, class std::allocator > &>(), pybind11::arg("inputModel"), pybind11::arg("indexOfSourceVerts")); cl.def(pybind11::init()); } { // CICHWithFurtherPriorityQueue file:ICHWithFurtherPriorityQueue.hpp line:13 pybind11::class_, PyCallBack_CICHWithFurtherPriorityQueue, CImprovedCHWithEdgeValve> cl(M(""), "CICHWithFurtherPriorityQueue", ""); pybind11::handle cl_type = cl; cl.def(pybind11::init, class std::allocator > &>(), pybind11::arg("inputModel"), pybind11::arg("indexOfSourceVerts")); cl.def(pybind11::init()); } } #include #include #include #include #include typedef std::function< pybind11::module & (std::string const &) > ModuleGetter; void bind_std_stl_vector(std::function< pybind11::module &(std::string const &namespace_) > &M); void bind_std_stl_set(std::function< pybind11::module &(std::string const &namespace_) > &M); void bind_Point3D(std::function< pybind11::module &(std::string const &namespace_) > &M); void bind_RichModel(std::function< pybind11::module &(std::string const &namespace_) > &M); PYBIND11_PLUGIN(chenhancc) { std::map > modules; ModuleGetter M = [&](std::string const &namespace_) -> pybind11::module & { auto it = modules.find(namespace_); if( it == modules.end() ) throw std::runtime_error("Attempt to access pybind11::module for namespace " + namespace_ + " before it was created!!!"); return * it->second; }; modules[""] = std::make_shared("chenhancc", "chenhancc module"); std::vector< std::pair > sub_modules { {"", "std"}, }; for(auto &p : sub_modules ) modules[p.first.size() ? p.first+"::"+p.second : p.second] = std::make_shared( modules[p.first]->def_submodule(p.second.c_str(), ("Bindings for " + p.first + "::" + p.second + " namespace").c_str() ) ); //pybind11::class_>(M(""), "_encapsulated_data_"); bind_std_stl_vector(M); bind_std_stl_set(M); bind_Point3D(M); bind_RichModel(M); return modules[""]->ptr(); } // Source list file: /home/ashok/eclipse-workspace/chenhancc/autobinding_build/chenhancc.sources // chenhancc.cpp // std/stl_vector.cpp // std/stl_set.cpp // Point3D.cpp // RichModel.cpp // Modules list file: /home/ashok/eclipse-workspace/chenhancc/autobinding_build/chenhancc.modules // std