@ -20,8 +20,6 @@
@@ -20,8 +20,6 @@
# include <utility>
# include <vector>
# include <boost/tuple/tuple.hpp>
class CAutoFile ;
class CDataStream ;
class CScript ;
@ -452,16 +450,6 @@ template<typename K, typename T> unsigned int GetSerializeSize(const std::pair<K
@@ -452,16 +450,6 @@ template<typename K, typename T> unsigned int GetSerializeSize(const std::pair<K
template < typename Stream , typename K , typename T > void Serialize ( Stream & os , const std : : pair < K , T > & item , int nType , int nVersion ) ;
template < typename Stream , typename K , typename T > void Unserialize ( Stream & is , std : : pair < K , T > & item , int nType , int nVersion ) ;
// 3 tuple
template < typename T0 , typename T1 , typename T2 > unsigned int GetSerializeSize ( const boost : : tuple < T0 , T1 , T2 > & item , int nType , int nVersion ) ;
template < typename Stream , typename T0 , typename T1 , typename T2 > void Serialize ( Stream & os , const boost : : tuple < T0 , T1 , T2 > & item , int nType , int nVersion ) ;
template < typename Stream , typename T0 , typename T1 , typename T2 > void Unserialize ( Stream & is , boost : : tuple < T0 , T1 , T2 > & item , int nType , int nVersion ) ;
// 4 tuple
template < typename T0 , typename T1 , typename T2 , typename T3 > unsigned int GetSerializeSize ( const boost : : tuple < T0 , T1 , T2 , T3 > & item , int nType , int nVersion ) ;
template < typename Stream , typename T0 , typename T1 , typename T2 , typename T3 > void Serialize ( Stream & os , const boost : : tuple < T0 , T1 , T2 , T3 > & item , int nType , int nVersion ) ;
template < typename Stream , typename T0 , typename T1 , typename T2 , typename T3 > void Unserialize ( Stream & is , boost : : tuple < T0 , T1 , T2 , T3 > & item , int nType , int nVersion ) ;
// map
template < typename K , typename T , typename Pred , typename A > unsigned int GetSerializeSize ( const std : : map < K , T , Pred , A > & m , int nType , int nVersion ) ;
template < typename Stream , typename K , typename T , typename Pred , typename A > void Serialize ( Stream & os , const std : : map < K , T , Pred , A > & m , int nType , int nVersion ) ;
@ -669,71 +657,6 @@ void Unserialize(Stream& is, std::pair<K, T>& item, int nType, int nVersion)
@@ -669,71 +657,6 @@ void Unserialize(Stream& is, std::pair<K, T>& item, int nType, int nVersion)
//
// 3 tuple
//
template < typename T0 , typename T1 , typename T2 >
unsigned int GetSerializeSize ( const boost : : tuple < T0 , T1 , T2 > & item , int nType , int nVersion )
{
unsigned int nSize = 0 ;
nSize + = GetSerializeSize ( boost : : get < 0 > ( item ) , nType , nVersion ) ;
nSize + = GetSerializeSize ( boost : : get < 1 > ( item ) , nType , nVersion ) ;
nSize + = GetSerializeSize ( boost : : get < 2 > ( item ) , nType , nVersion ) ;
return nSize ;
}
template < typename Stream , typename T0 , typename T1 , typename T2 >
void Serialize ( Stream & os , const boost : : tuple < T0 , T1 , T2 > & item , int nType , int nVersion )
{
Serialize ( os , boost : : get < 0 > ( item ) , nType , nVersion ) ;
Serialize ( os , boost : : get < 1 > ( item ) , nType , nVersion ) ;
Serialize ( os , boost : : get < 2 > ( item ) , nType , nVersion ) ;
}
template < typename Stream , typename T0 , typename T1 , typename T2 >
void Unserialize ( Stream & is , boost : : tuple < T0 , T1 , T2 > & item , int nType , int nVersion )
{
Unserialize ( is , boost : : get < 0 > ( item ) , nType , nVersion ) ;
Unserialize ( is , boost : : get < 1 > ( item ) , nType , nVersion ) ;
Unserialize ( is , boost : : get < 2 > ( item ) , nType , nVersion ) ;
}
//
// 4 tuple
//
template < typename T0 , typename T1 , typename T2 , typename T3 >
unsigned int GetSerializeSize ( const boost : : tuple < T0 , T1 , T2 , T3 > & item , int nType , int nVersion )
{
unsigned int nSize = 0 ;
nSize + = GetSerializeSize ( boost : : get < 0 > ( item ) , nType , nVersion ) ;
nSize + = GetSerializeSize ( boost : : get < 1 > ( item ) , nType , nVersion ) ;
nSize + = GetSerializeSize ( boost : : get < 2 > ( item ) , nType , nVersion ) ;
nSize + = GetSerializeSize ( boost : : get < 3 > ( item ) , nType , nVersion ) ;
return nSize ;
}
template < typename Stream , typename T0 , typename T1 , typename T2 , typename T3 >
void Serialize ( Stream & os , const boost : : tuple < T0 , T1 , T2 , T3 > & item , int nType , int nVersion )
{
Serialize ( os , boost : : get < 0 > ( item ) , nType , nVersion ) ;
Serialize ( os , boost : : get < 1 > ( item ) , nType , nVersion ) ;
Serialize ( os , boost : : get < 2 > ( item ) , nType , nVersion ) ;
Serialize ( os , boost : : get < 3 > ( item ) , nType , nVersion ) ;
}
template < typename Stream , typename T0 , typename T1 , typename T2 , typename T3 >
void Unserialize ( Stream & is , boost : : tuple < T0 , T1 , T2 , T3 > & item , int nType , int nVersion )
{
Unserialize ( is , boost : : get < 0 > ( item ) , nType , nVersion ) ;
Unserialize ( is , boost : : get < 1 > ( item ) , nType , nVersion ) ;
Unserialize ( is , boost : : get < 2 > ( item ) , nType , nVersion ) ;
Unserialize ( is , boost : : get < 3 > ( item ) , nType , nVersion ) ;
}
//
// map
//