logo       

Vector extensions: msg#00095

programming.swig

Subject: Vector extensions

Hellow, please advice me. I am working with vectors. My task is to add
my own
functions to vectors. I have one decision:

typedef double MyFloat;

namespace std {
%extend vector {
char *myfunc{
...
};
}
template (pParams) vector <Mystruct>; // myfunc adds to pParams
template (sParams) vector <MyFloat>; // but not adds to sParams

};
And it's works but only for vector of structs or vector of classes, by
not
for vectors of basic types like double, please help me to solve this problem.
Thanks in advance.

--
Best regards !
Mit freundlichem Gruss !
C наилучшими пожеланиями !
-----------------------------------------
Konstanitin Teplinskiy,
Mail: kostya@xxxxxxxxxxxxxxxxxxxx

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise