migration
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
# pt-sillyfilly
|
# pt-sillyfilly
|
||||||
pt-sillyfilly-priv
|
pt-sillyfilly-priv
|
||||||
|
|||||||
+23
-23
@@ -1,23 +1,23 @@
|
|||||||
Customer ActivationAgentServer
|
Customer ActivationAgentServer
|
||||||
|
|
||||||
ActivationAgentServer for socket:
|
ActivationAgentServer for socket:
|
||||||
|
|
||||||
Manufacturer ID
|
Manufacturer ID
|
||||||
Ethernet MAC address
|
Ethernet MAC address
|
||||||
hard disk serial number
|
hard disk serial number
|
||||||
processor type
|
processor type
|
||||||
IDE controller ID
|
IDE controller ID
|
||||||
SCSI host adapter ID
|
SCSI host adapter ID
|
||||||
volume serial number
|
volume serial number
|
||||||
CDROM ID
|
CDROM ID
|
||||||
graphics card ID
|
graphics card ID
|
||||||
V2 IDE controller ID
|
V2 IDE controller ID
|
||||||
V2 SCSI host adapter ID
|
V2 SCSI host adapter ID
|
||||||
V2 CDROM ID
|
V2 CDROM ID
|
||||||
V2 graphics card ID
|
V2 graphics card ID
|
||||||
V3 BIOS serial number
|
V3 BIOS serial number
|
||||||
|
|
||||||
Ethernet Built-in
|
Ethernet Built-in
|
||||||
Ethernet USB
|
Ethernet USB
|
||||||
Ethernet Unspecified
|
Ethernet Unspecified
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
"Pukka code construction requires %u decimal digit groups. You provided %u."
|
"Pukka code construction requires %u decimal digit groups. You provided %u."
|
||||||
+6
-6
@@ -1,7 +1,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// pace::eden::thrift::activate::ActivationPreferences
|
// pace::eden::thrift::activate::ActivationPreferences
|
||||||
// pace::eden::thrift::activate::FrontendResult
|
// pace::eden::thrift::activate::FrontendResult
|
||||||
// pace::eden::thrift::activate::ServiceIdList_T
|
// pace::eden::thrift::activate::ServiceIdList_T
|
||||||
// pace::eden::thrift::pub::eAuthState
|
// pace::eden::thrift::pub::eAuthState
|
||||||
// en::thrift::activate::Se
|
// en::thrift::activate::Se
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// boost unique_lock doesn't own the mutex
|
// boost unique_lock doesn't own the mutex
|
||||||
+7920
-7920
File diff suppressed because it is too large
Load Diff
+9
-9
@@ -1,10 +1,10 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// WinHttpOpen with proxy Error:
|
// WinHttpOpen with proxy Error:
|
||||||
// WinHttpConnect with proxy Error:
|
// WinHttpConnect with proxy Error:
|
||||||
// WinHttpOpen Error:
|
// WinHttpOpen Error:
|
||||||
// WinHttpConnect Error:
|
// WinHttpConnect Error:
|
||||||
// WinHttpSendRequest Error:
|
// WinHttpSendRequest Error:
|
||||||
// WinHttpOpenRequest Error:
|
// WinHttpOpenRequest Error:
|
||||||
// WinHttpReadData Error:
|
// WinHttpReadData Error:
|
||||||
// WebRequestWin::performRequestFromThread caught an exception
|
// WebRequestWin::performRequestFromThread caught an exception
|
||||||
+39
-39
@@ -1,40 +1,40 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// ProxyApp.getVersion
|
// ProxyApp.getVersion
|
||||||
// ProxyApp.alertUser
|
// ProxyApp.alertUser
|
||||||
// ProxyApp.notifyUser
|
// ProxyApp.notifyUser
|
||||||
// ProxyApp.activateAuth
|
// ProxyApp.activateAuth
|
||||||
// ProxyApp.deactivateAuth
|
// ProxyApp.deactivateAuth
|
||||||
// ProxyApp.quit
|
// ProxyApp.quit
|
||||||
// ProxyApp.checkMinimumEdenVersion
|
// ProxyApp.checkMinimumEdenVersion
|
||||||
// ProxyApp.getUserAccountList
|
// ProxyApp.getUserAccountList
|
||||||
// ProxyApp.getUserAccountPassword
|
// ProxyApp.getUserAccountPassword
|
||||||
// ProxyApp.removeUserAccountPassword
|
// ProxyApp.removeUserAccountPassword
|
||||||
// ProxyApp.setDefaultUserAccountId
|
// ProxyApp.setDefaultUserAccountId
|
||||||
// ProxyApp.setUserAccountPassword
|
// ProxyApp.setUserAccountPassword
|
||||||
// ProxyApp_getVersion_result
|
// ProxyApp_getVersion_result
|
||||||
// ProxyApp_alertUser_result
|
// ProxyApp_alertUser_result
|
||||||
// ProxyApp_notifyUser_result
|
// ProxyApp_notifyUser_result
|
||||||
// ProxyApp_activateAuth_result
|
// ProxyApp_activateAuth_result
|
||||||
// ProxyApp_deactivateAuth_result
|
// ProxyApp_deactivateAuth_result
|
||||||
// ProxyApp_checkMinimumEdenVersion_result
|
// ProxyApp_checkMinimumEdenVersion_result
|
||||||
// ProxyApp_getUserAccountList_result
|
// ProxyApp_getUserAccountList_result
|
||||||
// ProxyApp_getUserAccountPassword_result
|
// ProxyApp_getUserAccountPassword_result
|
||||||
// ProxyApp_removeUserAccountPassword_result
|
// ProxyApp_removeUserAccountPassword_result
|
||||||
// ProxyApp_setDefaultUserAccountId_result
|
// ProxyApp_setDefaultUserAccountId_result
|
||||||
// ProxyApp_setUserAccountPassword_result
|
// ProxyApp_setUserAccountPassword_result
|
||||||
|
|
||||||
// Caught an exception in ProxyAppServerBase::getVersion
|
// Caught an exception in ProxyAppServerBase::getVersion
|
||||||
// Caught an exception in ProxyAppServerBase::alertUser
|
// Caught an exception in ProxyAppServerBase::alertUser
|
||||||
// Caught an exception in ProxyAppServerBase::notifyUser
|
// Caught an exception in ProxyAppServerBase::notifyUser
|
||||||
// Caught an exception in ProxyAppServerBase::activateAuth
|
// Caught an exception in ProxyAppServerBase::activateAuth
|
||||||
// Caught an exception in ProxyAppServerBase::deactivateAuth
|
// Caught an exception in ProxyAppServerBase::deactivateAuth
|
||||||
// Caught an exception in ProxyAppServerBase::checkMinimumEdenVersion
|
// Caught an exception in ProxyAppServerBase::checkMinimumEdenVersion
|
||||||
// Caught an exception in ProxyAppServerBase::getUserAccountList
|
// Caught an exception in ProxyAppServerBase::getUserAccountList
|
||||||
// Caught an exception in ProxyAppServerBase::getUserAccountPassword
|
// Caught an exception in ProxyAppServerBase::getUserAccountPassword
|
||||||
// Caught an exception in ProxyAppServerBase::removeUserAccountPassword
|
// Caught an exception in ProxyAppServerBase::removeUserAccountPassword
|
||||||
// Caught an exception in ProxyAppServerBase::setDefaultUserAccountId
|
// Caught an exception in ProxyAppServerBase::setDefaultUserAccountId
|
||||||
// Caught an exception in ProxyAppServerBase::setUserAccountPassword
|
// Caught an exception in ProxyAppServerBase::setUserAccountPassword
|
||||||
// Caught an exception in ProxyAppServerBase::getKeyChainPassword
|
// Caught an exception in ProxyAppServerBase::getKeyChainPassword
|
||||||
// Caught an exception in ProxyAppServerBase::removeKeyChainPassword
|
// Caught an exception in ProxyAppServerBase::removeKeyChainPassword
|
||||||
// Caught an exception in ProxyAppServerBase::setKeyChainPassword
|
// Caught an exception in ProxyAppServerBase::setKeyChainPassword
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// acceptableLocations:
|
// acceptableLocations:
|
||||||
// activationDate:
|
// activationDate:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// IMUL ESP.dowrd ptr [RBP + 0x79], 0x3a
|
// IMUL ESP.dowrd ptr [RBP + 0x79], 0x3a
|
||||||
// valueBinary:
|
// valueBinary:
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// Relation named entries with related object count:
|
// Relation named entries with related object count:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// algorithmId:
|
// algorithmId:
|
||||||
// encrpytedWithId:
|
// encrpytedWithId:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// aaSigningEntropy:
|
// aaSigningEntropy:
|
||||||
// authId:
|
// authId:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// Relation named child with related object (
|
// Relation named child with related object (
|
||||||
// Relation named child has no related object.
|
// Relation named child has no related object.
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// authType:
|
// authType:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// LsLicenseWire::compareWireObjectsEqual
|
// LsLicenseWire::compareWireObjectsEqual
|
||||||
// LsLicenseWire.selfRelation.entityId
|
// LsLicenseWire.selfRelation.entityId
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// deleteObject
|
// deleteObject
|
||||||
// flushObject
|
// flushObject
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// LsAuthorizationWire::compareWireObjectsEqual:
|
// LsAuthorizationWire::compareWireObjectsEqual:
|
||||||
// LsAuthorizationWire.selfRelation.entityId
|
// LsAuthorizationWire.selfRelation.entityId
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// chainStructure:
|
// chainStructure:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// counter1CountsUpNotDown
|
// counter1CountsUpNotDown
|
||||||
// counter1CurrentCount
|
// counter1CurrentCount
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// databaseInfoGuid:
|
// databaseInfoGuid:
|
||||||
// dateRegistered:
|
// dateRegistered:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// countLimited:
|
// countLimited:
|
||||||
// - skipped -
|
// - skipped -
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// combined64BitCounter:
|
// combined64BitCounter:
|
||||||
// countLimitIsSet:
|
// countLimitIsSet:
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// locationIndicator:
|
// locationIndicator:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// agreementGuid:
|
// agreementGuid:
|
||||||
// bindingAlgorithm:
|
// bindingAlgorithm:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// bindingData:
|
// bindingData:
|
||||||
// bindingId:
|
// bindingId:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// localizedName:
|
// localizedName:
|
||||||
// nodeName:
|
// nodeName:
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// LsCountLimitWire::compareWireObjectsEqual:
|
// LsCountLimitWire::compareWireObjectsEqual:
|
||||||
// LsCountLimitWire.selfRelation.entityId
|
// LsCountLimitWire.selfRelation.entityId
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// LsMachineIdWire::compareWireObjectsEqual:
|
// LsMachineIdWire::compareWireObjectsEqual:
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// makes call to DsigSignatureVerifier.cpp
|
// makes call to DsigSignatureVerifier.cpp
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// makes call to LsEntityUtilsAuthManifestELement.cpp
|
// makes call to LsEntityUtilsAuthManifestELement.cpp
|
||||||
+311
-311
@@ -1,311 +1,311 @@
|
|||||||
#ifndef BOOST_INTRUSIVE_PTR_HPP_INCLUDED
|
#ifndef BOOST_INTRUSIVE_PTR_HPP_INCLUDED
|
||||||
#define BOOST_INTRUSIVE_PTR_HPP_INCLUDED
|
#define BOOST_INTRUSIVE_PTR_HPP_INCLUDED
|
||||||
|
|
||||||
//
|
//
|
||||||
// intrusive_ptr.hpp
|
// intrusive_ptr.hpp
|
||||||
//
|
//
|
||||||
// Copyright (c) 2001, 2002 Peter Dimov
|
// Copyright (c) 2001, 2002 Peter Dimov
|
||||||
//
|
//
|
||||||
// Distributed under the Boost Software License, Version 1.0. (See
|
// Distributed under the Boost Software License, Version 1.0. (See
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
// accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/smart_ptr/intrusive_ptr.html for documentation.
|
// See http://www.boost.org/libs/smart_ptr/intrusive_ptr.html for documentation.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#ifdef BOOST_MSVC // moved here to work around VC++ compiler crash
|
#ifdef BOOST_MSVC // moved here to work around VC++ compiler crash
|
||||||
# pragma warning(push)
|
# pragma warning(push)
|
||||||
# pragma warning(disable:4284) // odd return type for operator->
|
# pragma warning(disable:4284) // odd return type for operator->
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <boost/detail/sp_convertible.hpp>
|
#include <boost/detail/sp_convertible.hpp>
|
||||||
|
|
||||||
#include <boost/config/no_tr1/functional.hpp> // for std::less
|
#include <boost/config/no_tr1/functional.hpp> // for std::less
|
||||||
|
|
||||||
#if !defined(BOOST_NO_IOSTREAM)
|
#if !defined(BOOST_NO_IOSTREAM)
|
||||||
#if !defined(BOOST_NO_IOSFWD)
|
#if !defined(BOOST_NO_IOSFWD)
|
||||||
#include <iosfwd> // for std::basic_ostream
|
#include <iosfwd> // for std::basic_ostream
|
||||||
#else
|
#else
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
//
|
//
|
||||||
// intrusive_ptr
|
// intrusive_ptr
|
||||||
//
|
//
|
||||||
// A smart pointer that uses intrusive reference counting.
|
// A smart pointer that uses intrusive reference counting.
|
||||||
//
|
//
|
||||||
// Relies on unqualified calls to
|
// Relies on unqualified calls to
|
||||||
//
|
//
|
||||||
// void intrusive_ptr_add_ref(T * p);
|
// void intrusive_ptr_add_ref(T * p);
|
||||||
// void intrusive_ptr_release(T * p);
|
// void intrusive_ptr_release(T * p);
|
||||||
//
|
//
|
||||||
// (p != 0)
|
// (p != 0)
|
||||||
//
|
//
|
||||||
// The object is responsible for destroying itself.
|
// The object is responsible for destroying itself.
|
||||||
//
|
//
|
||||||
|
|
||||||
template<class T> class intrusive_ptr
|
template<class T> class intrusive_ptr
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typedef intrusive_ptr this_type;
|
typedef intrusive_ptr this_type;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef T element_type;
|
typedef T element_type;
|
||||||
|
|
||||||
intrusive_ptr(): p_(0)
|
intrusive_ptr(): p_(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
intrusive_ptr(T * p, bool add_ref = true): p_(p)
|
intrusive_ptr(T * p, bool add_ref = true): p_(p)
|
||||||
{
|
{
|
||||||
if(p_ != 0 && add_ref) intrusive_ptr_add_ref(p_);
|
if(p_ != 0 && add_ref) intrusive_ptr_add_ref(p_);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_MEMBER_TEMPLATES) || defined(BOOST_MSVC6_MEMBER_TEMPLATES)
|
#if !defined(BOOST_NO_MEMBER_TEMPLATES) || defined(BOOST_MSVC6_MEMBER_TEMPLATES)
|
||||||
|
|
||||||
template<class U>
|
template<class U>
|
||||||
#if !defined( BOOST_SP_NO_SP_CONVERTIBLE )
|
#if !defined( BOOST_SP_NO_SP_CONVERTIBLE )
|
||||||
|
|
||||||
intrusive_ptr( intrusive_ptr<U> const & rhs, typename detail::sp_enable_if_convertible<U,T>::type = detail::sp_empty() )
|
intrusive_ptr( intrusive_ptr<U> const & rhs, typename detail::sp_enable_if_convertible<U,T>::type = detail::sp_empty() )
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
intrusive_ptr( intrusive_ptr<U> const & rhs )
|
intrusive_ptr( intrusive_ptr<U> const & rhs )
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
: p_( rhs.get() )
|
: p_( rhs.get() )
|
||||||
{
|
{
|
||||||
if( p_ != 0 ) intrusive_ptr_add_ref( p_ );
|
if( p_ != 0 ) intrusive_ptr_add_ref( p_ );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
intrusive_ptr(intrusive_ptr const & rhs): p_(rhs.p_)
|
intrusive_ptr(intrusive_ptr const & rhs): p_(rhs.p_)
|
||||||
{
|
{
|
||||||
if(p_ != 0) intrusive_ptr_add_ref(p_);
|
if(p_ != 0) intrusive_ptr_add_ref(p_);
|
||||||
}
|
}
|
||||||
|
|
||||||
~intrusive_ptr()
|
~intrusive_ptr()
|
||||||
{
|
{
|
||||||
if(p_ != 0) intrusive_ptr_release(p_);
|
if(p_ != 0) intrusive_ptr_release(p_);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_MEMBER_TEMPLATES) || defined(BOOST_MSVC6_MEMBER_TEMPLATES)
|
#if !defined(BOOST_NO_MEMBER_TEMPLATES) || defined(BOOST_MSVC6_MEMBER_TEMPLATES)
|
||||||
|
|
||||||
template<class U> intrusive_ptr & operator=(intrusive_ptr<U> const & rhs)
|
template<class U> intrusive_ptr & operator=(intrusive_ptr<U> const & rhs)
|
||||||
{
|
{
|
||||||
this_type(rhs).swap(*this);
|
this_type(rhs).swap(*this);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
intrusive_ptr & operator=(intrusive_ptr const & rhs)
|
intrusive_ptr & operator=(intrusive_ptr const & rhs)
|
||||||
{
|
{
|
||||||
this_type(rhs).swap(*this);
|
this_type(rhs).swap(*this);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
intrusive_ptr & operator=(T * rhs)
|
intrusive_ptr & operator=(T * rhs)
|
||||||
{
|
{
|
||||||
this_type(rhs).swap(*this);
|
this_type(rhs).swap(*this);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset()
|
void reset()
|
||||||
{
|
{
|
||||||
this_type().swap( *this );
|
this_type().swap( *this );
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset( T * rhs )
|
void reset( T * rhs )
|
||||||
{
|
{
|
||||||
this_type( rhs ).swap( *this );
|
this_type( rhs ).swap( *this );
|
||||||
}
|
}
|
||||||
|
|
||||||
T * get() const
|
T * get() const
|
||||||
{
|
{
|
||||||
return p_;
|
return p_;
|
||||||
}
|
}
|
||||||
|
|
||||||
T & operator*() const
|
T & operator*() const
|
||||||
{
|
{
|
||||||
BOOST_ASSERT( p_ != 0 );
|
BOOST_ASSERT( p_ != 0 );
|
||||||
return *p_;
|
return *p_;
|
||||||
}
|
}
|
||||||
|
|
||||||
T * operator->() const
|
T * operator->() const
|
||||||
{
|
{
|
||||||
BOOST_ASSERT( p_ != 0 );
|
BOOST_ASSERT( p_ != 0 );
|
||||||
return p_;
|
return p_;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x530)
|
#if defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x530)
|
||||||
|
|
||||||
operator bool () const
|
operator bool () const
|
||||||
{
|
{
|
||||||
return p_ != 0;
|
return p_ != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3003))
|
#elif defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3003))
|
||||||
typedef T * (this_type::*unspecified_bool_type)() const;
|
typedef T * (this_type::*unspecified_bool_type)() const;
|
||||||
|
|
||||||
operator unspecified_bool_type() const // never throws
|
operator unspecified_bool_type() const // never throws
|
||||||
{
|
{
|
||||||
return p_ == 0? 0: &this_type::get;
|
return p_ == 0? 0: &this_type::get;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
typedef T * this_type::*unspecified_bool_type;
|
typedef T * this_type::*unspecified_bool_type;
|
||||||
|
|
||||||
operator unspecified_bool_type () const
|
operator unspecified_bool_type () const
|
||||||
{
|
{
|
||||||
return p_ == 0? 0: &this_type::p_;
|
return p_ == 0? 0: &this_type::p_;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// operator! is a Borland-specific workaround
|
// operator! is a Borland-specific workaround
|
||||||
bool operator! () const
|
bool operator! () const
|
||||||
{
|
{
|
||||||
return p_ == 0;
|
return p_ == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void swap(intrusive_ptr & rhs)
|
void swap(intrusive_ptr & rhs)
|
||||||
{
|
{
|
||||||
T * tmp = p_;
|
T * tmp = p_;
|
||||||
p_ = rhs.p_;
|
p_ = rhs.p_;
|
||||||
rhs.p_ = tmp;
|
rhs.p_ = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
T * p_;
|
T * p_;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T, class U> inline bool operator==(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b)
|
template<class T, class U> inline bool operator==(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b)
|
||||||
{
|
{
|
||||||
return a.get() == b.get();
|
return a.get() == b.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b)
|
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b)
|
||||||
{
|
{
|
||||||
return a.get() != b.get();
|
return a.get() != b.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> inline bool operator==(intrusive_ptr<T> const & a, U * b)
|
template<class T, class U> inline bool operator==(intrusive_ptr<T> const & a, U * b)
|
||||||
{
|
{
|
||||||
return a.get() == b;
|
return a.get() == b;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, U * b)
|
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, U * b)
|
||||||
{
|
{
|
||||||
return a.get() != b;
|
return a.get() != b;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> inline bool operator==(T * a, intrusive_ptr<U> const & b)
|
template<class T, class U> inline bool operator==(T * a, intrusive_ptr<U> const & b)
|
||||||
{
|
{
|
||||||
return a == b.get();
|
return a == b.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const & b)
|
template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const & b)
|
||||||
{
|
{
|
||||||
return a != b.get();
|
return a != b.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __GNUC__ == 2 && __GNUC_MINOR__ <= 96
|
#if __GNUC__ == 2 && __GNUC_MINOR__ <= 96
|
||||||
|
|
||||||
// Resolve the ambiguity between our op!= and the one in rel_ops
|
// Resolve the ambiguity between our op!= and the one in rel_ops
|
||||||
|
|
||||||
template<class T> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<T> const & b)
|
template<class T> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<T> const & b)
|
||||||
{
|
{
|
||||||
return a.get() != b.get();
|
return a.get() != b.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template<class T> inline bool operator<(intrusive_ptr<T> const & a, intrusive_ptr<T> const & b)
|
template<class T> inline bool operator<(intrusive_ptr<T> const & a, intrusive_ptr<T> const & b)
|
||||||
{
|
{
|
||||||
return std::less<T *>()(a.get(), b.get());
|
return std::less<T *>()(a.get(), b.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T> void swap(intrusive_ptr<T> & lhs, intrusive_ptr<T> & rhs)
|
template<class T> void swap(intrusive_ptr<T> & lhs, intrusive_ptr<T> & rhs)
|
||||||
{
|
{
|
||||||
lhs.swap(rhs);
|
lhs.swap(rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
// mem_fn support
|
// mem_fn support
|
||||||
|
|
||||||
template<class T> T * get_pointer(intrusive_ptr<T> const & p)
|
template<class T> T * get_pointer(intrusive_ptr<T> const & p)
|
||||||
{
|
{
|
||||||
return p.get();
|
return p.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> intrusive_ptr<T> static_pointer_cast(intrusive_ptr<U> const & p)
|
template<class T, class U> intrusive_ptr<T> static_pointer_cast(intrusive_ptr<U> const & p)
|
||||||
{
|
{
|
||||||
return static_cast<T *>(p.get());
|
return static_cast<T *>(p.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> intrusive_ptr<T> const_pointer_cast(intrusive_ptr<U> const & p)
|
template<class T, class U> intrusive_ptr<T> const_pointer_cast(intrusive_ptr<U> const & p)
|
||||||
{
|
{
|
||||||
return const_cast<T *>(p.get());
|
return const_cast<T *>(p.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> intrusive_ptr<T> dynamic_pointer_cast(intrusive_ptr<U> const & p)
|
template<class T, class U> intrusive_ptr<T> dynamic_pointer_cast(intrusive_ptr<U> const & p)
|
||||||
{
|
{
|
||||||
return dynamic_cast<T *>(p.get());
|
return dynamic_cast<T *>(p.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
// operator<<
|
// operator<<
|
||||||
|
|
||||||
#if !defined(BOOST_NO_IOSTREAM)
|
#if !defined(BOOST_NO_IOSTREAM)
|
||||||
|
|
||||||
#if defined(BOOST_NO_TEMPLATED_IOSTREAMS) || ( defined(__GNUC__) && (__GNUC__ < 3) )
|
#if defined(BOOST_NO_TEMPLATED_IOSTREAMS) || ( defined(__GNUC__) && (__GNUC__ < 3) )
|
||||||
|
|
||||||
template<class Y> std::ostream & operator<< (std::ostream & os, intrusive_ptr<Y> const & p)
|
template<class Y> std::ostream & operator<< (std::ostream & os, intrusive_ptr<Y> const & p)
|
||||||
{
|
{
|
||||||
os << p.get();
|
os << p.get();
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// in STLport's no-iostreams mode no iostream symbols can be used
|
// in STLport's no-iostreams mode no iostream symbols can be used
|
||||||
#ifndef _STLP_NO_IOSTREAMS
|
#ifndef _STLP_NO_IOSTREAMS
|
||||||
|
|
||||||
# if defined(BOOST_MSVC) && BOOST_WORKAROUND(BOOST_MSVC, < 1300 && __SGI_STL_PORT)
|
# if defined(BOOST_MSVC) && BOOST_WORKAROUND(BOOST_MSVC, < 1300 && __SGI_STL_PORT)
|
||||||
// MSVC6 has problems finding std::basic_ostream through the using declaration in namespace _STL
|
// MSVC6 has problems finding std::basic_ostream through the using declaration in namespace _STL
|
||||||
using std::basic_ostream;
|
using std::basic_ostream;
|
||||||
template<class E, class T, class Y> basic_ostream<E, T> & operator<< (basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
|
template<class E, class T, class Y> basic_ostream<E, T> & operator<< (basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
|
||||||
# else
|
# else
|
||||||
template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
|
template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
os << p.get();
|
os << p.get();
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _STLP_NO_IOSTREAMS
|
#endif // _STLP_NO_IOSTREAMS
|
||||||
|
|
||||||
#endif // __GNUC__ < 3
|
#endif // __GNUC__ < 3
|
||||||
|
|
||||||
#endif // !defined(BOOST_NO_IOSTREAM)
|
#endif // !defined(BOOST_NO_IOSTREAM)
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#ifdef BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // #ifndef BOOST_INTRUSIVE_PTR_HPP_INCLUDED
|
#endif // #ifndef BOOST_INTRUSIVE_PTR_HPP_INCLUDED
|
||||||
|
|||||||
Reference in New Issue
Block a user