Wrapper classes. More...
Public Member Functions | |
shared_ptr< MyVirtualData > | createData () const override |
shared_ptr< MyVirtualData > | default_createData () const |
void | doSomethingPtr (shared_ptr< MyVirtualData > const &data) const override |
void | doSomethingRef (MyVirtualData &data) const override |
Public Member Functions inherited from MyVirtualClass | |
MyVirtualClass () | |
virtual | ~MyVirtualClass () |
Wrapper classes.
Definition at line 50 of file bind_virtual_factory.cpp.
|
inlineoverridevirtual |
Reimplemented from MyVirtualClass.
Definition at line 74 of file bind_virtual_factory.cpp.
|
inline |
Definition at line 82 of file bind_virtual_factory.cpp.
|
inlineoverridevirtual |
shared_ptr HAS to be passed by value. Boost.Python's argument converter has the wrong behaviour for reference_wrapper<shared_ptr<T>>, so boost::ref(data) does not work.
Implements MyVirtualClass.
Definition at line 51 of file bind_virtual_factory.cpp.
|
inlineoverridevirtual |
The data object is passed by mutable reference to this function, and wrapped in a boost::reference_wrapper
when passed to the override. Otherwise, Boost.Python's argument converter will convert to Python by value and create a copy.
Implements MyVirtualClass.
Definition at line 66 of file bind_virtual_factory.cpp.