2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

object_core.hpp - allow wrapping of objects which take object managers in their constructors.

forward.hpp
pointer_holder.hpp
value_holder.hpp
test/long.[py/cpp]

pointee.hpp,    - begin making borland work.
cv_category.hpp,
referent_storage.hpp
instance.hpp

self.hpp        - removed flotsam

signature.hpp   - use vector instead of list

destroy.hpp     - removed needless complication

make_keyword_range_fn.hpp - support for simpler init using vectors

class_converters.hpp - workaround for pro7

inheritance.hpp - simplified; took out pro7 workarounds; factored out
                  inheritance_query.hpp to reduce recompilation
                  dependencies

make_ptr_instance.hpp - add missing typename

registry.cpp    - add a little invariant checking for metrowerks

class.cpp       - stopped relying on class_id typedef

test/data_members.cpp - added a few more tests to make sure things compile at least.
test/destroy_test.cpp - removed cheating has_trivial_destructor tests
test/enum.cpp         - added some pro7 workarounds
test/virtual_functions.[py/cpp] - added _some_ tests for callbacks which return by reference.


[SVN r18489]
This commit is contained in:
Dave Abrahams
2003-05-21 22:17:23 +00:00
parent 66d6272942
commit 43e5ccd0a7
25 changed files with 302 additions and 171 deletions

View File

@@ -437,7 +437,7 @@ namespace objects
{
// Find a registered class object corresponding to id. Return a
// null handle if no such class is registered.
inline type_handle query_class(class_id id)
inline type_handle query_class(type_info id)
{
converter::registration const* p = converter::registry::query(id);
return type_handle(
@@ -448,7 +448,7 @@ namespace objects
// Find a registered class corresponding to id. If not found,
// throw an appropriate exception.
type_handle get_class(class_id id)
type_handle get_class(type_info id)
{
type_handle result(query_class(id));
@@ -473,7 +473,7 @@ namespace objects
// rest corresponding to its declared bases.
//
inline object
new_class(char const* name, std::size_t num_types, class_id const* const types, char const* doc)
new_class(char const* name, std::size_t num_types, type_info const* const types, char const* doc)
{
assert(num_types >= 1);
@@ -510,7 +510,7 @@ namespace objects
}
class_base::class_base(
char const* name, std::size_t num_types, class_id const* const types, char const* doc)
char const* name, std::size_t num_types, type_info const* const types, char const* doc)
: object(new_class(name, num_types, types, doc))
{
// Insert the new class object in the registry
@@ -630,7 +630,7 @@ namespace objects
));
}
BOOST_PYTHON_DECL type_handle registered_class_object(class_id id)
BOOST_PYTHON_DECL type_handle registered_class_object(type_info id)
{
return query_class(id);
}