|
Last change
on this file since 47 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
449 bytes
|
| Line | |
|---|
| 1 | Include('wrappertest_wrappers.h') |
|---|
| 2 | |
|---|
| 3 | f = Function('wrappertest::Range', 'wrappertest.h') |
|---|
| 4 | set_wrapper(f, 'RangeWrapper') |
|---|
| 5 | |
|---|
| 6 | mul = Wrapper('MulWrapper', |
|---|
| 7 | ''' |
|---|
| 8 | list MulWrapper(wrappertest::C& c, int value){ |
|---|
| 9 | return VectorToList(c.Mul(value)); |
|---|
| 10 | } |
|---|
| 11 | ''' |
|---|
| 12 | ) |
|---|
| 13 | |
|---|
| 14 | C = Class('wrappertest::C', 'wrappertest.h') |
|---|
| 15 | set_wrapper(C.Mul, mul) |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | A = Class('wrappertest::A', 'wrappertest.h') |
|---|
| 19 | set_wrapper(A.f, 'f_wrapper') |
|---|
| 20 | |
|---|
| 21 | Function('wrappertest::call_foo', 'wrappertest.h') |
|---|
Note: See
TracBrowser
for help on using the repository browser.