3 %warnfilter(SWIGWARN_IGNORE_OPERATOR_EQ,SWIGWARN_LANG_IDENTIFIER);
11 // using the %refobject/%unrefobject directives you can active the
12 // ref. counting for RCObj and all its descendents at once
15 %refobject RCObj "$this->addref();"
16 %unrefobject RCObj "$this->delref();"
20 %newobject B::create(A* a);
21 %newobject B::cloner();
33 // std::cout << "deleting a" << std::endl;
37 // fix strange ruby + virtual derivation problem
38 using RCObjBase::ref_count;
52 struct A3 : A1, private A2
58 #if defined(SWIGPYTHON)
59 %extend_smart_pointer(RCPtr<A>);
60 %template(RCPtr_A) RCPtr<A>;
74 static B* create(A* a)
86 // std::cout << "deleting b" << std::endl;
99 #if defined(SWIGPYTHON) || defined(SWIGOCTAVE)
101 %include <std_vector.i>
102 %template(vector_A) std::vector<RCPtr<A> >;