std::vector parameter name changes so that these parameters can be individually singled out with typemaps

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-06-25 21:30:13 +00:00
commit 176984f338
3 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,10 @@
Version 1.3.32 (in progress)
============================
06/25/2007: wsfulton
[Java, C#] Some parameter name changes in std_vector.i allowing better targeting
of typemaps for method parameters (for memory management of containers of pointers).
06/07/2007: mutandiz (Mikel Bancroft)
[allegrocl]
fix foreign-type constructor to properly look for ffitype typemap

View file

@ -180,7 +180,7 @@
%rename(Clear) clear;
void clear();
%rename(Add) push_back;
void push_back(const value_type& value);
void push_back(const value_type& x);
size_type size() const;
size_type capacity() const;
void reserve(size_type n);
@ -210,7 +210,7 @@
else
throw std::out_of_range("index");
}
void setitem(int index, const value_type& value) throw (std::out_of_range) {
void setitem(int index, const value_type& val) throw (std::out_of_range) {
if (index>=0 && index<(int)self->size())
(*self)[index] = value;
else
@ -230,7 +230,7 @@
throw std::invalid_argument("invalid range");
return new std::vector<CTYPE >(self->begin()+index, self->begin()+index+count);
}
void Insert(int index, const value_type& value) throw (std::out_of_range) {
void Insert(int index, const value_type& x) throw (std::out_of_range) {
if (index>=0 && index<(int)self->size()+1)
self->insert(self->begin()+index, value);
else

View file

@ -37,7 +37,7 @@ namespace std {
else
throw std::out_of_range("vector index out of range");
}
void set(int i, const value_type& x) throw (std::out_of_range) {
void set(int i, const value_type& val) throw (std::out_of_range) {
int size = int(self->size());
if (i>=0 && i<size)
(*self)[i] = x;