From: <sp...@us...> - 2004-02-26 22:09:01
|
Update of /cvsroot/rtk/rtk/test/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6611/test/core Modified Files: vector0.cpp Log Message: Made non template based vector and template based vector by subclassing the first one Index: vector0.cpp =================================================================== RCS file: /cvsroot/rtk/rtk/test/core/vector0.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** vector0.cpp 26 Feb 2004 20:05:32 -0000 1.1 --- vector0.cpp 26 Feb 2004 21:52:27 -0000 1.2 *************** *** 1,3 **** --- 1,4 ---- #include <rtk/Vector.h> + #include <rtk/TVector.h> #include "../test.h" *************** *** 16,20 **** }; ! typedef VectorP<A*> VectorA; // A simple function to search a substring --- 17,21 ---- }; ! typedef TVectorP<A*> VectorA; // A simple function to search a substring *************** *** 24,32 **** } ! typedef Vector<RCHAR*>::SearchIterator<RCHAR*> Iter; int main(int argc, char* argv[]) { ! TITLE(_R("Test for the Vector template")); rprintf(_R("### Int vector ###\n")); --- 25,33 ---- } ! typedef RCharVector::TSearchIterator<RCHAR*> Iter; int main(int argc, char* argv[]) { ! TITLE(_R("Test for the Vector and TVector")); rprintf(_R("### Int vector ###\n")); |