← Back to team overview

yade-users team mailing list archive

Re: [Question #690684]: definition of iphys in the .hpp file related to a contact law

 

Question #690684 on Yade changed:
https://answers.launchpad.net/yade/+question/690684

Jérôme Duriez proposed the following answer:
Hi

- simple brackets refer to the ATTRS part of the
YADE_CLASS_BASE_DOC_ATTRS_CTOR_PY macro [*].

- the .def() lines enter the PY part of the latter. I see this part as
directly obeying the syntax of the boost::python C++ Library, eg [**].
Unlike real attributes, it is about methods (functions) here

[*] https://yade-dem.org/doc/prog.html#yade-class-base-doc-macro-family
[**] https://www.boost.org/doc/libs/1_73_0/libs/python/doc/html/reference/high_level_components/boost_python_def_hpp.html

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.