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:
parent
aa84817ce0
commit
176984f338
3 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
Version 1.3.32 (in progress)
|
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)
|
06/07/2007: mutandiz (Mikel Bancroft)
|
||||||
[allegrocl]
|
[allegrocl]
|
||||||
fix foreign-type constructor to properly look for ffitype typemap
|
fix foreign-type constructor to properly look for ffitype typemap
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@
|
||||||
%rename(Clear) clear;
|
%rename(Clear) clear;
|
||||||
void clear();
|
void clear();
|
||||||
%rename(Add) push_back;
|
%rename(Add) push_back;
|
||||||
void push_back(const value_type& value);
|
void push_back(const value_type& x);
|
||||||
size_type size() const;
|
size_type size() const;
|
||||||
size_type capacity() const;
|
size_type capacity() const;
|
||||||
void reserve(size_type n);
|
void reserve(size_type n);
|
||||||
|
|
@ -210,7 +210,7 @@
|
||||||
else
|
else
|
||||||
throw std::out_of_range("index");
|
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())
|
if (index>=0 && index<(int)self->size())
|
||||||
(*self)[index] = value;
|
(*self)[index] = value;
|
||||||
else
|
else
|
||||||
|
|
@ -230,7 +230,7 @@
|
||||||
throw std::invalid_argument("invalid range");
|
throw std::invalid_argument("invalid range");
|
||||||
return new std::vector<CTYPE >(self->begin()+index, self->begin()+index+count);
|
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)
|
if (index>=0 && index<(int)self->size()+1)
|
||||||
self->insert(self->begin()+index, value);
|
self->insert(self->begin()+index, value);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ namespace std {
|
||||||
else
|
else
|
||||||
throw std::out_of_range("vector index out of range");
|
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());
|
int size = int(self->size());
|
||||||
if (i>=0 && i<size)
|
if (i>=0 && i<size)
|
||||||
(*self)[i] = x;
|
(*self)[i] = x;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue