swig/Examples/test-suite/ruby/li_std_speed.i
Gonzalo Garramuno 1d35a3bb0e Updated li_std_speed.i to also test speed of
container with an actual class (float).
Simplified insert() function.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 12:49:41 +00:00

26 lines
618 B
OpenEdge ABL

/**
* @file li_std_speed.i
* @author gga
* @date Fri May 18 18:03:15 2007
*
* @brief A speed test of the ruby stl
*
*
*/
%module li_std_speed
%include <std_list.i>
%include <std_vector.i>
%include <std_deque.i>
%include <std_set.i>
%template(RbList) std::list<swig::GC_VALUE>;
%template(RbVector) std::vector<swig::GC_VALUE>;
%template(RbDeque) std::deque<swig::GC_VALUE>;
%template(RbSet) std::set<swig::GC_VALUE>;
%template(RbFloatList) std::list<float>;
%template(RbFloatVector) std::vector<float>;
%template(RbFloatDeque) std::deque<float>;
%template(RbFloatSet) std::set<float>;