[GME-commit]
GMESRC/GME/Common CommonCollection.h,1.5,1.6 CommonStl.cpp,1.1,1.2
CommonStl.h,1.3,1.4
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Wed Oct 13 11:17:56 CDT 2004
- Previous message: [GME-commit]
GMESRC/GME/Include/STL algo.h,1.1,NONE algobase.h,1.1,NONE
algorithm,1.1,NONE alloc.h,1.1,NONE bitset,1.1,NONE
bvector.h,1.1,NONE char_traits.h,1.1,NONE defalloc.h,1.1,NONE
deque,1.1,NONE deque.h,1.1,NONE function.h,1.1,NONE
functional,1.1,NONE hash_map,1.1,NONE hash_map.h,1.1,NONE
hash_set,1.1,NONE hash_set.h,1.1,NONE hashtable.h,1.1,NONE
heap.h,1.1,NONE iterator,1.1,NONE iterator.h,1.1,NONE
limits,1.1,NONE list,1.1,NONE list.h,1.1,NONE map,1.1,NONE
map.h,1.1,NONE memory,1.1,NONE multimap.h,1.1,NONE
multiset.h,1.1,NONE numeric,1.1,NONE pair.h,1.1,NONE
pthread_alloc,1.1,NONE pthread_alloc.h,1.1,NONE queue,1.1,NONE
rope,1.1,NONE rope.h,1.1,NONE ropeimpl.h,1.1,NONE set,1.1,NONE
set.h,1.1,NONE slist,1.1,NONE slist.h,1.1,NONE stack,1.1,NONE
stack.h,1.1,NONE stdexcept,1.1,NONE stl_algo.h,1.1,NONE
stl_algobase.h,1.1,NONE stl_alloc.h,1.1,NONE stl_bvector.h,1.1,NONE
stl_config.h,1.2,NONE stl_construct.h,1.1,NONE stl_deque.h,1.1,NONE
stl_exception.h,1.1,NONE stl_function.h,1.1,NONE
stl_hash_fun.h,1.1,NONE stl_hash_map.h,1.1,NONE
stl_hash_set.h,1.1,NONE stl_hashtable.h,1.1,NONE
stl_heap.h,1.1,NONE stl_iterator.h,1.1,NONE
stl_iterator_base.h,1.1,NONE stl_list.h,1.1,NONE stl_map.h,1.1,NONE
stl_multimap.h,1.1,NONE stl_multiset.h,1.1,NONE
stl_numeric.h,1.1,NONE stl_pair.h,1.1,NONE stl_queue.h,1.1,NONE
stl_range_errors.h,1.1,NONE stl_raw_storage_iter.h,1.1,NONE
stl_relops.h,1.1,NONE stl_rope.h,1.1,NONE stl_set.h,1.1,NONE
stl_slist.h,1.1,NONE stl_stack.h,1.1,NONE stl_string_fwd.h,1.1,NONE
stl_tempbuf.h,1.1,NONE stl_threads.h,1.1,NONE stl_tree.h,1.1,NONE
stl_uninitialized.h,1.1,NONE stl_vector.h,1.1,NONE string,1.1,NONE
tempbuf.h,1.1,NONE tree.h,1.1,NONE type_traits.h,1.1,NONE
utility,1.1,NONE valarray,1.1,NONE vector,1.1,NONEvector.h,1.1,NONE
- Next message: [GME-commit]
GMESRC/GME/GMEActiveBrowser AggregateContextMenu.cpp,1.18,1.19
GMEActiveBrowser.dsp,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/gme/GMESRC/GME/Common
In directory braindrain:/tmp/cvs-serv20870/Common
Modified Files:
CommonCollection.h CommonStl.cpp CommonStl.h
Log Message:
GME ported to STLport
-std:: prefix added to stl classes and methods
CVS User: zolmol
Index: CommonCollection.h
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Common/CommonCollection.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** CommonCollection.h 2 Oct 2002 18:16:00 -0000 1.5
--- CommonCollection.h 13 Oct 2004 15:17:54 -0000 1.6
***************
*** 4,8 ****
#include <vector>
! #include <slist>
template<class ITFTYPE, class OBJTYPE>
--- 4,8 ----
#include <vector>
! #include <list>//slist
template<class ITFTYPE, class OBJTYPE>
***************
*** 144,150 ****
template<class ITFTYPE>
! void push_best(slist<ITFTYPE*> &into, ITFTYPE *o) { into.push_front(o); }
template<class ITFTYPE>
! void push_best(vector<ITFTYPE*> &into, ITFTYPE *o) { into.push_back(o); }
template<class COLLITF, class COLLTYPE, class ITFTYPE, class OBJTYPE>
--- 144,150 ----
template<class ITFTYPE>
! void push_best(std::list<ITFTYPE*> &into, ITFTYPE *o) { into.push_front(o); }//slist
template<class ITFTYPE>
! void push_best(std::vector<ITFTYPE*> &into, ITFTYPE *o) { into.push_back(o); }
template<class COLLITF, class COLLTYPE, class ITFTYPE, class OBJTYPE>
***************
*** 305,309 ****
template<class COLLITF, class ITFTYPE>
! void GetAll(COLLITF *coll, vector< CComObjPtr<ITFTYPE> > &ret)
{
ASSERT( coll != NULL );
--- 305,309 ----
template<class COLLITF, class ITFTYPE>
! void GetAll(COLLITF *coll, std::vector< CComObjPtr<ITFTYPE> > &ret)
{
ASSERT( coll != NULL );
***************
*** 320,324 ****
}
! inline HRESULT check_location_compatibility(IUnknown *newobj, IUnknown *oldobj) { return S_OK; }
--- 320,324 ----
}
! inline HRESULT check_location_compatibility(IUnknown *, IUnknown *) { return S_OK; }
Index: CommonStl.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Common/CommonStl.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CommonStl.cpp 5 Jul 2000 20:12:00 -0000 1.1
--- CommonStl.cpp 13 Oct 2004 15:17:54 -0000 1.2
***************
*** 6,10 ****
// --------------------------- string
! void vFormat(string &s, const char *format, va_list args)
{
const int maxsize = 1024;
--- 6,10 ----
// --------------------------- string
! void vFormat(std::string &s, const char *format, va_list args)
{
const int maxsize = 1024;
Index: CommonStl.h
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Common/CommonStl.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** CommonStl.h 2 Oct 2002 18:16:00 -0000 1.3
--- CommonStl.h 13 Oct 2004 15:17:54 -0000 1.4
***************
*** 16,25 ****
// these THROW exceptions
! inline void CopyTo(const string &s, BSTR *b) { CopyTo(s.begin(), s.length(), b); }
! inline void CopyTo(const string &s, VARIANT *v) { CopyTo(s.begin(), s.length(), v); }
! inline void CopyTo(const string &s, CComBstrObj &a) { CopyTo(s.begin(), s.length(), a); }
! inline void CopyTo(const string &s, CComVariant &a) { CopyTo(s.begin(), s.length(), a); }
! inline void CopyTo(BSTR b, string &s)
{
s.resize(GetCharLength(b));
--- 16,25 ----
// these THROW exceptions
! inline void CopyTo(const std::string &s, BSTR *b) { CopyTo(s.begin(), s.length(), b); }
! inline void CopyTo(const std::string &s, VARIANT *v) { CopyTo(s.begin(), s.length(), v); }
! inline void CopyTo(const std::string &s, CComBstrObj &a) { CopyTo(s.begin(), s.length(), a); }
! inline void CopyTo(const std::string &s, CComVariant &a) { CopyTo(s.begin(), s.length(), a); }
! inline void CopyTo(BSTR b, std::string &s)
{
s.resize(GetCharLength(b));
***************
*** 27,31 ****
}
! inline void CopyTo(VARIANT &v, string &s)
{
s.resize(GetCharLength(v));
--- 27,31 ----
}
! inline void CopyTo(VARIANT &v, std::string &s)
{
s.resize(GetCharLength(v));
***************
*** 33,39 ****
}
! void vFormat(string &s, const char *format, va_list args);
! inline void Format(string &s, const char *format, ...)
{
va_list args;
--- 33,39 ----
}
! void vFormat(std::string &s, const char *format, va_list args);
! inline void Format(std::string &s, const char *format, ...)
{
va_list args;
***************
*** 43,48 ****
}
! typedef vector<wchar_t>::iterator bstr_iterator;
! typedef vector<wchar_t>::const_iterator bstr_const_iterator;
inline bstr_const_iterator begin(BSTR p) { return p; }
--- 43,48 ----
}
! typedef std::vector<wchar_t>::iterator bstr_iterator;
! typedef std::vector<wchar_t>::const_iterator bstr_const_iterator;
inline bstr_const_iterator begin(BSTR p) { return p; }
***************
*** 57,61 ****
// --------------------------- bindata
! typedef vector<unsigned char> bindata;
inline void CopyTo(const bindata &b, VARIANT *p) { CopyTo(b.begin(), b.end(), p); }
--- 57,61 ----
// --------------------------- bindata
! typedef std::vector<unsigned char> bindata;
inline void CopyTo(const bindata &b, VARIANT *p) { CopyTo(b.begin(), b.end(), p); }
***************
*** 76,80 ****
}
! inline void MoveTo(SAFEARRAY *p, vector<CComBstrObj> &bstrobjs)
{
ASSERT( p != NULL );
--- 76,80 ----
}
! inline void MoveTo(SAFEARRAY *p, std::vector<CComBstrObj> &bstrobjs)
{
ASSERT( p != NULL );
***************
*** 84,88 ****
}
! inline void MoveTo(vector<CComBstrObj> &bstrobjs, SAFEARRAY **p)
{
ASSERT( p != NULL && *p == NULL );
--- 84,88 ----
}
! inline void MoveTo(std::vector<CComBstrObj> &bstrobjs, SAFEARRAY **p)
{
ASSERT( p != NULL && *p == NULL );
***************
*** 91,95 ****
}
! inline void CopyTo(const vector<CComBstrObj> &bstrobjs, SAFEARRAY **p)
{
ASSERT( p != NULL && *p == NULL );
--- 91,95 ----
}
! inline void CopyTo(const std::vector<CComBstrObj> &bstrobjs, SAFEARRAY **p)
{
ASSERT( p != NULL && *p == NULL );
***************
*** 98,102 ****
}
! inline void CopyTo(const vector<GUID> &guids, SAFEARRAY **p)
{
ASSERT( p != NULL && *p == NULL );
--- 98,102 ----
}
! inline void CopyTo(const std::vector<GUID> &guids, SAFEARRAY **p)
{
ASSERT( p != NULL && *p == NULL );
***************
*** 158,162 ****
++i;
! ASSERT( (container.size() < limit ? container.size() : limit) == (limit - counter) );
return limit - counter;
}
--- 158,162 ----
++i;
! ASSERT( ( (int) container.size() < limit ? (int) container.size() : limit) == (limit - counter) );//zolmol!
return limit - counter;
}
***************
*** 165,174 ****
template<class INTERFACE>
! class CComObjPtrVector : public vector< CComObjPtr<INTERFACE> >
{
};
template<class ELEM>
! void CopyTo(TYPENAME_ELEM2COLL(ELEM) *p, vector< CComObjPtr<ELEM> > &q)
{
ASSERT( p != NULL );
--- 165,174 ----
template<class INTERFACE>
! class CComObjPtrVector : public std::vector< CComObjPtr<INTERFACE> >
{
};
template<class ELEM>
! void CopyTo(TYPENAME_ELEM2COLL(ELEM) *p, std::vector< CComObjPtr<ELEM> > &q)
{
ASSERT( p != NULL );
***************
*** 193,197 ****
typedef TYPENAME_ELEM2COLL(ELEM) coll_interface;
! typedef vector< CComObjPtr<elem_interface> > vector_type;
operator coll_interface** () { return PutOut(coll_ptr); }
--- 193,197 ----
typedef TYPENAME_ELEM2COLL(ELEM) coll_interface;
! typedef std::vector< CComObjPtr<elem_interface> > vector_type;
operator coll_interface** () { return PutOut(coll_ptr); }
***************
*** 209,213 ****
PutOutCollObj(vector_type &v) : coll_vector(v) { }
! friend PutOutCollObj<ELEM> PutOut(vector< CComObjPtr<ELEM> > &coll_vector);
// to prevent misuse
--- 209,213 ----
PutOutCollObj(vector_type &v) : coll_vector(v) { }
! friend PutOutCollObj<ELEM> PutOut(std::vector< CComObjPtr<ELEM> > &coll_vector);
// to prevent misuse
***************
*** 221,225 ****
template<class ELEM>
! PutOutCollObj<ELEM> PutOut(vector< CComObjPtr<ELEM> > &coll_vector)
{
return PutOutCollObj<ELEM>(coll_vector);
--- 221,225 ----
template<class ELEM>
! PutOutCollObj<ELEM> PutOut(std::vector< CComObjPtr<ELEM> > &coll_vector)
{
return PutOutCollObj<ELEM>(coll_vector);
- Previous message: [GME-commit]
GMESRC/GME/Include/STL algo.h,1.1,NONE algobase.h,1.1,NONE
algorithm,1.1,NONE alloc.h,1.1,NONE bitset,1.1,NONE
bvector.h,1.1,NONE char_traits.h,1.1,NONE defalloc.h,1.1,NONE
deque,1.1,NONE deque.h,1.1,NONE function.h,1.1,NONE
functional,1.1,NONE hash_map,1.1,NONE hash_map.h,1.1,NONE
hash_set,1.1,NONE hash_set.h,1.1,NONE hashtable.h,1.1,NONE
heap.h,1.1,NONE iterator,1.1,NONE iterator.h,1.1,NONE
limits,1.1,NONE list,1.1,NONE list.h,1.1,NONE map,1.1,NONE
map.h,1.1,NONE memory,1.1,NONE multimap.h,1.1,NONE
multiset.h,1.1,NONE numeric,1.1,NONE pair.h,1.1,NONE
pthread_alloc,1.1,NONE pthread_alloc.h,1.1,NONE queue,1.1,NONE
rope,1.1,NONE rope.h,1.1,NONE ropeimpl.h,1.1,NONE set,1.1,NONE
set.h,1.1,NONE slist,1.1,NONE slist.h,1.1,NONE stack,1.1,NONE
stack.h,1.1,NONE stdexcept,1.1,NONE stl_algo.h,1.1,NONE
stl_algobase.h,1.1,NONE stl_alloc.h,1.1,NONE stl_bvector.h,1.1,NONE
stl_config.h,1.2,NONE stl_construct.h,1.1,NONE stl_deque.h,1.1,NONE
stl_exception.h,1.1,NONE stl_function.h,1.1,NONE
stl_hash_fun.h,1.1,NONE stl_hash_map.h,1.1,NONE
stl_hash_set.h,1.1,NONE stl_hashtable.h,1.1,NONE
stl_heap.h,1.1,NONE stl_iterator.h,1.1,NONE
stl_iterator_base.h,1.1,NONE stl_list.h,1.1,NONE stl_map.h,1.1,NONE
stl_multimap.h,1.1,NONE stl_multiset.h,1.1,NONE
stl_numeric.h,1.1,NONE stl_pair.h,1.1,NONE stl_queue.h,1.1,NONE
stl_range_errors.h,1.1,NONE stl_raw_storage_iter.h,1.1,NONE
stl_relops.h,1.1,NONE stl_rope.h,1.1,NONE stl_set.h,1.1,NONE
stl_slist.h,1.1,NONE stl_stack.h,1.1,NONE stl_string_fwd.h,1.1,NONE
stl_tempbuf.h,1.1,NONE stl_threads.h,1.1,NONE stl_tree.h,1.1,NONE
stl_uninitialized.h,1.1,NONE stl_vector.h,1.1,NONE string,1.1,NONE
tempbuf.h,1.1,NONE tree.h,1.1,NONE type_traits.h,1.1,NONE
utility,1.1,NONE valarray,1.1,NONE vector,1.1,NONEvector.h,1.1,NONE
- Next message: [GME-commit]
GMESRC/GME/GMEActiveBrowser AggregateContextMenu.cpp,1.18,1.19
GMEActiveBrowser.dsp,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the GME-commit
mailing list