Re: [C++-sig] How to use functionality of list.

2010-05-10 Thread vishal bayskar
>Roman can you tell me how could I get pyplusplus version 1.1. I have tried using "svn co" but the >latest version that is checking out it only 1.0.0 >I tried with below cvs command >svn co https://pygccxml.svn.sourceforge.net/svnroot/pygccxml pygccxml >and >svn co http://pygccxml.svn.sourceforg

Re: [C++-sig] How to use functionality of list.

2010-05-10 Thread vishal bayskar
I don't understand why do you struggle. The "exposed via an indexing suite" method allows you to modify and iterate over the list using the well defined and documented protocol. If you need to use: Thanks Roman, Now I am able to use the functionality of list (although not all like pop() but I use

Re: [C++-sig] How to use functionality of list.

2010-05-06 Thread Roman Yakovenko
On Thu, May 6, 2010 at 10:24 AM, vishal bayskar wrote: > > Actually I need to extract the item present in the list, so I am trying to > use methonds of list (just for an example I tried push_back in the below > example). I don't understand why do you struggle. The "exposed via an indexing suite"

Re: [C++-sig] How to use functionality of list.

2010-05-06 Thread vishal bayskar
Actually I need to extract the item present in the list, so I am trying to use methonds of list (just for an example I tried push_back in the below example). vishal bayskar wrote: > >>Both indexing suites provides interface very similar to Python >>containers. So the user will not have to lea

Re: [C++-sig] How to use functionality of list.

2010-05-05 Thread vishal bayskar
>Both indexing suites provides interface very similar to Python >containers. So the user will not have to learn new API, but if you >insists, you can rename/introduce new method from Python >AList.push_back = AList.append But object Alist is not treated as a list and giving the below error. >>>

Re: [C++-sig] How to use functionality of list.

2010-05-05 Thread Roman Yakovenko
On Wed, May 5, 2010 at 2:20 PM, vishal bayskar wrote: > >>There is no need to expose std containers directly. Instead, expose >>declarations that are using them and Py++ will do the rest. > >>mb.free_function( 'getDummyAlist' ).include() > >>This topic is covered in the following document: >>http:

Re: [C++-sig] How to use functionality of list.

2010-05-05 Thread vishal bayskar
>There is no need to expose std containers directly. Instead, expose >declarations that are using them and Py++ will do the rest. >mb.free_function( 'getDummyAlist' ).include() >This topic is covered in the following document: >http://language-binding.net/pyplusplus/documentation/containers.html

Re: [C++-sig] How to use functionality of list.

2010-05-05 Thread Roman Yakovenko
On Wed, May 5, 2010 at 1:19 PM, vishal bayskar wrote: > > Actually I am able create wrapper code for list . All the functions of list > are exposed. > But when I try to compile it (try to create shared library) it showing below > error > ... > mb=module_builder.module_builder_t(["./listP.cpp"], >

[C++-sig] How to use functionality of list.

2010-05-05 Thread vishal bayskar
Actually I am able create wrapper code for list . All the functions of list are exposed. But when I try to compile it (try to create shared library) it showing below error --- testModule.cpp:11: error: _Alloc was not declared in this scope testModule.cpp:18: error: _Tp was not declared in