Retail products


Traffic interception SDK

Control every TCP/IP network connection

  • Route connections via proxy
  • Redirect connections and modify the data
  • Block connections and applications
SSL interception SDK

View SSL in plaintext and modify it

  • View the SSL stream decrypted in plaintext
  • Redirect SSL connection and modify decrypted data
  • Browser shows "SSL lock" without warnings

Documentation


CReferenceSPT< T > Class Template Reference

#include <ReferenceCounting.h>

Collaboration diagram for CReferenceSPT< T >:

List of all members.


Public Member Functions

virtual T * operator-> ()
T * Detach ()
long AddRef ()
long ReleaseRef ()
 CReferenceSPT (T *pCounter, bool bAutoAdd=true)
virtual ~CReferenceSPT ()

Detailed Description

template<class T>
class CReferenceSPT< T >

Definition at line 50 of file ReferenceCounting.h.


Constructor & Destructor Documentation

template<class T >
CReferenceSPT< T >::CReferenceSPT ( T *  pCounter,
bool  bAutoAdd = true 
) [inline]

Definition at line 93 of file ReferenceCounting.h.

00094                                       : m_pCounter(pCounter)
00095     {
00096         //Do we need to add
00097         if (bAutoAdd)
00098             //Add the ref
00099             AddRef();
00100     }

template<class T >
virtual CReferenceSPT< T >::~CReferenceSPT (  )  [inline, virtual]

Definition at line 101 of file ReferenceCounting.h.

00102     {
00103         //Release the ref
00104         ReleaseRef();
00105     }


Member Function Documentation

template<class T >
long CReferenceSPT< T >::AddRef (  )  [inline]

Definition at line 74 of file ReferenceCounting.h.

00075     {
00076         if (m_pCounter)
00077             return m_pCounter->AddRef();
00078         else
00079             return 0;
00080     }

template<class T >
T* CReferenceSPT< T >::Detach (  )  [inline]

Definition at line 60 of file ReferenceCounting.h.

00061     {
00062         //Save to tmp
00063         T* pTmp;
00064         pTmp=m_pCounter;
00065 
00066         //Clear out var
00067         m_pCounter=NULL;
00068 
00069         //Done
00070         return pTmp;
00071     }

template<class T >
virtual T* CReferenceSPT< T >::operator-> (  )  [inline, virtual]

Definition at line 54 of file ReferenceCounting.h.

00055     {
00056         return m_pCounter;
00057     }

template<class T >
long CReferenceSPT< T >::ReleaseRef (  )  [inline]

Definition at line 83 of file ReferenceCounting.h.

00084     {
00085         if (m_pCounter)
00086             return m_pCounter->ReleaseRef();
00087         else
00088             return 0;
00089     }


The documentation for this class was generated from the following file: