title: Can python-C++ extension get a C++ object and call its member function?
body: <p>I am writing a python/C++ application, that will call methods in C++ extension from python.</p>
  
  <p>Say my C++ has a class:</p>
  
  <pre><code>class A
  {
      private:
          int _i;
      public:
          A(int i){_i=i;}
          int get_i(){return _i;}
  }
  
  A a=A();
  </code></pre>
  
  <p>It there anyway that python can get <code>a</code> object in C++ and call its member function, i.e.:</p>
  
  <pre><code>import cpp_extension
  a=cpp_extension.A()
  print a.get_i()
  </code></pre>
  
  <p>Any reference to general reading is also appreciated.</p>