Commit e743f3ce authored by Jason Rhinelander's avatar Jason Rhinelander

Minor doc updates

parent 5068d548
...@@ -32,11 +32,11 @@ protected: ...@@ -32,11 +32,11 @@ protected:
if (not parent_->hasSimulation()) throw std::logic_error("pyeris InterBegin wrapper added before parent"); if (not parent_->hasSimulation()) throw std::logic_error("pyeris InterBegin wrapper added before parent");
dependsOn(parent_); dependsOn(parent_);
} }
/// Returns the parent, cast to a py::object /// Returns the parent (i.e. the member we are glue for), cast to a py::object
py::object parent() const { return py::cast(parent_.get()); } py::object parent() const { return py::cast(parent_.get()); }
/** Returns a py::function object that, when called, calls the given (python) method on the /** Returns a py::function object that, when called, calls the given (python) method on the
* parent. Call `.check()` on the returned object to determine whether the method actually * parent. Call `.check()` on the returned object to determine whether the method actually
* exists--invoking the function without checking will trigger an exception for non-existant * exists--invoking the function without checking will trigger an exception for non-existent
* methods. * methods.
*/ */
py::function method(const char* name) const { return py::function(parent().attr(name)); } py::function method(const char* name) const { return py::function(parent().attr(name)); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment