Commit Graph

165 Commits

Author SHA1 Message Date
Dave Abrahams 7a7009ab40 no message
[SVN r8236]
2000-11-16 22:22:58 +00:00
Dave Abrahams 6d4f4315e9 Added a little compile-time safety
[SVN r8235]
2000-11-16 22:16:15 +00:00
nobody 2212cbfd9e This commit was manufactured by cvs2svn to create branch 'data_driven'.
[SVN r8230]
2000-11-16 17:14:05 +00:00
Dave Abrahams bc922755f3 remove sole use of expect_and_absorb_non_null
[SVN r8229]
2000-11-16 17:14:04 +00:00
Dave Abrahams b84e3a7983 Added a little crude leak-checking code
[SVN r8228]
2000-11-16 17:13:11 +00:00
Dave Abrahams 595797b290 Handled some reference-counting problems and added some sequence points for exception-safety
[SVN r8227]
2000-11-16 17:06:37 +00:00
Dave Abrahams b33887aa57 *** empty log message ***
[SVN r8224]
2000-11-15 17:35:50 +00:00
Dave Abrahams 5cd59a471e Updated to use BoundFunction::create() optimization
[SVN r8223]
2000-11-15 17:30:45 +00:00
Dave Abrahams f055f9e602 Added commentary, numerous formatting tweaks
[SVN r8222]
2000-11-15 17:29:37 +00:00
Dave Abrahams eb1a1e84cc removed obsolete UNTESTED comment from String::intern()
[SVN r8221]
2000-11-15 17:27:45 +00:00
Dave Abrahams f78c2f7ba6 Moved operator_dispatcher into extclass.cpp
Fixed Ullrich's refcount bug
Numerous formatting tweaks


[SVN r8220]
2000-11-15 17:26:35 +00:00
Dave Abrahams bb97494737 Updated the BoundFunction::create() optimization and enabled it so it could actually be used!
[SVN r8219]
2000-11-15 17:25:19 +00:00
Dave Abrahams 8f121914d6 Moved operator_dispatcher into extclass.cpp
Fixed Ullrich's refcount bug
Numerous formatting tweaks


[SVN r8218]
2000-11-15 17:16:28 +00:00
Dave Abrahams 331e9e9c22 Moved operator_dispatcher into extclass.cpp
Gave it shared ownership of the objects it wraps

Fixed Ullrich's refcount bug

Introduced sequence points in extension_class_coerce for exception-safety

UPPER_CASE_MACRO_NAMES

MixedCase template type argument names

Changed internal error reporting to use Python exceptions so we don't force the
user to link in iostreams code

Changed error return value of call_cmp to -1

Moved unwrap_* functions out of operator_dispatcher. This was transitional: when
I realized they didn't need to be declared in extclass.h I moved them out, but
now that operator_dispatcher itself is in extclass.cpp they could go back in.


[SVN r8217]
2000-11-15 17:12:10 +00:00
Dave Abrahams 11faaf7492 *** empty log message ***
[SVN r8214]
2000-11-15 05:59:16 +00:00
Dave Abrahams 4eff7ba8a9 Support a more minimal interface
UPPERCASE_MACRO_NAMES


[SVN r8213]
2000-11-15 05:58:53 +00:00
Dave Abrahams 65dce1d510 Add missing static_cast<>s
[SVN r8212]
2000-11-15 05:57:12 +00:00
Dave Abrahams 8765cf016c Support for minimalist add_operator interface
Support for MSVC
Formatting fixups
More inlining


[SVN r8211]
2000-11-15 05:55:56 +00:00
Dave Abrahams db210129f2 Added missing const_cast, PyNumberMethods initializers, and explicit constructor
[SVN r8210]
2000-11-15 05:40:07 +00:00
Ullrich Köthe fbf4e90df0 function objects for operator export
[SVN r8204]
2000-11-14 19:35:48 +00:00
Ullrich Köthe 9f30f7dfd7 implemented export of operators
[SVN r8203]
2000-11-14 19:34:43 +00:00
Dave Abrahams 80ebaf94f5 removed unused class ExtensionType forward declaration
[SVN r8202]
2000-11-14 03:30:47 +00:00
Dave Abrahams dc26a04ac3 removed obsolete ExtensionClassFromPython for good.
[SVN r8201]
2000-11-14 03:28:27 +00:00
Dave Abrahams 961c8d66cb *** empty log message ***
[SVN r8197]
2000-11-12 22:40:14 +00:00
Dave Abrahams 52e9d5d531 Added new tests
[SVN r8196]
2000-11-12 22:39:52 +00:00
Dave Abrahams c4c9347711 Changed to use new List return values from Dict.keys/items/values
[SVN r8195]
2000-11-12 22:39:13 +00:00
Dave Abrahams 0868609510 Used new conversion namespace macros.
Added another MSVC workaround


[SVN r8194]
2000-11-12 22:38:02 +00:00
Dave Abrahams 51724aaea6 Introduced new conversion namespace macros
[SVN r8193]
2000-11-12 22:36:57 +00:00
Dave Abrahams 405b946a1d changed to use new conversion namespace macros
Added enum_as_int_converters for easier enum wrapping


[SVN r8192]
2000-11-12 22:26:48 +00:00
Dave Abrahams 34ebecf6b4 Quick bug fix
[SVN r8191]
2000-11-12 22:20:51 +00:00
Dave Abrahams e502c6c0b2 changed to use new conversion namespace macros
culled up obsolete code


[SVN r8190]
2000-11-12 22:07:53 +00:00
Dave Abrahams 73a81aa622 changed to use new conversion namespace macros
[SVN r8189]
2000-11-12 22:06:10 +00:00
Dave Abrahams fb44d1d906 Added py::String operator*= and operator* for repetition
Change Dict::items(), keys(), and values() to return a List

Added template versions of set_item, etc., methods so that users can optionally
use C++ types that have to_python() functions as parameters.

Changed various Ptr by-value parameters to const Ptr&


[SVN r8188]
2000-11-12 21:10:14 +00:00
Dave Abrahams 5d7fe8dbe2 changed to use new conversion namespace macros
Added py::String operator*= and operator* for repetition

Change Dict::items(), keys(), and values() to return a List

Added template versions of set_item, etc., methods so that users can optionally
use C++ types that have to_python() functions as parameters.

Changed various Ptr by-value parameters to const Ptr&


[SVN r8187]
2000-11-12 21:08:25 +00:00
Dave Abrahams 9aa1129dd9 Changes to support explicit constructor of py::Ptr.
[SVN r8185]
2000-11-12 21:01:30 +00:00
Dave Abrahams fc5155e30d Fixed version number check for __MWERKS__
changed to use new conversion namespace macros
Added tests for enums and non-method class attributes
Fixed Ullrich's formatting
Made it compile with MSVC


[SVN r8183]
2000-11-12 20:58:42 +00:00
Dave Abrahams 63a4d2a313 changed to use new conversion namespace macros
[SVN r8181]
2000-11-12 20:52:41 +00:00
Dave Abrahams fed2ef5d64 Documented new conversion facilities; went into a little more detail.
[SVN r8180]
2000-11-12 20:50:48 +00:00
Dave Abrahams 2dc27af335 Fixed a bug in add(), which allows non-method class attributes
[SVN r8178]
2000-11-12 19:47:39 +00:00
Dave Abrahams 124a99882b Added call() function so that a regular python function (as opposed to method or
other function-as-attribute) can be called.

Added newlines for readability.


[SVN r8173]
2000-11-12 18:16:33 +00:00
Dave Abrahams 086527bcc2 Added call() function so that a regular python function (as opposed to method or
other function-as-attribute) can be called.

Added newlines for readability.


[SVN r8172]
2000-11-12 18:10:46 +00:00
Ullrich Köthe 692123408b generalized the new def_raw() feature
[SVN r8168]
2000-11-10 15:54:08 +00:00
Ullrich Köthe aed148838f added to from_python() functions to gen_extclass.py
(these were formerly only present on extclass.h and thus overwritten)


[SVN r8164]
2000-11-10 13:37:53 +00:00
Dave Abrahams 6f45ad5718 remove typename that was confusing MSVC
[SVN r8163]
2000-11-10 12:29:40 +00:00
Ullrich Köthe 03dbf0387a added new feature: def_raw()
[SVN r8162]
2000-11-10 11:44:42 +00:00
Dave Abrahams f6e12ce904 Add missing from_python functions for const T *const& and T* const&
[SVN r8159]
2000-11-08 20:10:14 +00:00
Dave Abrahams 4c4de52ffa Fix bug with unneccessary and wrongly-placed explicit instantiation thanks to
Ralf W. Grosse-Kunstleve <rwgk@cci.lbl.gov>


[SVN r8156]
2000-11-06 20:39:07 +00:00
Ullrich Köthe 84914ba405 added optimization in ExtensionClassBase::try_class_conversions()
[SVN r8155]
2000-11-06 17:30:23 +00:00
Ullrich Köthe f29fc34c8b fixed a simple typo in the comments for to_python()
[SVN r8154]
2000-11-06 17:29:22 +00:00
Dave Abrahams 3f52de0315 Rolled back inapplicable changes, preserving what Ullrich fixed.
[SVN r8153]
2000-11-06 16:09:35 +00:00