Commit Graph
144 Commits
Author SHA1 Message Date
Alexander Afanasyev 09e87032a9 cppclass: Adding more capability to MemoryPolicy
Now memory policy also controls registration of pointers to types and
aliases for parameters and return values.  This, for example, is useful
when working with custom smart pointer implementation.

This commit also reorganizes implementation for boost::shared_ptr and
std::shared_ptr
2015-08-20 13:49:42 -07:00
Gustavo Carneiro d5993baf59 Only build the std::shared_ptr example if the compiler supports C++11 2014-09-14 16:18:48 +01:00
Gustavo Carneiro c29553c215 build fixes 2014-09-14 16:14:14 +01:00
Bryan Catanzaro 5bc9cbd990 Add support for std::shared_ptr. 2014-08-28 14:08:11 -07:00
Gustavo Carneiro 4dd1f03006 Make the examples build again with new WAF 2014-02-02 23:14:48 +00:00
Gustavo Carneiro b77de1cc18 Upgrade waf to 1.7.15 2014-02-02 19:43:37 +00:00
Gustavo Carneiro 6ab20e6d03 Merge from trunk 2013-07-27 19:45:53 +01:00
Gustavo Carneiro f8943e6719 Make it work on Python 3, except gccxml, which has not been tested 2013-07-27 17:18:06 +01:00
Gustavo Carneiro 647888c064 Add a cross-module import example 2012-12-15 19:20:17 +00:00
Gustavo J. A. M. Carneiro 3b5e055dae Add a boost::shared_ptr<> example 2012-08-25 12:52:28 +01:00
Gustavo J. A. M. Carneiro 4737c636bf Make the examples build with the new WAF 2012-03-18 21:54:36 +00:00
Gustavo J. A. M. Carneiro 07146e80ae Upgrade to WAF 1.6.11; building examples temporarily broken... 2012-03-18 18:50:39 +00:00
Gustavo J. A. M. Carneiro bb0d076a88 Add a buffer example 2011-06-12 12:40:18 +01:00
Gustavo J. A. M. Carneiro 9e883068ad Remove the boost::shared_ptr example, it is broken anyhow 2011-03-22 16:28:52 +00:00
Gustavo J. A. M. Carneiro 2cbd986fbc Add a boost::shared_ptr example 2011-02-23 15:16:27 +00:00
Gustavo J. A. M. Carneiro f89966ab4d Add a simple callback example. 2010-05-19 11:59:35 +01:00
Gustavo J. A. M. Carneiro 6b81fdde3a Allow deprecation warnings in examples, since we can't get away from them (pygccxml+python2.6 gives warnings) 2009-07-12 15:11:23 +01:00
Gustavo J. A. M. Carneiro 5a4317a22f Add wrapping of std::ofstream to the example 2009-02-18 12:15:22 +00:00
Gustavo J. A. M. Carneiro 9f3a4be4ab Fix -Wextra warnings 2008-12-31 18:02:51 +00:00
Gustavo J. A. M. Carneiro 2b416c90d7 Make the examples compile too 2008-12-14 16:30:24 +00:00
Gustavo J. A. M. Carneiro c2e816577b Fix compatibility with python 2.3 and 2.4 2008-12-08 14:51:30 +00:00
Gustavo J. A. M. Carneiro dab99a066b Allow installation even if C/C++ compiler was not detected by WAF 2008-11-19 15:22:06 +00:00
Gustavo J. A. M. Carneiro a05fcef850 Adapt example to new API 2008-09-02 11:42:24 +01:00
Gustavo J. A. M. Carneiro ad4c34d4bf Fix deprecations. 2008-07-20 18:53:02 +01:00
Gustavo J. A. M. Carneiro 355ebb0665 For examples and unit tests, turn deprecation warnings into exceptions; fix cases where deprecations were being used. 2008-07-18 14:47:47 +01:00
Gustavo J. A. M. Carneiro 98cc09f0e0 Remove deprecated calls to write_preamble from examples/tests 2008-07-13 19:11:17 +01:00
Gustavo J. A. M. Carneiro 1c2134b7b4 Add gccxml-based variants to the 'a' example. 2008-06-02 14:06:06 +01:00
Gustavo J. A. M. Carneiro 07a7701fcf CppClass.add_*_attribute API change. 2008-05-19 16:55:50 +01:00
Gustavo J. A. M. Carneiro ee6589e95d Update tests/examples to use new add_constructor API 2008-05-19 14:19:15 +01:00
Gustavo J. A. M. Carneiro 20b5de3385 CppClass.add_method simplifications 2008-05-18 21:49:37 +01:00
Gustavo J. A. M. Carneiro 25301c4db1 Module.add_function API simplification 2008-05-18 18:49:35 +01:00
Gustavo J. A. M. Carneiro f9e6ebf370 CppMethod returntype,name parameters swapped (Mathieu); add more documentation. 2008-05-18 16:28:09 +01:00
Gustavo J. A. M. Carneiro 86c183a37e API change: Function(retval, name, params) now becomes Function(name, retval, params), as suggested by Mathieu Lacage. 2008-05-11 22:17:22 +01:00
Gustavo J. A. M. Carneiro c86999db3d ModuleBase.add_class directly creates the class now (Mathieu's API suggestion) 2008-05-11 21:22:07 +01:00
Gustavo J. A. M. Carneiro 66cc1b3476 From Mathieu Lacage: a couple more examples (nested C++ namespaces, nested classes) 2008-05-07 11:23:56 +01:00
Gustavo J. A. M. Carneiro d9dfd6a6ea Remove the workarounds for waf bug #37 2008-04-30 16:23:24 +01:00
Gustavo J. A. M. Carneiro dedbed2820 Use Module.add_include 2008-04-30 12:25:44 +01:00
Gustavo J. A. M. Carneiro 21f2d54fd2 Add the d, e, and f examples from Mathieu 2008-04-28 15:57:20 +01:00
Gustavo J. A. M. Carneiro 82b64a2543 Add Mathieu's 'c' example 2008-04-28 14:14:22 +01:00
Gustavo J. A. M. Carneiro 4179a5c06a Add the 'b' example from Mathieu 2008-04-28 12:58:29 +01:00
Gustavo J. A. M. Carneiro 6c5f4f3c0b Add the 'a' example from Mathieu 2008-04-28 12:49:30 +01:00
Gustavo J. A. M. Carneiro 81b4f530b8 Move the former 'examples' into tests/, as they evolved to become more unit tests than examples. 2008-04-28 12:19:25 +01:00
Gustavo J. A. M. Carneiro a85302aedd Add rules for generating API docs (epydoc). 2008-04-28 12:00:44 +01:00
Gustavo J. A. M. Carneiro bdfe6dbd57 Fix a WAF version detection bug 2008-04-26 22:44:38 +01:00
Gustavo J. A. M. Carneiro 4274e7083c Make it work with both WAF trunk and WAF 1.3.2 2008-04-21 11:44:57 +01:00
Gustavo J. A. M. Carneiro ee5402f265 Some wscript tweaks to make it build with waf trunk (tested with rev. 3169) 2008-04-19 22:52:34 +01:00
Gustavo J. A. M. Carneiro 49b0a6a26b Add support for parameter optional values, so far implemented only for int and double parameter types. 2008-04-06 12:57:34 +01:00
Gustavo J. A. M. Carneiro 9a8c41eee2 Improved algorithm for deciding if a class constructor can be generated due to pure virtual functions. 2008-03-24 15:37:20 +00:00
Gustavo J. A. M. Carneiro c71e736144 Test the "typedef int Bool" handling. 2008-03-09 14:57:44 +00:00
Gustavo J. A. M. Carneiro bd11af0076 fix the unit tests 2008-03-02 19:36:36 +00:00