swig/Examples/test-suite/python
Marcelo Matus 3f1f31d1e8 Fix long long and other warnings.
Add the macros

%typemap_asfromcheck()
%typemap_asfrom()

that can be used to defined all the different typemaps
for types where the As/From/Check methods are provided.

All the basic type (int, char,...) typemaps are implemented
using them.

The std::string and std::complex<T> are reimplemented using
the new %typemap_asfrom/check macros too. This helps to complete
all the previously missing typemaps (consttab, varin, varout,..)
and also ilustrates how to define the As/From/Check methods
to use with the %typemap_asfrom/check macros.

As a byproduct, the C complex typemap was added, and the file

complex.i

can be used to load the complex support for either C or C++. The
original C++ std_complex.i is still there, and the corresponding C
ccomplex.i too, if they need to be included explicitly.

Also, the As/From methods are declared via %fragment, so, they
can be reused as needed, and only appear in the wrapped code if
they corresponding typemap is invoked, making the typemaps
and the entire code shorter and simpler.


Marcelo.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-28 01:30:13 +00:00
..
.cvsignore *** empty log message *** 2003-09-06 15:58:14 +00:00
abstract_access_runme.py Added test case just to check a few things with protected/private virtual methods 2003-12-09 17:50:29 +00:00
abstract_typedef2_runme.py Now, this is a real broken case 2003-02-21 09:12:45 +00:00
abstract_typedef_runme.py The great merge 2002-11-30 22:01:28 +00:00
abstract_virtual_runme.py Added test that shows a problem in the 'abstract detection method' when virtual base classes are used (in different order) 2003-02-21 21:03:05 +00:00
array_member_runme.py new test 2003-05-29 18:30:10 +00:00
arrays_global_runme.py test setting of global arrays 2003-05-04 08:56:21 +00:00
class_ignore_runme.py The great merge 2002-11-30 22:01:28 +00:00
class_scope_weird_runme.py new test 2003-03-20 19:36:16 +00:00
constover_runme.py The great merge 2002-11-30 22:01:28 +00:00
contract_runme.py new test 2003-11-14 18:59:02 +00:00
cpp_namespace_runme.py The great merge 2002-11-30 22:01:28 +00:00
default_constructor_runme.py The great merge 2002-11-30 22:01:28 +00:00
director_abstract_runme.py Abstract directors and typemap fixes. 2003-08-30 05:03:34 +00:00
director_basic_runme.py four new director tests 2003-03-07 10:30:11 +00:00
director_detect_runme.py base() changed to basemethod() - base is a C# keyword 2003-12-11 21:16:21 +00:00
director_exception_runme.py four new director tests 2003-03-07 10:30:11 +00:00
director_finalizer_runme.py four new director tests 2003-03-07 10:30:11 +00:00
director_frob_runme.py also, change the module name to director_frob 2004-01-22 00:52:06 +00:00
director_nested_runme.py Fixes to support protected members with director, proper virtual member recognition and support of the nodirector feature 2003-12-05 01:59:28 +00:00
director_protected_runme.py Lateral change to add runtime "reprotection" at the python 2003-12-11 01:59:12 +00:00
director_unroll_runme.py four new director tests 2003-03-07 10:30:11 +00:00
dynamic_cast_runme.py The great merge 2002-11-30 22:01:28 +00:00
enums_runme.py enum renamed enums due to enum keyword in C# 2003-03-19 21:25:59 +00:00
exception_order_runme.py - recover the proper catching exception mechanism for classes 2004-01-21 01:15:10 +00:00
extend_template_ns_runme.py The great merge 2002-11-30 22:01:28 +00:00
extend_template_runme.py The great merge 2002-11-30 22:01:28 +00:00
friends_runme.py These is the current tests for the friend function support. 2003-12-20 07:46:27 +00:00
grouping_runme.py The great merge 2002-11-30 22:01:28 +00:00
import_nomodule_runme.py The great merge 2002-11-30 22:01:28 +00:00
imports_runme.py The great merge 2002-11-30 22:01:28 +00:00
inctest_runme.py Added test for %import 2003-12-11 21:33:34 +00:00
inherit_missing_runme.py The great merge 2002-11-30 22:01:28 +00:00
lib_std_vector_runme.py The great merge 2002-11-30 22:01:28 +00:00
Makefile.in Multiple build directory support 2003-09-01 15:15:50 +00:00
minherit_runme.py The great merge 2002-11-30 22:01:28 +00:00
namespace_typemap_runme.py The great merge 2002-11-30 22:01:28 +00:00
namespace_virtual_method_runme.py new tests 2003-04-23 18:00:17 +00:00
overload_copy_runme.py The great merge 2002-11-30 22:01:28 +00:00
overload_extend_runme.py The great merge 2002-11-30 22:01:28 +00:00
overload_extendc_runme.py The great merge 2002-11-30 22:01:28 +00:00
overload_simple_runme.py The great merge 2002-11-30 22:01:28 +00:00
overload_subtype_runme.py The great merge 2002-11-30 22:01:28 +00:00
overload_template_runme.py The great merge 2002-11-30 22:01:28 +00:00
primitive_ref_runme.py The great merge 2002-11-30 22:01:28 +00:00
primitive_types_runme.py Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
README The great merge 2002-11-30 22:01:28 +00:00
refcount_runme.py added refcount example using the old macro way and the proposed ref/unref features 2004-01-22 06:26:17 +00:00
reference_global_vars_runme.py reference variables runtime test 2003-02-07 22:18:10 +00:00
rename_scope_runme.py The great merge 2002-11-30 22:01:28 +00:00
smart_pointer_multi_runme.py The great merge 2002-11-30 22:01:28 +00:00
smart_pointer_multi_typedef_runme.py The great merge 2002-11-30 22:01:28 +00:00
smart_pointer_not_runme.py The great merge 2002-11-30 22:01:28 +00:00
smart_pointer_overload_runme.py The great merge 2002-11-30 22:01:28 +00:00
smart_pointer_rename_runme.py The great merge 2002-11-30 22:01:28 +00:00
smart_pointer_simple_runme.py The great merge 2002-11-30 22:01:28 +00:00
smart_pointer_typedef_runme.py The great merge 2002-11-30 22:01:28 +00:00
sneaky1_runme.py The great merge 2002-11-30 22:01:28 +00:00
static_const_member_2_runme.py The great merge 2002-11-30 22:01:28 +00:00
struct_rename_runme.py new test 2003-09-01 17:54:18 +00:00
struct_value_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_construct_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_extend1_runme.py new tests 2003-02-18 21:25:31 +00:00
template_extend2_runme.py new tests 2003-02-18 21:25:31 +00:00
template_inherit_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_ns4_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_ns_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_ref_type_runme.py new test 2003-06-03 19:08:09 +00:00
template_rename_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_tbase_template_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_type_namespace_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_typedef_cplx2_runme.py Little bug fix for this run test. 2003-04-29 16:49:16 +00:00
template_typedef_cplx3_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_typedef_cplx4_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_typedef_cplx_runme.py Removed spurious print statement. 2003-03-17 17:51:04 +00:00
template_typedef_import_runme.py The great merge 2002-11-30 22:01:28 +00:00
template_typedef_runme.py The great merge 2002-11-30 22:01:28 +00:00
typedef_class_runme.py new test 2003-05-28 17:30:04 +00:00
typedef_inherit_runme.py The great merge 2002-11-30 22:01:28 +00:00
typedef_scope_runme.py The great merge 2002-11-30 22:01:28 +00:00
typemap_namespace_runme.py The great merge 2002-11-30 22:01:28 +00:00
typemap_ns_using_runme.py The great merge 2002-11-30 22:01:28 +00:00
typename_runme.py The great merge 2002-11-30 22:01:28 +00:00
unions_runme.py The great merge 2002-11-30 22:01:28 +00:00
using1_runme.py The great merge 2002-11-30 22:01:28 +00:00
using2_runme.py The great merge 2002-11-30 22:01:28 +00:00
using_composition_runme.py The great merge 2002-11-30 22:01:28 +00:00
using_extend_runme.py The great merge 2002-11-30 22:01:28 +00:00
using_inherit_runme.py The great merge 2002-11-30 22:01:28 +00:00
using_private_runme.py The great merge 2002-11-30 22:01:28 +00:00
using_protected_runme.py The great merge 2002-11-30 22:01:28 +00:00
varargs_runme.py more varargs runtime test 2003-03-19 20:50:54 +00:00
virtual_derivation_runme.py added test for simple virtual derivation, where ruby fails 2004-01-22 06:23:57 +00:00
virtual_poly_runme.py added a reference polymorphic return type case, and 2003-12-24 06:53:47 +00:00
voidtest_runme.py The great merge 2002-11-30 22:01:28 +00:00
wrapmacro_runme.py add python runme 2004-01-20 20:49:05 +00:00

See ../README for common README file.

Any testcases which have _runme.py appended after the testcase name will be detected and run.