Public Member Functions | List of all members
VirtualClassWrapper Struct Reference

Wrapper classes. More...

Inheritance diagram for VirtualClassWrapper:
Inheritance graph
[legend]

Public Member Functions

shared_ptr< MyVirtualDatacreateData () const override
 
shared_ptr< MyVirtualDatadefault_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 ()
 

Detailed Description

Wrapper classes.

Definition at line 50 of file bind_virtual_factory.cpp.

Member Function Documentation

◆ createData()

shared_ptr<MyVirtualData> VirtualClassWrapper::createData ( ) const
inlineoverridevirtual

Reimplemented from MyVirtualClass.

Definition at line 74 of file bind_virtual_factory.cpp.

◆ default_createData()

shared_ptr<MyVirtualData> VirtualClassWrapper::default_createData ( ) const
inline

Definition at line 79 of file bind_virtual_factory.cpp.

◆ doSomethingPtr()

void VirtualClassWrapper::doSomethingPtr ( shared_ptr< MyVirtualData > const &  data) const
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.

◆ doSomethingRef()

void VirtualClassWrapper::doSomethingRef ( MyVirtualData data) const
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.


The documentation for this struct was generated from the following file:


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 2 2023 02:10:27