这篇教程C++ what_function_value函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中what_function_value函数的典型用法代码示例。如果您正苦于以下问题:C++ what_function_value函数的具体用法?C++ what_function_value怎么用?C++ what_function_value使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了what_function_value函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: register_CLJAtom_class//.........这里部分代码省略......... } { //::SireMM::CLJAtom::isDummy typedef bool ( ::SireMM::CLJAtom::*isDummy_function_type )( ) const; isDummy_function_type isDummy_function_value( &::SireMM::CLJAtom::isDummy ); CLJAtom_exposer.def( "isDummy" , isDummy_function_value ); } { //::SireMM::CLJAtom::isNull typedef bool ( ::SireMM::CLJAtom::*isNull_function_type )( ) const; isNull_function_type isNull_function_value( &::SireMM::CLJAtom::isNull ); CLJAtom_exposer.def( "isNull" , isNull_function_value ); } { //::SireMM::CLJAtom::ljParameter typedef ::SireMM::LJParameter ( ::SireMM::CLJAtom::*ljParameter_function_type )( ) const; ljParameter_function_type ljParameter_function_value( &::SireMM::CLJAtom::ljParameter ); CLJAtom_exposer.def( "ljParameter" , ljParameter_function_value ); } { //::SireMM::CLJAtom::negate typedef ::SireMM::CLJAtom ( ::SireMM::CLJAtom::*negate_function_type )( ) const; negate_function_type negate_function_value( &::SireMM::CLJAtom::negate ); CLJAtom_exposer.def( "negate" , negate_function_value ); } CLJAtom_exposer.def( bp::self != bp::self ); { //::SireMM::CLJAtom::operator= typedef ::SireMM::CLJAtom & ( ::SireMM::CLJAtom::*assign_function_type )( ::SireMM::CLJAtom const & ) ; assign_function_type assign_function_value( &::SireMM::CLJAtom::operator= ); CLJAtom_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } CLJAtom_exposer.def( bp::self == bp::self ); { //::SireMM::CLJAtom::toString typedef ::QString ( ::SireMM::CLJAtom::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireMM::CLJAtom::toString ); CLJAtom_exposer.def( "toString" , toString_function_value ); } { //::SireMM::CLJAtom::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::CLJAtom::typeName ); CLJAtom_exposer.def( "typeName" , typeName_function_value ); } { //::SireMM::CLJAtom::what typedef char const * ( ::SireMM::CLJAtom::*what_function_type )( ) const; what_function_type what_function_value( &::SireMM::CLJAtom::what ); CLJAtom_exposer.def( "what" , what_function_value ); } CLJAtom_exposer.staticmethod( "buildFrom" ); CLJAtom_exposer.staticmethod( "typeName" ); CLJAtom_exposer.def( "__copy__", &__copy__); CLJAtom_exposer.def( "__deepcopy__", &__copy__); CLJAtom_exposer.def( "clone", &__copy__); CLJAtom_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::CLJAtom >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CLJAtom_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::CLJAtom >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CLJAtom_exposer.def( "__str__", &__str__< ::SireMM::CLJAtom > ); CLJAtom_exposer.def( "__repr__", &__str__< ::SireMM::CLJAtom > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例2: register_CoordGroupArray_class//.........这里部分代码省略......... , ( bp::arg("i"), bp::arg("t") ) , "Transform all of the coordinates in the CoordGroup at index i using/nthe transformation t/nThrow: SireError::invalid_index/n" ); } { //::SireVol::CoordGroupArray::translate typedef void ( ::SireVol::CoordGroupArray::*translate_function_type)( ::SireMaths::Vector const & ) ; translate_function_type translate_function_value( &::SireVol::CoordGroupArray::translate ); CoordGroupArray_exposer.def( "translate" , translate_function_value , ( bp::arg("delta") ) , "Translate all of the coordinates in this array by delta" ); } { //::SireVol::CoordGroupArray::translate typedef void ( ::SireVol::CoordGroupArray::*translate_function_type)( ::quint32,::SireMaths::Vector const & ) ; translate_function_type translate_function_value( &::SireVol::CoordGroupArray::translate ); CoordGroupArray_exposer.def( "translate" , translate_function_value , ( bp::arg("i"), bp::arg("delta") ) , "Translate all of the coordinates in the ith CoordGroup by delta" ); } { //::SireVol::CoordGroupArray::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireVol::CoordGroupArray::typeName ); CoordGroupArray_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireVol::CoordGroupArray::update typedef void ( ::SireVol::CoordGroupArray::*update_function_type)( ::quint32,::SireVol::CoordGroup const & ) ; update_function_type update_function_value( &::SireVol::CoordGroupArray::update ); CoordGroupArray_exposer.def( "update" , update_function_value , ( bp::arg("i"), bp::arg("cgroup") ) , "Update the CoordGroup at index i so that it is equal to cgroup. Note/nthat cgroup must contain the same number of coordinates as the existing/nCoordGroup at this index/nThrow: SireError::invalid_index/nThrow: SireError::incompatible_error/n" ); } { //::SireVol::CoordGroupArray::update typedef void ( ::SireVol::CoordGroupArray::*update_function_type)( ::quint32,::QVector< SireMaths::Vector > const & ) ; update_function_type update_function_value( &::SireVol::CoordGroupArray::update ); CoordGroupArray_exposer.def( "update" , update_function_value , ( bp::arg("i"), bp::arg("coords") ) , "Update the CoordGroup at index i so that it has coordinates coords/nThere must contain the same number of coordinates as the existing/nCoordGroup at this index/nThrow: SireError::invalid_index/nThrow: SireError::incompatible_error/n" ); } { //::SireVol::CoordGroupArray::update typedef void ( ::SireVol::CoordGroupArray::*update_function_type)( ::quint32,::SireMaths::Vector const *,int ) ; update_function_type update_function_value( &::SireVol::CoordGroupArray::update ); CoordGroupArray_exposer.def( "update" , update_function_value , ( bp::arg("i"), bp::arg("coords"), bp::arg("ncoords") ) , "Update the CoordGroup at index i so that it has coordinates coords/n(there are ncoords coordinates in this array)/nThere must contain the same number of coordinates as the existing/nCoordGroup at this index/nThrow: SireError::invalid_index/nThrow: SireError::incompatible_error/n" ); } { //::SireVol::CoordGroupArray::what typedef char const * ( ::SireVol::CoordGroupArray::*what_function_type)( ) const; what_function_type what_function_value( &::SireVol::CoordGroupArray::what ); CoordGroupArray_exposer.def( "what" , what_function_value , "" ); } CoordGroupArray_exposer.staticmethod( "typeName" ); CoordGroupArray_exposer.def( "__copy__", &__copy__); CoordGroupArray_exposer.def( "__deepcopy__", &__copy__); CoordGroupArray_exposer.def( "clone", &__copy__); CoordGroupArray_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireVol::CoordGroupArray >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CoordGroupArray_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireVol::CoordGroupArray >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CoordGroupArray_exposer.def( "__str__", &__str__< ::SireVol::CoordGroupArray > ); CoordGroupArray_exposer.def( "__repr__", &__str__< ::SireVol::CoordGroupArray > ); CoordGroupArray_exposer.def( "__len__", &__len_size< ::SireVol::CoordGroupArray > ); }}
开发者ID:Steboss,项目名称:Sire,代码行数:101,
示例3: register_ExBase_class//.........这里部分代码省略......... "symbols" , symbols_function_value , "Return the set of Symbols that appear in this ExBase" ); } { //::SireCAS::ExBase::toOpenMMString typedef ::QString ( ::SireCAS::ExBase::*toOpenMMString_function_type)( ) const; toOpenMMString_function_type toOpenMMString_function_value( &::SireCAS::ExBase::toOpenMMString ); ExBase_exposer.def( "toOpenMMString" , toOpenMMString_function_value , "Return a string representation of this object in the OpenMM syntax" ); } { //::SireCAS::ExBase::toString typedef ::QString ( ::SireCAS::ExBase::*toString_function_type)( ) const; toString_function_type toString_function_value( &::SireCAS::ExBase::toString ); ExBase_exposer.def( "toString" , toString_function_value , "Return a string representation of this object" ); } { //::SireCAS::ExBase::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireCAS::ExBase::typeName ); ExBase_exposer.def( "typeName" , typeName_function_value , "Return the name of this class type" ); } { //::SireCAS::ExBase::what typedef char const * ( ::SireCAS::ExBase::*what_function_type)( ) const; what_function_type what_function_value( &::SireCAS::ExBase::what ); ExBase_exposer.def( "what" , what_function_value , "Return the name of the type of this ExBase object" ); } ExBase_exposer.staticmethod( "typeName" ); ExBase_exposer.def( bp::self * bp::self ); ExBase_exposer.def( bp::self * bp::other< SireCAS::Expression >() ); ExBase_exposer.def( bp::self * bp::other< double >() ); ExBase_exposer.def( bp::other< double >() * bp::self ); ExBase_exposer.def( bp::self * bp::other< SireMaths::Complex >() ); ExBase_exposer.def( bp::self + bp::self ); ExBase_exposer.def( bp::self + bp::other< SireCAS::Expression >() ); ExBase_exposer.def( bp::self + bp::other< double >() ); ExBase_exposer.def( bp::other< double >() + bp::self ); ExBase_exposer.def( bp::self + bp::other< SireMaths::Complex >() ); ExBase_exposer.def( bp::self - bp::self ); ExBase_exposer.def( bp::self - bp::other< SireCAS::Expression >() ); ExBase_exposer.def( bp::self - bp::other< double >() ); ExBase_exposer.def( bp::other< double >() - bp::self ); ExBase_exposer.def( bp::self - bp::other< SireMaths::Complex >() ); ExBase_exposer.def( bp::self / bp::self ); ExBase_exposer.def( bp::self / bp::other< SireCAS::Expression >() ); ExBase_exposer.def( bp::self / bp::other< double >() ); ExBase_exposer.def( bp::other< double >() / bp::self ); ExBase_exposer.def( bp::self / bp::other< SireMaths::Complex >() ); ExBase_exposer.def( self + self ); ExBase_exposer.def( self - self ); ExBase_exposer.def( self * self ); ExBase_exposer.def( self / self ); ExBase_exposer.def( other<double>() + self ); ExBase_exposer.def( other<double>() - self ); ExBase_exposer.def( other<double>() * self ); ExBase_exposer.def( other<double>() / self ); ExBase_exposer.def( self + other<double>() ); ExBase_exposer.def( self - other<double>() ); ExBase_exposer.def( self * other<double>() ); ExBase_exposer.def( self / other<double>() ); ExBase_exposer.def( other<SireMaths::Complex>() + self ); ExBase_exposer.def( other<SireMaths::Complex>() - self ); ExBase_exposer.def( other<SireMaths::Complex>() * self ); ExBase_exposer.def( other<SireMaths::Complex>() / self ); ExBase_exposer.def( self + other<SireMaths::Complex>() ); ExBase_exposer.def( self - other<SireMaths::Complex>() ); ExBase_exposer.def( self * other<SireMaths::Complex>() ); ExBase_exposer.def( self / other<SireMaths::Complex>() ); ExBase_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireCAS::ExBase >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); ExBase_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireCAS::ExBase >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); ExBase_exposer.def( "__str__", &__str__< ::SireCAS::ExBase > ); ExBase_exposer.def( "__repr__", &__str__< ::SireCAS::ExBase > ); ExBase_exposer.def( "__hash__", &::SireCAS::ExBase::hash ); }}
开发者ID:Steboss,项目名称:Sire,代码行数:101,
示例4: register_Specify_SegID__class//.........这里部分代码省略......... } Specify_SegID__exposer.def( bp::self != bp::self ); Specify_SegID__exposer.def( bp::self != bp::other< SireID::ID >() ); { //::SireID::Specify< SireMol::SegID >::operator() typedef SireID::Specify< SireMol::SegID > exported_class_t; typedef ::SireID::Specify< SireMol::SegID > ( ::SireID::Specify< SireMol::SegID >::*__call___function_type )( int ) const; __call___function_type __call___function_value( &::SireID::Specify< SireMol::SegID >::operator() ); Specify_SegID__exposer.def( "__call__" , __call___function_value , ( bp::arg("i") ) ); } { //::SireID::Specify< SireMol::SegID >::operator() typedef SireID::Specify< SireMol::SegID > exported_class_t; typedef ::SireID::Specify< SireMol::SegID > ( ::SireID::Specify< SireMol::SegID >::*__call___function_type )( int,int ) const; __call___function_type __call___function_value( &::SireID::Specify< SireMol::SegID >::operator() ); Specify_SegID__exposer.def( "__call__" , __call___function_value , ( bp::arg("i"), bp::arg("j") ) ); } { //::SireID::Specify< SireMol::SegID >::operator= typedef SireID::Specify< SireMol::SegID > exported_class_t; typedef ::SireID::Specify< SireMol::SegID > & ( ::SireID::Specify< SireMol::SegID >::*assign_function_type )( ::SireID::Specify< SireMol::SegID > const & ) ; assign_function_type assign_function_value( &::SireID::Specify< SireMol::SegID >::operator= ); Specify_SegID__exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } Specify_SegID__exposer.def( bp::self == bp::self ); Specify_SegID__exposer.def( bp::self == bp::other< SireID::ID >() ); { //::SireID::Specify< SireMol::SegID >::operator[] typedef SireID::Specify< SireMol::SegID > exported_class_t; typedef ::SireID::Specify< SireMol::SegID > ( ::SireID::Specify< SireMol::SegID >::*__getitem___function_type )( int ) const; __getitem___function_type __getitem___function_value( &::SireID::Specify< SireMol::SegID >::operator[] ); Specify_SegID__exposer.def( "__getitem__" , __getitem___function_value , ( bp::arg("i") ) ); } { //::SireID::Specify< SireMol::SegID >::toString typedef SireID::Specify< SireMol::SegID > exported_class_t; typedef ::QString ( ::SireID::Specify< SireMol::SegID >::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireID::Specify< SireMol::SegID >::toString ); Specify_SegID__exposer.def( "toString" , toString_function_value ); } { //::SireID::Specify< SireMol::SegID >::typeName typedef SireID::Specify< SireMol::SegID > exported_class_t; typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireID::Specify< SireMol::SegID >::typeName ); Specify_SegID__exposer.def( "typeName" , typeName_function_value ); } { //::SireID::Specify< SireMol::SegID >::what typedef SireID::Specify< SireMol::SegID > exported_class_t; typedef char const * ( ::SireID::Specify< SireMol::SegID >::*what_function_type )( ) const; what_function_type what_function_value( &::SireID::Specify< SireMol::SegID >::what ); Specify_SegID__exposer.def( "what" , what_function_value ); } Specify_SegID__exposer.staticmethod( "typeName" ); Specify_SegID__exposer.def( "__copy__", &__copy__); Specify_SegID__exposer.def( "__deepcopy__", &__copy__); Specify_SegID__exposer.def( "clone", &__copy__); Specify_SegID__exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireID::Specify<SireMol::SegID> >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); Specify_SegID__exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireID::Specify<SireMol::SegID> >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); Specify_SegID__exposer.def( "__str__", &__str__< ::SireID::Specify<SireMol::SegID> > ); Specify_SegID__exposer.def( "__repr__", &__str__< ::SireID::Specify<SireMol::SegID> > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例5: register_MultiVector_class//.........这里部分代码省略......... MultiVector_exposer.def( "swap" , swap_function_value , ( bp::arg("v0"), bp::arg("idx0"), bp::arg("v1"), bp::arg("idx1") ) , "Swap the values of the value at index idx0 in f0 with the value at index idx in f1" ); } { //::SireMaths::MultiVector::toString typedef ::QString ( ::SireMaths::MultiVector::*toString_function_type)( ) const; toString_function_type toString_function_value( &::SireMaths::MultiVector::toString ); MultiVector_exposer.def( "toString" , toString_function_value , "Return a QString representation of the vector" ); } { //::SireMaths::MultiVector::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMaths::MultiVector::typeName ); MultiVector_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireMaths::MultiVector::what typedef char const * ( ::SireMaths::MultiVector::*what_function_type)( ) const; what_function_type what_function_value( &::SireMaths::MultiVector::what ); MultiVector_exposer.def( "what" , what_function_value , "" ); } { //::SireMaths::MultiVector::x typedef ::SireMaths::MultiDouble const & ( ::SireMaths::MultiVector::*x_function_type)( ) const; x_function_type x_function_value( &::SireMaths::MultiVector::x ); MultiVector_exposer.def( "x" , x_function_value , bp::return_value_policy< bp::copy_const_reference >() , "" ); } { //::SireMaths::MultiVector::y typedef ::SireMaths::MultiDouble const & ( ::SireMaths::MultiVector::*y_function_type)( ) const; y_function_type y_function_value( &::SireMaths::MultiVector::y ); MultiVector_exposer.def( "y" , y_function_value , bp::return_value_policy< bp::copy_const_reference >() , "" ); } { //::SireMaths::MultiVector::z
开发者ID:Steboss,项目名称:Sire,代码行数:67,
示例6: register_AngleComponent_classvoid register_AngleComponent_class(){ { //::SireMM::AngleComponent typedef bp::class_< SireMM::AngleComponent, bp::bases< SireFF::FFComponent, SireCAS::Symbol, SireCAS::ExBase > > AngleComponent_exposer_t; AngleComponent_exposer_t AngleComponent_exposer = AngleComponent_exposer_t( "AngleComponent", "This class represents a Angle component of a forcefield", bp::init< bp::optional< SireFF::FFName const & > >(( bp::arg("ffname")=SireFF::FFName() ), "Constructor") ); bp::scope AngleComponent_scope( AngleComponent_exposer ); AngleComponent_exposer.def( bp::init< SireCAS::Symbol const & >(( bp::arg("symbol") ), "Construct from a symbol/nThrow: SireError::incompatible_error/n") ); AngleComponent_exposer.def( bp::init< SireMM::AngleComponent const & >(( bp::arg("other") ), "Copy constructor") ); { //::SireMM::AngleComponent::changeEnergy typedef void ( ::SireMM::AngleComponent::*changeEnergy_function_type)( ::SireFF::FF &,::SireMM::AngleEnergy const & ) const; changeEnergy_function_type changeEnergy_function_value( &::SireMM::AngleComponent::changeEnergy ); AngleComponent_exposer.def( "changeEnergy" , changeEnergy_function_value , ( bp::arg("ff"), bp::arg("angnrg") ) , "Change the component of the energy in the forcefield ff/nby delta" ); } { //::SireMM::AngleComponent::setEnergy typedef void ( ::SireMM::AngleComponent::*setEnergy_function_type)( ::SireFF::FF &,::SireMM::AngleEnergy const & ) const; setEnergy_function_type setEnergy_function_value( &::SireMM::AngleComponent::setEnergy ); AngleComponent_exposer.def( "setEnergy" , setEnergy_function_value , ( bp::arg("ff"), bp::arg("angnrg") ) , "Set the component of the energy in the forcefield ff/nto be equal to the passed energy" ); } { //::SireMM::AngleComponent::symbols typedef ::SireCAS::Symbols ( ::SireMM::AngleComponent::*symbols_function_type)( ) const; symbols_function_type symbols_function_value( &::SireMM::AngleComponent::symbols ); AngleComponent_exposer.def( "symbols" , symbols_function_value , "" ); } { //::SireMM::AngleComponent::total typedef ::SireMM::AngleComponent const & ( ::SireMM::AngleComponent::*total_function_type)( ) const; total_function_type total_function_value( &::SireMM::AngleComponent::total ); AngleComponent_exposer.def( "total" , total_function_value , bp::return_value_policy<bp::clone_const_reference>() , "" ); } { //::SireMM::AngleComponent::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::AngleComponent::typeName ); AngleComponent_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireMM::AngleComponent::what typedef char const * ( ::SireMM::AngleComponent::*what_function_type)( ) const; what_function_type what_function_value( &::SireMM::AngleComponent::what ); AngleComponent_exposer.def( "what" , what_function_value , "" ); } AngleComponent_exposer.staticmethod( "typeName" ); AngleComponent_exposer.def( "__copy__", &__copy__); AngleComponent_exposer.def( "__deepcopy__", &__copy__); AngleComponent_exposer.def( "clone", &__copy__); AngleComponent_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::AngleComponent >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); AngleComponent_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::AngleComponent >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); AngleComponent_exposer.def( "__str__", &__str__< ::SireMM::AngleComponent > ); AngleComponent_exposer.def( "__repr__", &__str__< ::SireMM::AngleComponent > ); AngleComponent_exposer.def( "__hash__", &::SireMM::AngleComponent::hash ); }}
开发者ID:Steboss,项目名称:Sire,代码行数:91,
示例7: register_Expression_class//.........这里部分代码省略......... { //::SireCAS::Expression::symbols typedef ::SireCAS::Symbols ( ::SireCAS::Expression::*symbols_function_type )( ) const; symbols_function_type symbols_function_value( &::SireCAS::Expression::symbols ); Expression_exposer.def( "symbols" , symbols_function_value ); } { //::SireCAS::Expression::toString typedef ::QString ( ::SireCAS::Expression::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireCAS::Expression::toString ); Expression_exposer.def( "toString" , toString_function_value ); } { //::SireCAS::Expression::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireCAS::Expression::typeName ); Expression_exposer.def( "typeName" , typeName_function_value ); } { //::SireCAS::Expression::what typedef char const * ( ::SireCAS::Expression::*what_function_type )( ) const; what_function_type what_function_value( &::SireCAS::Expression::what ); Expression_exposer.def( "what" , what_function_value ); } Expression_exposer.staticmethod( "typeName" ); Expression_exposer.def( bp::self * bp::other< SireMaths::Complex >() ); Expression_exposer.def( bp::other< SireMaths::Complex >() * bp::self ); Expression_exposer.def( bp::self * bp::other< double >() ); Expression_exposer.def( bp::other< double >() * bp::self ); Expression_exposer.def( bp::self * bp::self ); Expression_exposer.def( bp::self * bp::other< SireCAS::ExBase >() ); Expression_exposer.def( bp::other< SireMaths::Complex >() + bp::self ); Expression_exposer.def( bp::self + bp::other< SireMaths::Complex >() ); Expression_exposer.def( bp::other< double >() + bp::self ); Expression_exposer.def( bp::self + bp::other< double >() ); Expression_exposer.def( bp::self + bp::self ); Expression_exposer.def( bp::self + bp::other< SireCAS::ExBase >() ); Expression_exposer.def( bp::other< double >() - bp::self ); Expression_exposer.def( bp::self - bp::other< double >() ); Expression_exposer.def( bp::self - bp::self ); Expression_exposer.def( bp::self - bp::other< SireCAS::ExBase >() ); Expression_exposer.def( bp::other< SireMaths::Complex >() / bp::self ); Expression_exposer.def( bp::self / bp::other< SireMaths::Complex >() ); Expression_exposer.def( bp::other< double >() / bp::self ); Expression_exposer.def( bp::self / bp::other< double >() ); Expression_exposer.def( bp::self / bp::self ); Expression_exposer.def( bp::self / bp::other< SireCAS::ExBase >() ); Expression_exposer.def( self + self ); Expression_exposer.def( self - self ); Expression_exposer.def( self * self );
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:67,
示例8: register_Process_class//.........这里部分代码省略......... run_function_type run_function_value( &::SireBase::Process::run ); Process_exposer.def( "run" , run_function_value , ( bp::arg("command") ) , "Run the command command and return a Process object that can be/nused to monitor the command" ); } { //::SireBase::Process::run typedef ::SireBase::Process ( *run_function_type )( ::QString const &,::QString const & ); run_function_type run_function_value( &::SireBase::Process::run ); Process_exposer.def( "run" , run_function_value , ( bp::arg("command"), bp::arg("arg") ) , "Run the command command with the solitary argument arg" ); } { //::SireBase::Process::run typedef ::SireBase::Process ( *run_function_type )( ::QString const &,::QStringList const & ); run_function_type run_function_value( &::SireBase::Process::run ); Process_exposer.def( "run" , run_function_value , ( bp::arg("command"), bp::arg("arguments") ) , "Run the command command with the arguments arguments, and/nreturn a Process object that can be used to query and control the/njob" ); } { //::SireBase::Process::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireBase::Process::typeName ); Process_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireBase::Process::wait typedef void ( ::SireBase::Process::*wait_function_type)( ) ; wait_function_type wait_function_value( &::SireBase::Process::wait ); Process_exposer.def( "wait" , wait_function_value , "Wait until the process has finished" ); } { //::SireBase::Process::wait typedef bool ( ::SireBase::Process::*wait_function_type)( int ) ; wait_function_type wait_function_value( &::SireBase::Process::wait ); Process_exposer.def( "wait" , wait_function_value , ( bp::arg("ms") ) , "Wait until the process has finished, or until ms milliseconds have passed./nThis returns whether or not the process has finished" ); } { //::SireBase::Process::wasKilled typedef bool ( ::SireBase::Process::*wasKilled_function_type)( ) ; wasKilled_function_type wasKilled_function_value( &::SireBase::Process::wasKilled ); Process_exposer.def( "wasKilled" , wasKilled_function_value , "Return whether or not the process was killed" ); } { //::SireBase::Process::what typedef char const * ( ::SireBase::Process::*what_function_type)( ) const; what_function_type what_function_value( &::SireBase::Process::what ); Process_exposer.def( "what" , what_function_value , "" ); } Process_exposer.staticmethod( "killAll" ); Process_exposer.staticmethod( "run" ); Process_exposer.staticmethod( "typeName" ); Process_exposer.def( "__copy__", &__copy__); Process_exposer.def( "__deepcopy__", &__copy__); Process_exposer.def( "clone", &__copy__); Process_exposer.def( "__str__", &pvt_get_name); Process_exposer.def( "__repr__", &pvt_get_name); }}
开发者ID:Steboss,项目名称:Sire,代码行数:101,
示例9: register_MolWithResID_class//.........这里部分代码省略......... typedef ::QList< SireMol::MolNum > ( ::SireMol::MolWithResID::*map_function_type )( ::SireMol::Molecules const & ) const; map_function_type map_function_value( &::SireMol::MolWithResID::map ); MolWithResID_exposer.def( "map" , map_function_value , ( bp::arg("molecules") ) ); } { //::SireMol::MolWithResID::map typedef ::QList< SireMol::MolNum > ( ::SireMol::MolWithResID::*map_function_type )( ::SireMol::MoleculeGroup const & ) const; map_function_type map_function_value( &::SireMol::MolWithResID::map ); MolWithResID_exposer.def( "map" , map_function_value , ( bp::arg("molgroup") ) ); } { //::SireMol::MolWithResID::map typedef ::QList< SireMol::MolNum > ( ::SireMol::MolWithResID::*map_function_type )( ::SireMol::MolGroupsBase const & ) const; map_function_type map_function_value( &::SireMol::MolWithResID::map ); MolWithResID_exposer.def( "map" , map_function_value , ( bp::arg("molgroups") ) ); } MolWithResID_exposer.def( bp::self != bp::self ); { //::SireMol::MolWithResID::operator= typedef ::SireMol::MolWithResID & ( ::SireMol::MolWithResID::*assign_function_type )( ::SireMol::MolWithResID const & ) ; assign_function_type assign_function_value( &::SireMol::MolWithResID::operator= ); MolWithResID_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } MolWithResID_exposer.def( bp::self == bp::other< SireID::ID >() ); MolWithResID_exposer.def( bp::self == bp::self ); { //::SireMol::MolWithResID::resID typedef ::SireMol::ResID const & ( ::SireMol::MolWithResID::*resID_function_type )( ) const; resID_function_type resID_function_value( &::SireMol::MolWithResID::resID ); MolWithResID_exposer.def( "resID" , resID_function_value , bp::return_value_policy<bp::clone_const_reference>() ); } { //::SireMol::MolWithResID::toString typedef ::QString ( ::SireMol::MolWithResID::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireMol::MolWithResID::toString ); MolWithResID_exposer.def( "toString" , toString_function_value ); } { //::SireMol::MolWithResID::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMol::MolWithResID::typeName ); MolWithResID_exposer.def( "typeName" , typeName_function_value ); } { //::SireMol::MolWithResID::what typedef char const * ( ::SireMol::MolWithResID::*what_function_type )( ) const; what_function_type what_function_value( &::SireMol::MolWithResID::what ); MolWithResID_exposer.def( "what" , what_function_value ); } MolWithResID_exposer.staticmethod( "typeName" ); MolWithResID_exposer.def( "__copy__", &__copy__); MolWithResID_exposer.def( "__deepcopy__", &__copy__); MolWithResID_exposer.def( "clone", &__copy__); MolWithResID_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMol::MolWithResID >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); MolWithResID_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMol::MolWithResID >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); MolWithResID_exposer.def( "__str__", &__str__< ::SireMol::MolWithResID > ); MolWithResID_exposer.def( "__repr__", &__str__< ::SireMol::MolWithResID > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例10: register_IDOrSet_SegID__class//.........这里部分代码省略......... typedef SireID::IDOrSet< SireMol::SegID > exported_class_t; typedef bool ( ::SireID::IDOrSet< SireMol::SegID >::*isNull_function_type )( ) const; isNull_function_type isNull_function_value( &::SireID::IDOrSet< SireMol::SegID >::isNull ); IDOrSet_SegID__exposer.def( "isNull" , isNull_function_value ); } { //::SireID::IDOrSet< SireMol::SegID >::map typedef SireID::IDOrSet< SireMol::SegID > exported_class_t; typedef ::QList< SireMol::SegIdx > ( ::SireID::IDOrSet< SireMol::SegID >::*map_function_type )( ::SireMol::MolInfo const & ) const; map_function_type map_function_value( &::SireID::IDOrSet< SireMol::SegID >::map ); IDOrSet_SegID__exposer.def( "map" , map_function_value , ( bp::arg("obj") ) ); } IDOrSet_SegID__exposer.def( bp::self != bp::other< SireID::ID >() ); IDOrSet_SegID__exposer.def( bp::self != bp::self ); IDOrSet_SegID__exposer.def( bp::self != bp::other< SireMol::SegID >() ); { //::SireID::IDOrSet< SireMol::SegID >::operator= typedef SireID::IDOrSet< SireMol::SegID > exported_class_t; typedef ::SireID::IDOrSet< SireMol::SegID > & ( ::SireID::IDOrSet< SireMol::SegID >::*assign_function_type )( ::SireID::IDOrSet< SireMol::SegID > const & ) ; assign_function_type assign_function_value( &::SireID::IDOrSet< SireMol::SegID >::operator= ); IDOrSet_SegID__exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } { //::SireID::IDOrSet< SireMol::SegID >::operator= typedef SireID::IDOrSet< SireMol::SegID > exported_class_t; typedef ::SireID::IDOrSet< SireMol::SegID > & ( ::SireID::IDOrSet< SireMol::SegID >::*assign_function_type )( ::SireMol::SegID const & ) ; assign_function_type assign_function_value( &::SireID::IDOrSet< SireMol::SegID >::operator= ); IDOrSet_SegID__exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } IDOrSet_SegID__exposer.def( bp::self == bp::other< SireID::ID >() ); IDOrSet_SegID__exposer.def( bp::self == bp::self ); IDOrSet_SegID__exposer.def( bp::self == bp::other< SireMol::SegID >() ); { //::SireID::IDOrSet< SireMol::SegID >::toString typedef SireID::IDOrSet< SireMol::SegID > exported_class_t; typedef ::QString ( ::SireID::IDOrSet< SireMol::SegID >::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireID::IDOrSet< SireMol::SegID >::toString ); IDOrSet_SegID__exposer.def( "toString" , toString_function_value ); } { //::SireID::IDOrSet< SireMol::SegID >::typeName typedef SireID::IDOrSet< SireMol::SegID > exported_class_t; typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireID::IDOrSet< SireMol::SegID >::typeName ); IDOrSet_SegID__exposer.def( "typeName" , typeName_function_value ); } { //::SireID::IDOrSet< SireMol::SegID >::what typedef SireID::IDOrSet< SireMol::SegID > exported_class_t; typedef char const * ( ::SireID::IDOrSet< SireMol::SegID >::*what_function_type )( ) const; what_function_type what_function_value( &::SireID::IDOrSet< SireMol::SegID >::what ); IDOrSet_SegID__exposer.def( "what" , what_function_value ); } IDOrSet_SegID__exposer.staticmethod( "typeName" ); IDOrSet_SegID__exposer.def( "__copy__", &__copy__); IDOrSet_SegID__exposer.def( "__deepcopy__", &__copy__); IDOrSet_SegID__exposer.def( "clone", &__copy__); IDOrSet_SegID__exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireID::IDOrSet<SireMol::SegID> >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); IDOrSet_SegID__exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireID::IDOrSet<SireMol::SegID> >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); IDOrSet_SegID__exposer.def( "__str__", &__str__< ::SireID::IDOrSet<SireMol::SegID> > ); IDOrSet_SegID__exposer.def( "__repr__", &__str__< ::SireID::IDOrSet<SireMol::SegID> > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例11: register_Process_class//.........这里部分代码省略......... , ( bp::arg("other") ) , bp::return_self< >() ); } Process_exposer.def( bp::self == bp::self ); { //::SireBase::Process::run typedef ::SireBase::Process ( *run_function_type )( ::QString const & ); run_function_type run_function_value( &::SireBase::Process::run ); Process_exposer.def( "run" , run_function_value , ( bp::arg("command") ) ); } { //::SireBase::Process::run typedef ::SireBase::Process ( *run_function_type )( ::QString const &,::QString const & ); run_function_type run_function_value( &::SireBase::Process::run ); Process_exposer.def( "run" , run_function_value , ( bp::arg("command"), bp::arg("arg") ) ); } { //::SireBase::Process::run typedef ::SireBase::Process ( *run_function_type )( ::QString const &,::QStringList const & ); run_function_type run_function_value( &::SireBase::Process::run ); Process_exposer.def( "run" , run_function_value , ( bp::arg("command"), bp::arg("arguments") ) ); } { //::SireBase::Process::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireBase::Process::typeName ); Process_exposer.def( "typeName" , typeName_function_value ); } { //::SireBase::Process::wait typedef void ( ::SireBase::Process::*wait_function_type )( ) ; wait_function_type wait_function_value( &::SireBase::Process::wait ); Process_exposer.def( "wait" , wait_function_value ); } { //::SireBase::Process::wait typedef bool ( ::SireBase::Process::*wait_function_type )( int ) ; wait_function_type wait_function_value( &::SireBase::Process::wait ); Process_exposer.def( "wait" , wait_function_value , ( bp::arg("ms") ) ); } { //::SireBase::Process::wasKilled typedef bool ( ::SireBase::Process::*wasKilled_function_type )( ) ; wasKilled_function_type wasKilled_function_value( &::SireBase::Process::wasKilled ); Process_exposer.def( "wasKilled" , wasKilled_function_value ); } { //::SireBase::Process::what typedef char const * ( ::SireBase::Process::*what_function_type )( ) const; what_function_type what_function_value( &::SireBase::Process::what ); Process_exposer.def( "what" , what_function_value ); } Process_exposer.staticmethod( "killAll" ); Process_exposer.staticmethod( "run" ); Process_exposer.staticmethod( "typeName" ); Process_exposer.def( "__copy__", &__copy__); Process_exposer.def( "__deepcopy__", &__copy__); Process_exposer.def( "clone", &__copy__); Process_exposer.def( "__str__", &pvt_get_name); Process_exposer.def( "__repr__", &pvt_get_name); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例12: register_InternalParameters3D_class//.........这里部分代码省略......... , "Return the coordinates" ); } { //::SireMM::InternalParameters3D::changedAllGroups typedef bool ( ::SireMM::InternalParameters3D::*changedAllGroups_function_type)( ::SireMM::InternalParameters3D const & ) const; changedAllGroups_function_type changedAllGroups_function_value( &::SireMM::InternalParameters3D::changedAllGroups ); InternalParameters3D_exposer.def( "changedAllGroups" , changedAllGroups_function_value , ( bp::arg("other") ) , "Return whether or not all of the CutGroup have changed compared to other" ); } { //::SireMM::InternalParameters3D::getChangedGroups typedef ::QSet< unsigned int > ( ::SireMM::InternalParameters3D::*getChangedGroups_function_type)( ::SireMM::InternalParameters3D const & ) const; getChangedGroups_function_type getChangedGroups_function_value( &::SireMM::InternalParameters3D::getChangedGroups ); InternalParameters3D_exposer.def( "getChangedGroups" , getChangedGroups_function_value , ( bp::arg("other") ) , "Return the indicies of the CutGroups that have changed in other compared/nto this set of parameters" ); } { //::SireMM::InternalParameters3D::nCutGroups typedef int ( ::SireMM::InternalParameters3D::*nCutGroups_function_type)( ) const; nCutGroups_function_type nCutGroups_function_value( &::SireMM::InternalParameters3D::nCutGroups ); InternalParameters3D_exposer.def( "nCutGroups" , nCutGroups_function_value , "Return the number of CutGroups in the molecule whose parameters are/ncontained in this object" ); } InternalParameters3D_exposer.def( bp::self != bp::self ); { //::SireMM::InternalParameters3D::operator= typedef ::SireMM::InternalParameters3D & ( ::SireMM::InternalParameters3D::*assign_function_type)( ::SireMM::InternalParameters3D const & ) ; assign_function_type assign_function_value( &::SireMM::InternalParameters3D::operator= ); InternalParameters3D_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() , "" ); } InternalParameters3D_exposer.def( bp::self == bp::self ); { //::SireMM::InternalParameters3D::setAtomicCoordinates typedef void ( ::SireMM::InternalParameters3D::*setAtomicCoordinates_function_type)( ::SireFF::detail::AtomicCoords3D const & ) ; setAtomicCoordinates_function_type setAtomicCoordinates_function_value( &::SireMM::InternalParameters3D::setAtomicCoordinates ); InternalParameters3D_exposer.def( "setAtomicCoordinates" , setAtomicCoordinates_function_value , ( bp::arg("coords") ) , "Set the coordinates used by these parameters" ); } { //::SireMM::InternalParameters3D::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::InternalParameters3D::typeName ); InternalParameters3D_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireMM::InternalParameters3D::what typedef char const * ( ::SireMM::InternalParameters3D::*what_function_type)( ) const; what_function_type what_function_value( &::SireMM::InternalParameters3D::what ); InternalParameters3D_exposer.def( "what" , what_function_value , "" ); } InternalParameters3D_exposer.staticmethod( "typeName" ); InternalParameters3D_exposer.def( "__copy__", &__copy__); InternalParameters3D_exposer.def( "__deepcopy__", &__copy__); InternalParameters3D_exposer.def( "clone", &__copy__); InternalParameters3D_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::InternalParameters3D >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); InternalParameters3D_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::InternalParameters3D >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); InternalParameters3D_exposer.def( "__str__", &pvt_get_name); InternalParameters3D_exposer.def( "__repr__", &pvt_get_name); }}
开发者ID:Steboss,项目名称:Sire,代码行数:101,
示例13: register_CLJSoftIntraShiftFunction_classvoid register_CLJSoftIntraShiftFunction_class(){ { //::SireMM::CLJSoftIntraShiftFunction typedef bp::class_< SireMM::CLJSoftIntraShiftFunction, bp::bases< SireMM::CLJSoftIntraFunction, SireMM::CLJIntraFunction, SireMM::CLJCutoffFunction, SireMM::CLJFunction, SireBase::Property > > CLJSoftIntraShiftFunction_exposer_t; CLJSoftIntraShiftFunction_exposer_t CLJSoftIntraShiftFunction_exposer = CLJSoftIntraShiftFunction_exposer_t( "CLJSoftIntraShiftFunction", bp::init< >() ); bp::scope CLJSoftIntraShiftFunction_scope( CLJSoftIntraShiftFunction_exposer ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireUnits::Dimension::Length >(( bp::arg("cutoff") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireUnits::Dimension::Length, SireUnits::Dimension::Length >(( bp::arg("coul_cutoff"), bp::arg("lj_cutoff") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireVol::Space const &, SireUnits::Dimension::Length >(( bp::arg("space"), bp::arg("cutoff") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireVol::Space const &, SireUnits::Dimension::Length, SireUnits::Dimension::Length >(( bp::arg("space"), bp::arg("coul_cutoff"), bp::arg("lj_cutoff") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireUnits::Dimension::Length, SireMM::CLJFunction::COMBINING_RULES >(( bp::arg("cutoff"), bp::arg("combining_rules") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireUnits::Dimension::Length, SireUnits::Dimension::Length, SireMM::CLJFunction::COMBINING_RULES >(( bp::arg("coul_cutoff"), bp::arg("lj_cutoff"), bp::arg("combining_rules") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireVol::Space const &, SireMM::CLJFunction::COMBINING_RULES >(( bp::arg("space"), bp::arg("combining_rules") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireVol::Space const &, SireUnits::Dimension::Length, SireMM::CLJFunction::COMBINING_RULES >(( bp::arg("space"), bp::arg("cutoff"), bp::arg("combining_rules") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireVol::Space const &, SireUnits::Dimension::Length, SireUnits::Dimension::Length, SireMM::CLJFunction::COMBINING_RULES >(( bp::arg("space"), bp::arg("coul_cutoff"), bp::arg("lj_cutoff"), bp::arg("combining_rules") )) ); CLJSoftIntraShiftFunction_exposer.def( bp::init< SireMM::CLJSoftIntraShiftFunction const & >(( bp::arg("other") )) ); { //::SireMM::CLJSoftIntraShiftFunction::defaultShiftFunction typedef ::SireMM::CLJFunctionPtr ( *defaultShiftFunction_function_type )( ); defaultShiftFunction_function_type defaultShiftFunction_function_value( &::SireMM::CLJSoftIntraShiftFunction::defaultShiftFunction ); CLJSoftIntraShiftFunction_exposer.def( "defaultShiftFunction" , defaultShiftFunction_function_value ); } CLJSoftIntraShiftFunction_exposer.def( bp::self != bp::self ); { //::SireMM::CLJSoftIntraShiftFunction::operator= typedef ::SireMM::CLJSoftIntraShiftFunction & ( ::SireMM::CLJSoftIntraShiftFunction::*assign_function_type )( ::SireMM::CLJSoftIntraShiftFunction const & ) ; assign_function_type assign_function_value( &::SireMM::CLJSoftIntraShiftFunction::operator= ); CLJSoftIntraShiftFunction_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } CLJSoftIntraShiftFunction_exposer.def( bp::self == bp::self ); { //::SireMM::CLJSoftIntraShiftFunction::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::CLJSoftIntraShiftFunction::typeName ); CLJSoftIntraShiftFunction_exposer.def( "typeName" , typeName_function_value ); } { //::SireMM::CLJSoftIntraShiftFunction::what typedef char const * ( ::SireMM::CLJSoftIntraShiftFunction::*what_function_type )( ) const; what_function_type what_function_value( &::SireMM::CLJSoftIntraShiftFunction::what ); CLJSoftIntraShiftFunction_exposer.def( "what" , what_function_value ); } CLJSoftIntraShiftFunction_exposer.staticmethod( "defaultShiftFunction" ); CLJSoftIntraShiftFunction_exposer.staticmethod( "typeName" ); CLJSoftIntraShiftFunction_exposer.def( "__copy__", &__copy__); CLJSoftIntraShiftFunction_exposer.def( "__deepcopy__", &__copy__); CLJSoftIntraShiftFunction_exposer.def( "clone", &__copy__); CLJSoftIntraShiftFunction_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::CLJSoftIntraShiftFunction >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CLJSoftIntraShiftFunction_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::CLJSoftIntraShiftFunction >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CLJSoftIntraShiftFunction_exposer.def( "__str__", &__str__< ::SireMM::CLJSoftIntraShiftFunction > ); CLJSoftIntraShiftFunction_exposer.def( "__repr__", &__str__< ::SireMM::CLJSoftIntraShiftFunction > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:74,
示例14: register_PotentialTable_class//.........这里部分代码省略......... PotentialTable_exposer.def( -bp::self ); PotentialTable_exposer.def( bp::self / bp::other< double >() ); { //::SireFF::PotentialTable::operator= typedef ::SireFF::PotentialTable & ( ::SireFF::PotentialTable::*assign_function_type)( ::SireFF::PotentialTable const & ) ; assign_function_type assign_function_value( &::SireFF::PotentialTable::operator= ); PotentialTable_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() , "" ); } { //::SireFF::PotentialTable::operator= typedef ::SireFF::PotentialTable & ( ::SireFF::PotentialTable::*assign_function_type)( ::SireUnits::Dimension::MolarEnergy const & ) ; assign_function_type assign_function_value( &::SireFF::PotentialTable::operator= ); PotentialTable_exposer.def( "assign" , assign_function_value , ( bp::arg("potential") ) , bp::return_self< >() , "" ); } PotentialTable_exposer.def( bp::self == bp::self ); { //::SireFF::PotentialTable::setAll typedef void ( ::SireFF::PotentialTable::*setAll_function_type)( ::SireUnits::Dimension::MolarEnergy const & ) ; setAll_function_type setAll_function_value( &::SireFF::PotentialTable::setAll ); PotentialTable_exposer.def( "setAll" , setAll_function_value , ( bp::arg("potential") ) , "Set the potential at all atom and grid points equal to potential" ); } { //::SireFF::PotentialTable::subtract typedef void ( ::SireFF::PotentialTable::*subtract_function_type)( ::SireFF::PotentialTable const & ) ; subtract_function_type subtract_function_value( &::SireFF::PotentialTable::subtract ); PotentialTable_exposer.def( "subtract" , subtract_function_value , ( bp::arg("other") ) , "Subtract the contents of the table other from this table. This will only/nsubtract the potentials for the molecules grids that are in both tables" ); } { //::SireFF::PotentialTable::subtract typedef void ( ::SireFF::PotentialTable::*subtract_function_type)( ::SireUnits::Dimension::MolarEnergy const & ) ; subtract_function_type subtract_function_value( &::SireFF::PotentialTable::subtract ); PotentialTable_exposer.def( "subtract" , subtract_function_value , ( bp::arg("potential") ) , "Subtract the potential potential from all of the atom grid points in this table" ); } { //::SireFF::PotentialTable::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireFF::PotentialTable::typeName ); PotentialTable_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireFF::PotentialTable::what typedef char const * ( ::SireFF::PotentialTable::*what_function_type)( ) const; what_function_type what_function_value( &::SireFF::PotentialTable::what ); PotentialTable_exposer.def( "what" , what_function_value , "" ); } PotentialTable_exposer.staticmethod( "typeName" ); PotentialTable_exposer.def( "__copy__", &__copy__); PotentialTable_exposer.def( "__deepcopy__", &__copy__); PotentialTable_exposer.def( "clone", &__copy__); PotentialTable_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireFF::PotentialTable >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); PotentialTable_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireFF::PotentialTable >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); PotentialTable_exposer.def( "__str__", &pvt_get_name); PotentialTable_exposer.def( "__repr__", &pvt_get_name); }}
开发者ID:Steboss,项目名称:Sire,代码行数:101,
示例15: register_InterGroupLJFF_class//.........这里部分代码省略......... "force" , force_function_value , ( bp::arg("forcetable"), bp::arg("symbol"), bp::arg("scale_force")=1 ) ); } InterGroupLJFF_exposer.def( bp::self != bp::self ); { //::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::operator= typedef SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > exported_class_t; typedef ::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > & ( ::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::*assign_function_type )( ::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > const & ) ; assign_function_type assign_function_value( &::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::operator= ); InterGroupLJFF_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } InterGroupLJFF_exposer.def( bp::self == bp::self ); { //::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::potential typedef SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > exported_class_t; typedef void ( ::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::*potential_function_type )( ::SireFF::PotentialTable &,double ) ; potential_function_type potential_function_value( &::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::potential ); InterGroupLJFF_exposer.def( "potential" , potential_function_value , ( bp::arg("potentialtable"), bp::arg("scale_potential")=1 ) ); } { //::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::potential typedef SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > exported_class_t; typedef void ( ::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::*potential_function_type )( ::SireFF::PotentialTable &,::SireCAS::Symbol const &,double ) ; potential_function_type potential_function_value( &::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::potential ); InterGroupLJFF_exposer.def( "potential" , potential_function_value , ( bp::arg("potentialtable"), bp::arg("component"), bp::arg("scale_potential")=1 ) ); } { //::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::potential typedef SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > exported_class_t; typedef void ( ::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::*potential_function_type )( ::SireFF::PotentialTable &,::SireFF::Probe const &,double ) ; potential_function_type potential_function_value( &::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::potential ); InterGroupLJFF_exposer.def( "potential" , potential_function_value , ( bp::arg("potentialtable"), bp::arg("probe"), bp::arg("scale_potential")=1 ) ); } { //::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::potential typedef SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > exported_class_t; typedef void ( ::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::*potential_function_type )( ::SireFF::PotentialTable &,::SireCAS::Symbol const &,::SireFF::Probe const &,double ) ; potential_function_type potential_function_value( &::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::potential ); InterGroupLJFF_exposer.def( "potential" , potential_function_value , ( bp::arg("potentialtable"), bp::arg("component"), bp::arg("probe"), bp::arg("scale_potential")=1 ) ); } { //::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::typeName typedef SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > exported_class_t; typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::typeName ); InterGroupLJFF_exposer.def( "typeName" , typeName_function_value ); } { //::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::what typedef SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > > exported_class_t; typedef char const * ( ::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::*what_function_type )( ) const; what_function_type what_function_value( &::SireFF::Inter2B2G3DFF< SireMM::LJPotentialInterface< SireMM::InterLJPotential > >::what ); InterGroupLJFF_exposer.def( "what" , what_function_value ); } InterGroupLJFF_exposer.staticmethod( "typeName" ); InterGroupLJFF_exposer.def( "__copy__", &__copy__); InterGroupLJFF_exposer.def( "__deepcopy__", &__copy__); InterGroupLJFF_exposer.def( "clone", &__copy__); InterGroupLJFF_exposer.def( "__str__", &__str__< ::SireFF::Inter2B2G3DFF<SireMM::LJPotentialInterface<SireMM::InterLJPotential> > > ); InterGroupLJFF_exposer.def( "__repr__", &__str__< ::SireFF::Inter2B2G3DFF<SireMM::LJPotentialInterface<SireMM::InterLJPotential> > > ); InterGroupLJFF_exposer.def( "__len__", &__len_count< ::SireFF::Inter2B2G3DFF<SireMM::LJPotentialInterface<SireMM::InterLJPotential> > > ); }}
开发者ID:chryswoods,项目名称:Sire,代码行数:101,
示例16: register_CLJ14Group_class//.........这里部分代码省略......... , setStrict_function_value , ( bp::arg("isstrict") ) ); } { //::SireMM::CLJ14Group::toString typedef ::QString ( ::SireMM::CLJ14Group::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireMM::CLJ14Group::toString ); CLJ14Group_exposer.def( "toString" , toString_function_value ); } { //::SireMM::CLJ14Group::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::CLJ14Group::typeName ); CLJ14Group_exposer.def( "typeName" , typeName_function_value ); } { //::SireMM::CLJ14Group::update typedef void ( ::SireMM::CLJ14Group::*update_function_type )( ::SireMol::MoleculeView const & ) ; update_function_type update_function_value( &::SireMM::CLJ14Group::update ); CLJ14Group_exposer.def( "update" , update_function_value , ( bp::arg("new_molecule") ) ); } { //::SireMM::CLJ14Group::updateSelection typedef void ( ::SireMM::CLJ14Group::*updateSelection_function_type )( ::SireMol::AtomSelection const & ) ; updateSelection_function_type updateSelection_function_value( &::SireMM::CLJ14Group::updateSelection ); CLJ14Group_exposer.def( "updateSelection" , updateSelection_function_value , ( bp::arg("selection") ) ); } { //::SireMM::CLJ14Group::usingArithmeticCombiningRules typedef bool ( ::SireMM::CLJ14Group::*usingArithmeticCombiningRules_function_type )( ) const; usingArithmeticCombiningRules_function_type usingArithmeticCombiningRules_function_value( &::SireMM::CLJ14Group::usingArithmeticCombiningRules ); CLJ14Group_exposer.def( "usingArithmeticCombiningRules" , usingArithmeticCombiningRules_function_value ); } { //::SireMM::CLJ14Group::usingGeometricCombiningRules typedef bool ( ::SireMM::CLJ14Group::*usingGeometricCombiningRules_function_type )( ) const; usingGeometricCombiningRules_function_type usingGeometricCombiningRules_function_value( &::SireMM::CLJ14Group::usingGeometricCombiningRules ); CLJ14Group_exposer.def( "usingGeometricCombiningRules" , usingGeometricCombiningRules_function_value ); } { //::SireMM::CLJ14Group::what typedef char const * ( ::SireMM::CLJ14Group::*what_function_type )( ) const; what_function_type what_function_value( &::SireMM::CLJ14Group::what ); CLJ14Group_exposer.def( "what" , what_function_value ); } { //::SireMM::CLJ14Group::wouldChangeProperties typedef bool ( ::SireMM::CLJ14Group::*wouldChangeProperties_function_type )( ::SireBase::PropertyMap const & ) const; wouldChangeProperties_function_type wouldChangeProperties_function_value( &::SireMM::CLJ14Group::wouldChangeProperties ); CLJ14Group_exposer.def( "wouldChangeProperties" , wouldChangeProperties_function_value , ( bp::arg("map") ) ); } CLJ14Group_exposer.staticmethod( "typeName" ); CLJ14Group_exposer.def( "__copy__", &__copy__); CLJ14Group_exposer.def( "__deepcopy__", &__copy__); CLJ14Group_exposer.def( "clone", &__copy__); CLJ14Group_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::CLJ14Group >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CLJ14Group_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::CLJ14Group >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CLJ14Group_exposer.def( "__str__", &__str__< ::SireMM::CLJ14Group > ); CLJ14Group_exposer.def( "__repr__", &__str__< ::SireMM::CLJ14Group > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例17: register_LJParameter_class//.........这里部分代码省略......... } LJParameter_exposer.def( bp::self != bp::self ); LJParameter_exposer.def( bp::self == bp::self ); { //::SireMM::LJParameter::rmin typedef ::SireUnits::Dimension::Length ( ::SireMM::LJParameter::*rmin_function_type )( ) const; rmin_function_type rmin_function_value( &::SireMM::LJParameter::rmin ); LJParameter_exposer.def( "rmin" , rmin_function_value ); } { //::SireMM::LJParameter::sigma typedef ::SireUnits::Dimension::Length ( ::SireMM::LJParameter::*sigma_function_type )( ) const; sigma_function_type sigma_function_value( &::SireMM::LJParameter::sigma ); LJParameter_exposer.def( "sigma" , sigma_function_value ); } { //::SireMM::LJParameter::sqrtEpsilon typedef double ( ::SireMM::LJParameter::*sqrtEpsilon_function_type )( ) const; sqrtEpsilon_function_type sqrtEpsilon_function_value( &::SireMM::LJParameter::sqrtEpsilon ); LJParameter_exposer.def( "sqrtEpsilon" , sqrtEpsilon_function_value ); } { //::SireMM::LJParameter::sqrtSigma typedef double ( ::SireMM::LJParameter::*sqrtSigma_function_type )( ) const; sqrtSigma_function_type sqrtSigma_function_value( &::SireMM::LJParameter::sqrtSigma ); LJParameter_exposer.def( "sqrtSigma" , sqrtSigma_function_value ); } { //::SireMM::LJParameter::toString typedef ::QString ( ::SireMM::LJParameter::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireMM::LJParameter::toString ); LJParameter_exposer.def( "toString" , toString_function_value ); } { //::SireMM::LJParameter::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::LJParameter::typeName ); LJParameter_exposer.def( "typeName" , typeName_function_value ); } { //::SireMM::LJParameter::what typedef char const * ( ::SireMM::LJParameter::*what_function_type )( ) const; what_function_type what_function_value( &::SireMM::LJParameter::what ); LJParameter_exposer.def( "what" , what_function_value ); } { //::SireMM::LJParameter::zeroLJ typedef bool ( ::SireMM::LJParameter::*zeroLJ_function_type )( ) const; zeroLJ_function_type zeroLJ_function_value( &::SireMM::LJParameter::zeroLJ ); LJParameter_exposer.def( "zeroLJ" , zeroLJ_function_value ); } LJParameter_exposer.staticmethod( "dummy" ); LJParameter_exposer.staticmethod( "fromAAndB" ); LJParameter_exposer.staticmethod( "fromRMinAndEpsilon" ); LJParameter_exposer.staticmethod( "fromSigmaAndEpsilon" ); LJParameter_exposer.staticmethod( "typeName" ); LJParameter_exposer.def( "__copy__", &__copy__); LJParameter_exposer.def( "__deepcopy__", &__copy__); LJParameter_exposer.def( "clone", &__copy__); LJParameter_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::LJParameter >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); LJParameter_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::LJParameter >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); LJParameter_exposer.def( "__str__", &__str__< ::SireMM::LJParameter > ); LJParameter_exposer.def( "__repr__", &__str__< ::SireMM::LJParameter > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例18: register_InterGroupCLJFFBase_class//.........这里部分代码省略......... InterGroupCLJFFBase_exposer.def( "mustNowRecalculateFromScratch" , mustNowRecalculateFromScratch_function_value , "" ); } InterGroupCLJFFBase_exposer.def( bp::self != bp::self ); { //::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::operator= typedef SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > > exported_class_t; typedef ::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > > & ( ::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::*assign_function_type)( ::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > > const & ) ; assign_function_type assign_function_value( &::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::operator= ); InterGroupCLJFFBase_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() , "" ); } InterGroupCLJFFBase_exposer.def( bp::self == bp::self ); { //::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::properties typedef SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > > exported_class_t; typedef ::SireBase::Properties const & ( ::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::*properties_function_type)( ) const; properties_function_type properties_function_value( &::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::properties ); InterGroupCLJFFBase_exposer.def( "properties" , properties_function_value , bp::return_value_policy< bp::copy_const_reference >() , "" ); } { //::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::property typedef SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > > exported_class_t; typedef ::SireBase::Property const & ( ::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::*property_function_type)( ::QString const & ) const; property_function_type property_function_value( &::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::property ); InterGroupCLJFFBase_exposer.def( "property" , property_function_value , ( bp::arg("name") ) , bp::return_value_policy<bp::clone_const_reference>() , "" ); } { //::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::setProperty typedef SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > > exported_class_t; typedef bool ( ::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::*setProperty_function_type)( ::QString const &,::SireBase::Property const & ) ; setProperty_function_type setProperty_function_value( &::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::setProperty ); InterGroupCLJFFBase_exposer.def( "setProperty" , setProperty_function_value , ( bp::arg("name"), bp::arg("property") ) , "" ); } { //::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::typeName typedef SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > > exported_class_t; typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::typeName ); InterGroupCLJFFBase_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::what typedef SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > > exported_class_t; typedef char const * ( ::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::*what_function_type)( ) const; what_function_type what_function_value( &::SireFF::Inter2B2GFF< SireMM::CLJPotentialInterface< SireMM::InterCLJPotential > >::what ); InterGroupCLJFFBase_exposer.def( "what" , what_function_value , "" ); } InterGroupCLJFFBase_exposer.staticmethod( "typeName" ); InterGroupCLJFFBase_exposer.def( "__copy__", &__copy__); InterGroupCLJFFBase_exposer.def( "__deepcopy__", &__copy__); InterGroupCLJFFBase_exposer.def( "clone", &__copy__); InterGroupCLJFFBase_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireFF::Inter2B2GFF<SireMM::CLJPotentialInterface<SireMM::InterCLJPotential> > >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); InterGroupCLJFFBase_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireFF::Inter2B2GFF<SireMM::CLJPotentialInterface<SireMM::InterCLJPotential> > >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); InterGroupCLJFFBase_exposer.def( "__str__", &__str__< ::SireFF::Inter2B2GFF<SireMM::CLJPotentialInterface<SireMM::InterCLJPotential> > > ); InterGroupCLJFFBase_exposer.def( "__repr__", &__str__< ::SireFF::Inter2B2GFF<SireMM::CLJPotentialInterface<SireMM::InterCLJPotential> > > ); InterGroupCLJFFBase_exposer.def( "__len__", &__len_count< ::SireFF::Inter2B2GFF<SireMM::CLJPotentialInterface<SireMM::InterCLJPotential> > > ); }}
开发者ID:Steboss,项目名称:Sire,代码行数:101,
示例19: register_AtomMultiMatcher_classvoid register_AtomMultiMatcher_class(){ { //::SireMol::AtomMultiMatcher typedef bp::class_< SireMol::AtomMultiMatcher, bp::bases< SireMol::AtomMatcher, SireBase::Property > > AtomMultiMatcher_exposer_t; AtomMultiMatcher_exposer_t AtomMultiMatcher_exposer = AtomMultiMatcher_exposer_t( "AtomMultiMatcher", "This is an atom matcher combines several sub-AtomMatchers together/n/nAuthor: Christopher Woods/n", bp::init< >("Constructor") ); bp::scope AtomMultiMatcher_scope( AtomMultiMatcher_exposer ); AtomMultiMatcher_exposer.def( bp::init< SireMol::AtomMatcher const & >(( bp::arg("matcher") ), "Construct from a single match") ); AtomMultiMatcher_exposer.def( bp::init< SireMol::AtomMatcher const &, SireMol::AtomMatcher const & >(( bp::arg("m0"), bp::arg("m1") ), "Construct from a pair of matches") ); AtomMultiMatcher_exposer.def( bp::init< SireMol::AtomMultiMatcher const & >(( bp::arg("other") ), "Copy constructor") ); { //::SireMol::AtomMultiMatcher::isNull typedef bool ( ::SireMol::AtomMultiMatcher::*isNull_function_type)( ) const; isNull_function_type isNull_function_value( &::SireMol::AtomMultiMatcher::isNull ); AtomMultiMatcher_exposer.def( "isNull" , isNull_function_value , "Return whether or not this matcher is null (cannot be used for matching)" ); } AtomMultiMatcher_exposer.def( bp::self != bp::self ); { //::SireMol::AtomMultiMatcher::operator= typedef ::SireMol::AtomMultiMatcher & ( ::SireMol::AtomMultiMatcher::*assign_function_type)( ::SireMol::AtomMultiMatcher const & ) ; assign_function_type assign_function_value( &::SireMol::AtomMultiMatcher::operator= ); AtomMultiMatcher_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() , "" ); } AtomMultiMatcher_exposer.def( bp::self == bp::self ); { //::SireMol::AtomMultiMatcher::toString typedef ::QString ( ::SireMol::AtomMultiMatcher::*toString_function_type)( ) const; toString_function_type toString_function_value( &::SireMol::AtomMultiMatcher::toString ); AtomMultiMatcher_exposer.def( "toString" , toString_function_value , "" ); } { //::SireMol::AtomMultiMatcher::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMol::AtomMultiMatcher::typeName ); AtomMultiMatcher_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireMol::AtomMultiMatcher::what typedef char const * ( ::SireMol::AtomMultiMatcher::*what_function_type)( ) const; what_function_type what_function_value( &::SireMol::AtomMultiMatcher::what ); AtomMultiMatcher_exposer.def( "what" , what_function_value , "" ); } AtomMultiMatcher_exposer.staticmethod( "typeName" ); AtomMultiMatcher_exposer.def( "__copy__", &__copy__); AtomMultiMatcher_exposer.def( "__deepcopy__", &__copy__); AtomMultiMatcher_exposer.def( "clone", &__copy__); AtomMultiMatcher_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMol::AtomMultiMatcher >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); AtomMultiMatcher_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMol::AtomMultiMatcher >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); AtomMultiMatcher_exposer.def( "__str__", &__str__< ::SireMol::AtomMultiMatcher > ); AtomMultiMatcher_exposer.def( "__repr__", &__str__< ::SireMol::AtomMultiMatcher > ); }}
开发者ID:Steboss,项目名称:Sire,代码行数:81,
示例20: register_QMFF_class//.........这里部分代码省略......... } { //::Squire::QMFF::setProperty typedef bool ( ::Squire::QMFF::*setProperty_function_type )( ::QString const &,::SireBase::Property const & ) ; setProperty_function_type setProperty_function_value( &::Squire::QMFF::setProperty ); QMFF_exposer.def( "setProperty" , setProperty_function_value , ( bp::arg("name"), bp::arg("property") ) ); } { //::Squire::QMFF::setQuantumProgram typedef bool ( ::Squire::QMFF::*setQuantumProgram_function_type )( ::Squire::QMProgram const & ) ; setQuantumProgram_function_type setQuantumProgram_function_value( &::Squire::QMFF::setQuantumProgram ); QMFF_exposer.def( "setQuantumProgram" , setQuantumProgram_function_value , ( bp::arg("qmprog") ) ); } { //::Squire::QMFF::setSpace typedef bool ( ::Squire::QMFF::*setSpace_function_type )( ::SireVol::Space const & ) ; setSpace_function_type setSpace_function_value( &::Squire::QMFF::setSpace ); QMFF_exposer.def( "setSpace" , setSpace_function_value , ( bp::arg("space") ) ); } { //::Squire::QMFF::setZeroEnergy typedef bool ( ::Squire::QMFF::*setZeroEnergy_function_type )( ::SireUnits::Dimension::MolarEnergy ) ; setZeroEnergy_function_type setZeroEnergy_function_value( &::Squire::QMFF::setZeroEnergy ); QMFF_exposer.def( "setZeroEnergy" , setZeroEnergy_function_value , ( bp::arg("zero_energy") ) ); } { //::Squire::QMFF::space typedef ::SireVol::Space const & ( ::Squire::QMFF::*space_function_type )( ) const; space_function_type space_function_value( &::Squire::QMFF::space ); QMFF_exposer.def( "space" , space_function_value , bp::return_value_policy<bp::clone_const_reference>() ); } { //::Squire::QMFF::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::Squire::QMFF::typeName ); QMFF_exposer.def( "typeName" , typeName_function_value ); } { //::Squire::QMFF::what typedef char const * ( ::Squire::QMFF::*what_function_type )( ) const; what_function_type what_function_value( &::Squire::QMFF::what ); QMFF_exposer.def( "what" , what_function_value ); } { //::Squire::QMFF::zeroEnergy typedef ::SireUnits::Dimension::MolarEnergy ( ::Squire::QMFF::*zeroEnergy_function_type )( ) const; zeroEnergy_function_type zeroEnergy_function_value( &::Squire::QMFF::zeroEnergy ); QMFF_exposer.def( "zeroEnergy" , zeroEnergy_function_value ); } QMFF_exposer.staticmethod( "typeName" ); QMFF_exposer.def( "__copy__", &__copy__); QMFF_exposer.def( "__deepcopy__", &__copy__); QMFF_exposer.def( "clone", &__copy__); QMFF_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::Squire::QMFF >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); QMFF_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::Squire::QMFF >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); QMFF_exposer.def( "__str__", &__str__< ::Squire::QMFF > ); QMFF_exposer.def( "__repr__", &__str__< ::Squire::QMFF > ); QMFF_exposer.def( "__len__", &__len_count< ::Squire::QMFF > ); }}
开发者ID:chryswoods,项目名称:Sire,代码行数:101,
示例21: register_Tan_classvoid register_Tan_class(){ { //::SireCAS::Tan typedef bp::class_< SireCAS::Tan, bp::bases< SireCAS::SingleFunc, SireCAS::ExBase > > Tan_exposer_t; Tan_exposer_t Tan_exposer = Tan_exposer_t( "Tan", "Tangent", bp::init< >("Null constructor") ); bp::scope Tan_scope( Tan_exposer ); Tan_exposer.def( bp::init< SireCAS::Expression const & >(( bp::arg("ex") ), "Construct cos(expression)") ); Tan_exposer.def( bp::init< SireCAS::Tan const & >(( bp::arg("other") ), "Copy constructor") ); { //::SireCAS::Tan::evaluate typedef double ( ::SireCAS::Tan::*evaluate_function_type)( ::SireCAS::Values const & ) const; evaluate_function_type evaluate_function_value( &::SireCAS::Tan::evaluate ); Tan_exposer.def( "evaluate" , evaluate_function_value , ( bp::arg("values") ) , "Evaluate this function" ); } { //::SireCAS::Tan::evaluate typedef ::SireMaths::Complex ( ::SireCAS::Tan::*evaluate_function_type)( ::SireCAS::ComplexValues const & ) const; evaluate_function_type evaluate_function_value( &::SireCAS::Tan::evaluate ); Tan_exposer.def( "evaluate" , evaluate_function_value , ( bp::arg("values") ) , "Complex evaluation" ); } Tan_exposer.def( bp::self == bp::other< SireCAS::ExBase >() ); { //::SireCAS::Tan::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireCAS::Tan::typeName ); Tan_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireCAS::Tan::what typedef char const * ( ::SireCAS::Tan::*what_function_type)( ) const; what_function_type what_function_value( &::SireCAS::Tan::what ); Tan_exposer.def( "what" , what_function_value , "" ); } Tan_exposer.staticmethod( "typeName" ); Tan_exposer.def( "__copy__", &__copy__); Tan_exposer.def( "__deepcopy__", &__copy__); Tan_exposer.def( "clone", &__copy__); Tan_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireCAS::Tan >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); Tan_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireCAS::Tan >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); Tan_exposer.def( "__str__", &__str__< ::SireCAS::Tan > ); Tan_exposer.def( "__repr__", &__str__< ::SireCAS::Tan > ); Tan_exposer.def( "__hash__", &::SireCAS::Tan::hash ); }}
开发者ID:Steboss,项目名称:Sire,代码行数:69,
示例22: register_SupraSubSimPacket_class//.........这里部分代码省略......... } { //::SireMove::SupraSubSimPacket::nSubMoves typedef int ( ::SireMove::SupraSubSimPacket::*nSubMoves_function_type )( ) const; nSubMoves_function_type nSubMoves_function_value( &::SireMove::SupraSubSimPacket::nSubMoves ); SupraSubSimPacket_exposer.def( "nSubMoves" , nSubMoves_function_value ); } SupraSubSimPacket_exposer.def( bp::self != bp::self ); { //::SireMove::SupraSubSimPacket::operator= typedef ::SireMove::SupraSubSimPacket & ( ::SireMove::SupraSubSimPacket::*assign_function_type )( ::SireMove::SupraSubSimPacket const & ) ; assign_function_type assign_function_value( &::SireMove::SupraSubSimPacket::operator= ); SupraSubSimPacket_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } SupraSubSimPacket_exposer.def( bp::self == bp::self ); { //::SireMove::SupraSubSimPacket::recordingSubStatistics typedef bool ( ::SireMove::SupraSubSimPacket::*recordingSubStatistics_function_type )( ) const; recordingSubStatistics_function_type recordingSubStatistics_function_value( &::SireMove::SupraSubSimPacket::recordingSubStatistics ); SupraSubSimPacket_exposer.def( "recordingSubStatistics" , recordingSubStatistics_function_value ); } { //::SireMove::SupraSubSimPacket::shouldPack typedef bool ( ::SireMove::SupraSubSimPacket::*shouldPack_function_type )( ) const; shouldPack_function_type shouldPack_function_value( &::SireMove::SupraSubSimPacket::shouldPack ); SupraSubSimPacket_exposer.def( "shouldPack" , shouldPack_function_value ); } { //::SireMove::SupraSubSimPacket::subMoves typedef ::SireMove::SupraSubMoves const & ( ::SireMove::SupraSubSimPacket::*subMoves_function_type )( ) const; subMoves_function_type subMoves_function_value( &::SireMove::SupraSubSimPacket::subMoves ); SupraSubSimPacket_exposer.def( "subMoves" , subMoves_function_value , bp::return_value_policy<bp::clone_const_reference>() ); } { //::SireMove::SupraSubSimPacket::subSystem typedef ::SireMove::SupraSubSystem const & ( ::SireMove::SupraSubSimPacket::*subSystem_function_type )( ) const; subSystem_function_type subSystem_function_value( &::SireMove::SupraSubSimPacket::subSystem ); SupraSubSimPacket_exposer.def( "subSystem" , subSystem_function_value , bp::return_value_policy<bp::clone_const_reference>() ); } { //::SireMove::SupraSubSimPacket::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMove::SupraSubSimPacket::typeName ); SupraSubSimPacket_exposer.def( "typeName" , typeName_function_value ); } { //::SireMove::SupraSubSimPacket::what typedef char const * ( ::SireMove::SupraSubSimPacket::*what_function_type )( ) const; what_function_type what_function_value( &::SireMove::SupraSubSimPacket::what ); SupraSubSimPacket_exposer.def( "what" , what_function_value ); } SupraSubSimPacket_exposer.staticmethod( "typeName" ); SupraSubSimPacket_exposer.def( "__copy__", &__copy__); SupraSubSimPacket_exposer.def( "__deepcopy__", &__copy__); SupraSubSimPacket_exposer.def( "clone", &__copy__); SupraSubSimPacket_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMove::SupraSubSimPacket >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); SupraSubSimPacket_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMove::SupraSubSimPacket >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); SupraSubSimPacket_exposer.def( "__str__", &pvt_get_name); SupraSubSimPacket_exposer.def( "__repr__", &pvt_get_name); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例23: register_CLJWorkspace_class//.........这里部分代码省略......... "push" , push_function_value , ( bp::arg("boxes"), bp::arg("old_atoms"), bp::arg("new_atoms"), bp::arg("old_delta") ) , "Push the passed change onto the workspace. This changes the atoms in the/npassed CLJBoxes from their values in old_atoms to their values in the/npassed new_atoms. The last CLJDelta used for these atoms is supplied as/nold_delta, and this returns the new CLJDelta for these atoms." ); } { //::SireMM::CLJWorkspace::recalculatingFromScratch typedef bool ( ::SireMM::CLJWorkspace::*recalculatingFromScratch_function_type)( ) const; recalculatingFromScratch_function_type recalculatingFromScratch_function_value( &::SireMM::CLJWorkspace::recalculatingFromScratch ); CLJWorkspace_exposer.def( "recalculatingFromScratch" , recalculatingFromScratch_function_value , "Return whether or not we are recalculating everything from scratch" ); } { //::SireMM::CLJWorkspace::removeSameIDAtoms typedef void ( ::SireMM::CLJWorkspace::*removeSameIDAtoms_function_type)( ::SireMM::CLJBoxes & ) ; removeSameIDAtoms_function_type removeSameIDAtoms_function_value( &::SireMM::CLJWorkspace::removeSameIDAtoms ); CLJWorkspace_exposer.def( "removeSameIDAtoms" , removeSameIDAtoms_function_value , ( bp::arg("boxes") ) , "Internal function used to fully remove atoms that have not been/nremoved because they all have the same ID. This is used when the/noptimisation of not removing same ID atoms would break the energy/ncalculation, e.g. if we have multiple CLJGroups and have multiple/nchanged IDs across these groups" ); } { //::SireMM::CLJWorkspace::revert typedef ::QVector< SireMM::CLJBoxIndex > ( ::SireMM::CLJWorkspace::*revert_function_type)( ::SireMM::CLJBoxes &,::SireMM::CLJDelta const & ) ; revert_function_type revert_function_value( &::SireMM::CLJWorkspace::revert ); CLJWorkspace_exposer.def( "revert" , revert_function_value , ( bp::arg("boxes"), bp::arg("delta") ) , "Revert the changes supplied in the passed delta" ); } { //::SireMM::CLJWorkspace::size typedef int ( ::SireMM::CLJWorkspace::*size_function_type)( ) const; size_function_type size_function_value( &::SireMM::CLJWorkspace::size ); CLJWorkspace_exposer.def( "size" , size_function_value , "Return the number of deltas" ); } { //::SireMM::CLJWorkspace::toString typedef ::QString ( ::SireMM::CLJWorkspace::*toString_function_type)( ) const; toString_function_type toString_function_value( &::SireMM::CLJWorkspace::toString ); CLJWorkspace_exposer.def( "toString" , toString_function_value , "" ); } { //::SireMM::CLJWorkspace::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::CLJWorkspace::typeName ); CLJWorkspace_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireMM::CLJWorkspace::what typedef char const * ( ::SireMM::CLJWorkspace::*what_function_type)( ) const; what_function_type what_function_value( &::SireMM::CLJWorkspace::what ); CLJWorkspace_exposer.def( "what" , what_function_value , "" ); } CLJWorkspace_exposer.staticmethod( "typeName" ); CLJWorkspace_exposer.def( "__copy__", &__copy__); CLJWorkspace_exposer.def( "__deepcopy__", &__copy__); CLJWorkspace_exposer.def( "clone", &__copy__); CLJWorkspace_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::CLJWorkspace >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CLJWorkspace_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::CLJWorkspace >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CLJWorkspace_exposer.def( "__str__", &__str__< ::SireMM::CLJWorkspace > ); CLJWorkspace_exposer.def( "__repr__", &__str__< ::SireMM::CLJWorkspace > ); CLJWorkspace_exposer.def( "__len__", &__len_size< ::SireMM::CLJWorkspace > ); CLJWorkspace_exposer.def( "__getitem__", &::SireMM::CLJWorkspace::getitem ); }}
开发者ID:Steboss,项目名称:Sire,代码行数:101,
示例24: register_CoulombScaleFactor_classvoid register_CoulombScaleFactor_class(){ { //::SireMM::CoulombScaleFactor typedef bp::class_< SireMM::CoulombScaleFactor > CoulombScaleFactor_exposer_t; CoulombScaleFactor_exposer_t CoulombScaleFactor_exposer = CoulombScaleFactor_exposer_t( "CoulombScaleFactor", bp::init< bp::optional< double > >(( bp::arg("scl")=0 )) ); bp::scope CoulombScaleFactor_scope( CoulombScaleFactor_exposer ); CoulombScaleFactor_exposer.def( bp::init< SireMM::CoulombScaleFactor const & >(( bp::arg("other") )) ); { //::SireMM::CoulombScaleFactor::coulomb typedef double ( ::SireMM::CoulombScaleFactor::*coulomb_function_type )( ) const; coulomb_function_type coulomb_function_value( &::SireMM::CoulombScaleFactor::coulomb ); CoulombScaleFactor_exposer.def( "coulomb" , coulomb_function_value ); } CoulombScaleFactor_exposer.def( bp::self != bp::self ); { //::SireMM::CoulombScaleFactor::operator= typedef ::SireMM::CoulombScaleFactor & ( ::SireMM::CoulombScaleFactor::*assign_function_type )( ::SireMM::CoulombScaleFactor const & ) ; assign_function_type assign_function_value( &::SireMM::CoulombScaleFactor::operator= ); CoulombScaleFactor_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } CoulombScaleFactor_exposer.def( bp::self == bp::self ); { //::SireMM::CoulombScaleFactor::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::CoulombScaleFactor::typeName ); CoulombScaleFactor_exposer.def( "typeName" , typeName_function_value ); } { //::SireMM::CoulombScaleFactor::what typedef char const * ( ::SireMM::CoulombScaleFactor::*what_function_type )( ) const; what_function_type what_function_value( &::SireMM::CoulombScaleFactor::what ); CoulombScaleFactor_exposer.def( "what" , what_function_value ); } CoulombScaleFactor_exposer.staticmethod( "typeName" ); CoulombScaleFactor_exposer.def( "__copy__", &__copy__); CoulombScaleFactor_exposer.def( "__deepcopy__", &__copy__); CoulombScaleFactor_exposer.def( "clone", &__copy__); CoulombScaleFactor_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::CoulombScaleFactor >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CoulombScaleFactor_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::CoulombScaleFactor >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); CoulombScaleFactor_exposer.def( "__str__", &pvt_get_name); CoulombScaleFactor_exposer.def( "__repr__", &pvt_get_name); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:64,
示例25: register_StretchBendTorsionComponent_classvoid register_StretchBendTorsionComponent_class() { { //::SireMM::StretchBendTorsionComponent typedef bp::class_< SireMM::StretchBendTorsionComponent, bp::bases< SireFF::FFComponent, SireCAS::Symbol, SireCAS::ExBase > > StretchBendTorsionComponent_exposer_t; StretchBendTorsionComponent_exposer_t StretchBendTorsionComponent_exposer = StretchBendTorsionComponent_exposer_t( "StretchBendTorsionComponent", bp::init< bp::optional< SireFF::FFName const & > >(( bp::arg("ffname")=SireFF::FFName() )) ); bp::scope StretchBendTorsionComponent_scope( StretchBendTorsionComponent_exposer ); StretchBendTorsionComponent_exposer.def( bp::init< SireCAS::Symbol const & >(( bp::arg("symbol") )) ); StretchBendTorsionComponent_exposer.def( bp::init< SireMM::StretchBendTorsionComponent const & >(( bp::arg("other") )) ); { //::SireMM::StretchBendTorsionComponent::changeEnergy typedef void ( ::SireMM::StretchBendTorsionComponent::*changeEnergy_function_type )( ::SireFF::FF &,::SireMM::StretchBendTorsionEnergy const & ) const; changeEnergy_function_type changeEnergy_function_value( &::SireMM::StretchBendTorsionComponent::changeEnergy ); StretchBendTorsionComponent_exposer.def( "changeEnergy" , changeEnergy_function_value , ( bp::arg("ff"), bp::arg("sbtnrg") ) ); } { //::SireMM::StretchBendTorsionComponent::setEnergy typedef void ( ::SireMM::StretchBendTorsionComponent::*setEnergy_function_type )( ::SireFF::FF &,::SireMM::StretchBendTorsionEnergy const & ) const; setEnergy_function_type setEnergy_function_value( &::SireMM::StretchBendTorsionComponent::setEnergy ); StretchBendTorsionComponent_exposer.def( "setEnergy" , setEnergy_function_value , ( bp::arg("ff"), bp::arg("sbtnrg") ) ); } { //::SireMM::StretchBendTorsionComponent::symbols typedef ::SireCAS::Symbols ( ::SireMM::StretchBendTorsionComponent::*symbols_function_type )( ) const; symbols_function_type symbols_function_value( &::SireMM::StretchBendTorsionComponent::symbols ); StretchBendTorsionComponent_exposer.def( "symbols" , symbols_function_value ); } { //::SireMM::StretchBendTorsionComponent::total typedef ::SireMM::StretchBendTorsionComponent const & ( ::SireMM::StretchBendTorsionComponent::*total_function_type )( ) const; total_function_type total_function_value( &::SireMM::StretchBendTorsionComponent::total ); StretchBendTorsionComponent_exposer.def( "total" , total_function_value , bp::return_value_policy<bp::clone_const_reference>() ); } { //::SireMM::StretchBendTorsionComponent::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMM::StretchBendTorsionComponent::typeName ); StretchBendTorsionComponent_exposer.def( "typeName" , typeName_function_value ); } { //::SireMM::StretchBendTorsionComponent::what typedef char const * ( ::SireMM::StretchBendTorsionComponent::*what_function_type )( ) const; what_function_type what_function_value( &::SireMM::StretchBendTorsionComponent::what ); StretchBendTorsionComponent_exposer.def( "what" , what_function_value ); } StretchBendTorsionComponent_exposer.staticmethod( "typeName" ); StretchBendTorsionComponent_exposer.def( "__copy__", &__copy__); StretchBendTorsionComponent_exposer.def( "__deepcopy__", &__copy__); StretchBendTorsionComponent_exposer.def( "clone", &__copy__); StretchBendTorsionComponent_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMM::StretchBendTorsionComponent >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); StretchBendTorsionComponent_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMM::StretchBendTorsionComponent >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); StretchBendTorsionComponent_exposer.def( "__str__", &__str__< ::SireMM::StretchBendTorsionComponent > ); StretchBendTorsionComponent_exposer.def( "__repr__", &__str__< ::SireMM::StretchBendTorsionComponent > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:84,
示例26: register_GridInfo_class//.........这里部分代码省略......... } { //::SireVol::GridInfo::pointToGridCorners typedef int ( ::SireVol::GridInfo::*pointToGridCorners_function_type )( ::SireMaths::MultiFloat const &,::SireMaths::MultiFloat const &,::SireMaths::MultiFloat const &,::QVector< SireMaths::MultiInt > &,::QVector< SireMaths::MultiFloat > & ) const; pointToGridCorners_function_type pointToGridCorners_function_value( &::SireVol::GridInfo::pointToGridCorners ); GridInfo_exposer.def( "pointToGridCorners" , pointToGridCorners_function_value , ( bp::arg("x"), bp::arg("y"), bp::arg("z"), bp::arg("indicies"), bp::arg("weights") ) ); } { //::SireVol::GridInfo::pointToGridIndex typedef ::SireVol::GridIndex ( ::SireVol::GridInfo::*pointToGridIndex_function_type )( ::SireMaths::Vector const & ) const; pointToGridIndex_function_type pointToGridIndex_function_value( &::SireVol::GridInfo::pointToGridIndex ); GridInfo_exposer.def( "pointToGridIndex" , pointToGridIndex_function_value , ( bp::arg("point") ) ); } { //::SireVol::GridInfo::redimension typedef ::QVector< float > ( ::SireVol::GridInfo::*redimension_function_type )( ::QVector< float > const &,::SireVol::GridInfo const & ) const; redimension_function_type redimension_function_value( &::SireVol::GridInfo::redimension ); GridInfo_exposer.def( "redimension" , redimension_function_value , ( bp::arg("values"), bp::arg("new_grid") ) ); } { //::SireVol::GridInfo::size typedef int ( ::SireVol::GridInfo::*size_function_type )( ) const; size_function_type size_function_value( &::SireVol::GridInfo::size ); GridInfo_exposer.def( "size" , size_function_value ); } { //::SireVol::GridInfo::spacing typedef ::SireUnits::Dimension::Length ( ::SireVol::GridInfo::*spacing_function_type )( ) const; spacing_function_type spacing_function_value( &::SireVol::GridInfo::spacing ); GridInfo_exposer.def( "spacing" , spacing_function_value ); } { //::SireVol::GridInfo::toString typedef ::QString ( ::SireVol::GridInfo::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireVol::GridInfo::toString ); GridInfo_exposer.def( "toString" , toString_function_value ); } { //::SireVol::GridInfo::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireVol::GridInfo::typeName ); GridInfo_exposer.def( "typeName" , typeName_function_value ); } { //::SireVol::GridInfo::what typedef char const * ( ::SireVol::GridInfo::*what_function_type )( ) const; what_function_type what_function_value( &::SireVol::GridInfo::what ); GridInfo_exposer.def( "what" , what_function_value ); } GridInfo_exposer.staticmethod( "typeName" ); GridInfo_exposer.def( "__copy__", &__copy__); GridInfo_exposer.def( "__deepcopy__", &__copy__); GridInfo_exposer.def( "clone", &__copy__); GridInfo_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireVol::GridInfo >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); GridInfo_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireVol::GridInfo >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); GridInfo_exposer.def( "__str__", &__str__< ::SireVol::GridInfo > ); GridInfo_exposer.def( "__repr__", &__str__< ::SireVol::GridInfo > ); GridInfo_exposer.def( "__len__", &__len_size< ::SireVol::GridInfo > ); GridInfo_exposer.def( "__getitem__", &::SireVol::GridInfo::getitem ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例27: register_ChainsWithRes_classvoid register_ChainsWithRes_class(){ { //::SireMol::ChainsWithRes typedef bp::class_< SireMol::ChainsWithRes, bp::bases< SireMol::ChainID, SireID::ID > > ChainsWithRes_exposer_t; ChainsWithRes_exposer_t ChainsWithRes_exposer = ChainsWithRes_exposer_t( "ChainsWithRes", "This ID class identifies chains that contain residues that/nmatch the passed ResID/n/nAuthor: Christopher Woods/n", bp::init< >("Null constructor") ); bp::scope ChainsWithRes_scope( ChainsWithRes_exposer ); ChainsWithRes_exposer.def( bp::init< SireMol::ResID const & >(( bp::arg("resid") ), "Construct from the passed residue ID") ); ChainsWithRes_exposer.def( bp::init< SireMol::ChainsWithRes const & >(( bp::arg("other") ), "Copy constructor") ); { //::SireMol::ChainsWithRes::hash typedef ::uint ( ::SireMol::ChainsWithRes::*hash_function_type)( ) const; hash_function_type hash_function_value( &::SireMol::ChainsWithRes::hash ); ChainsWithRes_exposer.def( "hash" , hash_function_value , "Return a hash of this identifier" ); } { //::SireMol::ChainsWithRes::isNull typedef bool ( ::SireMol::ChainsWithRes::*isNull_function_type)( ) const; isNull_function_type isNull_function_value( &::SireMol::ChainsWithRes::isNull ); ChainsWithRes_exposer.def( "isNull" , isNull_function_value , "Is this selection null?" ); } { //::SireMol::ChainsWithRes::map typedef ::QList< SireMol::ChainIdx > ( ::SireMol::ChainsWithRes::*map_function_type)( ::SireMol::MolInfo const & ) const; map_function_type map_function_value( &::SireMol::ChainsWithRes::map ); ChainsWithRes_exposer.def( "map" , map_function_value , ( bp::arg("molinfo") ) , "Map this ID to the list of indicies of chains that match this ID/nThrow: SireMol::missing_chain/nThrow: SireError::invalid_index/n" ); } ChainsWithRes_exposer.def( bp::self != bp::self ); { //::SireMol::ChainsWithRes::operator= typedef ::SireMol::ChainsWithRes & ( ::SireMol::ChainsWithRes::*assign_function_type)( ::SireMol::ChainsWithRes const & ) ; assign_function_type assign_function_value( &::SireMol::ChainsWithRes::operator= ); ChainsWithRes_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() , "" ); } ChainsWithRes_exposer.def( bp::self == bp::other< SireID::ID >() ); ChainsWithRes_exposer.def( bp::self == bp::self ); { //::SireMol::ChainsWithRes::resID typedef ::SireMol::ResID const & ( ::SireMol::ChainsWithRes::*resID_function_type)( ) const; resID_function_type resID_function_value( &::SireMol::ChainsWithRes::resID ); ChainsWithRes_exposer.def( "resID" , resID_function_value , bp::return_value_policy<bp::clone_const_reference>() , "Return the residue ID" ); } { //::SireMol::ChainsWithRes::toString typedef ::QString ( ::SireMol::ChainsWithRes::*toString_function_type)( ) const; toString_function_type toString_function_value( &::SireMol::ChainsWithRes::toString ); ChainsWithRes_exposer.def( "toString" , toString_function_value , "Return a string representatio of this ID" ); } { //::SireMol::ChainsWithRes::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMol::ChainsWithRes::typeName ); ChainsWithRes_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireMol::ChainsWithRes::what typedef char const * ( ::SireMol::ChainsWithRes::*what_function_type)( ) const; what_function_type what_function_value( &::SireMol::ChainsWithRes::what ); ChainsWithRes_exposer.def( "what" , what_function_value//.........这里部分代码省略.........
开发者ID:Steboss,项目名称:Sire,代码行数:101,
示例28: register_GeneralUnit_class//.........这里部分代码省略......... , TIME_function_value ); } { //::SireUnits::Dimension::GeneralUnit::invert typedef ::SireUnits::Dimension::GeneralUnit ( ::SireUnits::Dimension::GeneralUnit::*invert_function_type )( ) const; invert_function_type invert_function_value( &::SireUnits::Dimension::GeneralUnit::invert ); GeneralUnit_exposer.def( "invert" , invert_function_value ); } GeneralUnit_exposer.def( bp::self != bp::self ); GeneralUnit_exposer.def( bp::self * bp::self ); GeneralUnit_exposer.def( bp::self * bp::other< double >() ); GeneralUnit_exposer.def( bp::self * bp::other< int >() ); GeneralUnit_exposer.def( bp::self *= bp::self ); GeneralUnit_exposer.def( bp::self + bp::self ); GeneralUnit_exposer.def( -bp::self ); GeneralUnit_exposer.def( bp::self - bp::self ); GeneralUnit_exposer.def( bp::self / bp::self ); GeneralUnit_exposer.def( bp::self / bp::other< double >() ); GeneralUnit_exposer.def( bp::self / bp::other< int >() ); GeneralUnit_exposer.def( bp::self /= bp::self ); { //::SireUnits::Dimension::GeneralUnit::operator= typedef ::SireUnits::Dimension::GeneralUnit & ( ::SireUnits::Dimension::GeneralUnit::*assign_function_type )( ::SireUnits::Dimension::GeneralUnit const & ) ; assign_function_type assign_function_value( &::SireUnits::Dimension::GeneralUnit::operator= ); GeneralUnit_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } GeneralUnit_exposer.def( bp::self == bp::self ); { //::SireUnits::Dimension::GeneralUnit::to typedef double ( ::SireUnits::Dimension::GeneralUnit::*to_function_type )( ::SireUnits::Dimension::TempBase const & ) const; to_function_type to_function_value( &::SireUnits::Dimension::GeneralUnit::to ); GeneralUnit_exposer.def( "to" , to_function_value , ( bp::arg("other") ) ); } { //::SireUnits::Dimension::GeneralUnit::to typedef double ( ::SireUnits::Dimension::GeneralUnit::*to_function_type )( ::SireUnits::Dimension::GeneralUnit const & ) const; to_function_type to_function_value( &::SireUnits::Dimension::GeneralUnit::to ); GeneralUnit_exposer.def( "to" , to_function_value , ( bp::arg("other") ) ); } { //::SireUnits::Dimension::GeneralUnit::toString typedef ::QString ( ::SireUnits::Dimension::GeneralUnit::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireUnits::Dimension::GeneralUnit::toString ); GeneralUnit_exposer.def( "toString" , toString_function_value ); } { //::SireUnits::Dimension::GeneralUnit::typeName typedef ::QString ( ::SireUnits::Dimension::GeneralUnit::*typeName_function_type )( ) const; typeName_function_type typeName_function_value( &::SireUnits::Dimension::GeneralUnit::typeName ); GeneralUnit_exposer.def( "typeName" , typeName_function_value ); } { //::SireUnits::Dimension::GeneralUnit::what typedef ::QString ( ::SireUnits::Dimension::GeneralUnit::*what_function_type )( ) const; what_function_type what_function_value( &::SireUnits::Dimension::GeneralUnit::what ); GeneralUnit_exposer.def( "what" , what_function_value ); } GeneralUnit_exposer.def( bp::other<double>() * bp::self ); GeneralUnit_exposer.def( bp::other<double>() / bp::self ); GeneralUnit_exposer.def( "__copy__", &__copy__); GeneralUnit_exposer.def( "__deepcopy__", &__copy__); GeneralUnit_exposer.def( "clone", &__copy__); GeneralUnit_exposer.def( "__str__", &__str__< ::SireUnits::Dimension::GeneralUnit > ); GeneralUnit_exposer.def( "__repr__", &__str__< ::SireUnits::Dimension::GeneralUnit > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例29: register_Molecules_class//.........这里部分代码省略......... { //::SireMol::Molecules::unite typedef bool ( ::SireMol::Molecules::*unite_function_type )( ::SireMol::MoleculeView const & ) ; unite_function_type unite_function_value( &::SireMol::Molecules::unite ); Molecules_exposer.def( "unite" , unite_function_value , ( bp::arg("molview") ) ); } { //::SireMol::Molecules::unite typedef ::SireMol::ViewsOfMol ( ::SireMol::Molecules::*unite_function_type )( ::SireMol::ViewsOfMol const & ) ; unite_function_type unite_function_value( &::SireMol::Molecules::unite ); Molecules_exposer.def( "unite" , unite_function_value , ( bp::arg("molviews") ) ); } { //::SireMol::Molecules::unite typedef ::QList< SireMol::ViewsOfMol > ( ::SireMol::Molecules::*unite_function_type )( ::SireMol::Molecules const & ) ; unite_function_type unite_function_value( &::SireMol::Molecules::unite ); Molecules_exposer.def( "unite" , unite_function_value , ( bp::arg("other") ) ); } { //::SireMol::Molecules::uniteViews typedef bool ( ::SireMol::Molecules::*uniteViews_function_type )( ) ; uniteViews_function_type uniteViews_function_value( &::SireMol::Molecules::uniteViews ); Molecules_exposer.def( "uniteViews" , uniteViews_function_value ); } { //::SireMol::Molecules::update typedef bool ( ::SireMol::Molecules::*update_function_type )( ::SireMol::MoleculeData const & ) ; update_function_type update_function_value( &::SireMol::Molecules::update ); Molecules_exposer.def( "update" , update_function_value , ( bp::arg("moldata") ) ); } { //::SireMol::Molecules::update typedef bool ( ::SireMol::Molecules::*update_function_type )( ::SireMol::MoleculeView const & ) ; update_function_type update_function_value( &::SireMol::Molecules::update ); Molecules_exposer.def( "update" , update_function_value , ( bp::arg("molview") ) ); } { //::SireMol::Molecules::update typedef ::QList< SireMol::Molecule > ( ::SireMol::Molecules::*update_function_type )( ::SireMol::Molecules const & ) ; update_function_type update_function_value( &::SireMol::Molecules::update ); Molecules_exposer.def( "update" , update_function_value , ( bp::arg("molecules") ) ); } { //::SireMol::Molecules::what typedef char const * ( ::SireMol::Molecules::*what_function_type )( ) const; what_function_type what_function_value( &::SireMol::Molecules::what ); Molecules_exposer.def( "what" , what_function_value ); } Molecules_exposer.staticmethod( "typeName" ); Molecules_exposer.def( "__copy__", &__copy__); Molecules_exposer.def( "__deepcopy__", &__copy__); Molecules_exposer.def( "clone", &__copy__); Molecules_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMol::Molecules >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); Molecules_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMol::Molecules >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); Molecules_exposer.def( "__str__", &__str__< ::SireMol::Molecules > ); Molecules_exposer.def( "__repr__", &__str__< ::SireMol::Molecules > ); Molecules_exposer.def( "__len__", &__len_count< ::SireMol::Molecules > ); }}
开发者ID:Alwnikrotikz,项目名称:sire,代码行数:101,
示例30: register_DataPoint_class//.........这里部分代码省略......... "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() , "" ); } DataPoint_exposer.def( bp::self == bp::self ); { //::SireAnalysis::DataPoint::toString typedef ::QString ( ::SireAnalysis::DataPoint::*toString_function_type)( ) const; toString_function_type toString_function_value( &::SireAnalysis::DataPoint::toString ); DataPoint_exposer.def( "toString" , toString_function_value , "" ); } { //::SireAnalysis::DataPoint::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireAnalysis::DataPoint::typeName ); DataPoint_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireAnalysis::DataPoint::what typedef char const * ( ::SireAnalysis::DataPoint::*what_function_type)( ) const; what_function_type what_function_value( &::SireAnalysis::DataPoint::what ); DataPoint_exposer.def( "what" , what_function_value , "" ); } { //::SireAnalysis::DataPoint::x typedef double ( ::SireAnalysis::DataPoint::*x_function_type)( ) const; x_function_type x_function_value( &::SireAnalysis::DataPoint::x ); DataPoint_exposer.def( "x" , x_function_value , "Return the x value of the point" ); } { //::SireAnalysis::DataPoint::xError typedef double ( ::SireAnalysis::DataPoint::*xError_function_type)( ) const; xError_function_type xError_function_value( &::SireAnalysis::DataPoint::xError ); DataPoint_exposer.def( "xError" , xError_function_value , "Return the error on the x value. This is the average/nof the minimum and maximum error" ); } { //::SireAnalysis::DataPoint::xMaxError typedef double ( ::SireAnalysis::DataPoint::*xMaxError_function_type)( ) const;
开发者ID:Steboss,项目名称:Sire,代码行数:67,
注:本文中的what_function_value函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ whenInputIs函数代码示例 C++ what函数代码示例 |