diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-03 05:21:04 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-03 05:21:04 -0300 |
commit | 048498d28bf7a0451bfc490b9f1799d3d3751b40 (patch) | |
tree | 90102429b533478bda47213c8ad5b8d531d6204d /tests/libsample/listuser.h | |
parent | 22ae136011c64b3da8f272e6f55574413064efae (diff) |
* added the ObjectType example which adds some cases similar to
those on Qt's QObject (object name, parent and children list),
although no ownership test was added yet.
* added method Abstract::getObjectId(Abstract*) as a case of
an argument that should be converted to an abstract type.
* added ListUser::multiplyPointList(std::list<Point*>&, double),
which tests the conversion from a Python list of Point wrappers
to a C++ list whose items will be altered.
Diffstat (limited to 'tests/libsample/listuser.h')
-rw-r--r-- | tests/libsample/listuser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/libsample/listuser.h b/tests/libsample/listuser.h index 9c669fe6f..b57ce76b9 100644 --- a/tests/libsample/listuser.h +++ b/tests/libsample/listuser.h @@ -37,10 +37,13 @@ #include <list> #include "complex.h" +#include "point.h" class ListUser { public: + typedef std::list<Point*> PointList; + ListUser() {} ListUser(const ListUser& other) : m_lst(other.m_lst) {} ~ListUser() {} @@ -53,6 +56,8 @@ public: double sumList(std::list<int> vallist); double sumList(std::list<double> vallist); + static void multiplyPointList(PointList& points, double multiplier); + void setList(std::list<int> lst) { m_lst = lst; } std::list<int> getList() { return m_lst; } |