|
Virtual Testbed
Ship dynamics simulator for extreme conditions
|
Aspect that extends Guile-unaware classes and provides a pointer to the corresponding wrapper object. More...
#include <wrapper.hh>
Public Member Functions | |
| Aspect (const T &rhs) | |
| Aspect (T &&rhs) | |
| void | wrapper (wrapper_type *rhs) |
| wrapper_type * | wrapper () |
| const wrapper_type * | wrapper () const |
Aspect that extends Guile-unaware classes and provides a pointer to the corresponding wrapper object.
Wrapper/aspect technique is described in . In our implementation it boils down to the following two rules. When C++ object is destroyed, a pointer to this object in the corresponding wrapper object is cleared. When Guile object is destroyed by garbage collector and its finilizer is called, the corresponding C++ object is deleted.
Definition at line 16 of file wrapper.hh.
1.8.15