add PythonCompleteConstruct friend for python bindings
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 08 Jul 2008 10:19:34 -0700
changeset 3396 0d83aa14b65d
parent 3395 3b6bc7a4f975
child 3397 cad55f67f3fc
child 3408 2cc40b3e4fa5
add PythonCompleteConstruct friend for python bindings
src/core/object.h
--- a/src/core/object.h	Tue Jul 08 10:17:18 2008 -0700
+++ b/src/core/object.h	Tue Jul 08 10:19:34 2008 -0700
@@ -198,6 +198,10 @@
   friend Ptr<T> CopyObject (Ptr<T> object);
   template <typename T>
   friend Ptr<T> CopyObject (Ptr<const T> object);
+  // The following friend method declaration is used only
+  // by our python bindings to call the protected ObjectBase::Construct
+  // method.
+  friend void PythonCompleteConstruct (Ptr<Object> object, TypeId typeId, const AttributeList &attributes);
 
   friend class ObjectFactory;
   friend class AggregateIterator;