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


CArray_ptr< PointerType > Class Template Reference

#include <Array_ptr.h>

Collaboration diagram for CArray_ptr< PointerType >:

List of all members.


Public Member Functions

PointerType & operator* ()
PointerType * operator-> () const
PointerType * Get () const
PointerType * Release () const
void Reset ()
 operator= (const PointerType *pData)
 CArray_ptr (PointerType *pData)
virtual ~CArray_ptr ()

Detailed Description

template<class PointerType>
class CArray_ptr< PointerType >

Definition at line 44 of file Array_ptr.h.


Constructor & Destructor Documentation

template<class PointerType>
CArray_ptr< PointerType >::CArray_ptr ( PointerType *  pData  )  [inline]

Definition at line 100 of file Array_ptr.h.

00100                                    : m_pData(pData),
00101                                      m_bOwners(TRUE)
00102     {
00103     }

template<class PointerType>
virtual CArray_ptr< PointerType >::~CArray_ptr (  )  [inline, virtual]

Definition at line 105 of file Array_ptr.h.

00106     {
00107         Reset();
00108     }


Member Function Documentation

template<class PointerType>
PointerType* CArray_ptr< PointerType >::Get (  )  const [inline]

Definition at line 58 of file Array_ptr.h.

00059     {
00060         return m_pData;
00061     }

template<class PointerType>
PointerType& CArray_ptr< PointerType >::operator* (  )  [inline]

Definition at line 48 of file Array_ptr.h.

00049     {
00050         return *Get();
00051     }

template<class PointerType>
PointerType* CArray_ptr< PointerType >::operator-> (  )  const [inline]

Definition at line 53 of file Array_ptr.h.

00054     {
00055         return Get();
00056     }

template<class PointerType>
CArray_ptr< PointerType >::operator= ( const PointerType *  pData  )  [inline]

Definition at line 84 of file Array_ptr.h.

00085     {
00086         //Reset the data
00087         Reset();
00088 
00089         //Take the new one
00090         m_pData=pData;
00091 
00092         //We are the owners
00093         m_bOwners=TRUE;
00094 
00095         //Release the ownership of the source PTR
00096         pData->ReleaseOwnership();
00097     }

template<class PointerType>
PointerType* CArray_ptr< PointerType >::Release (  )  const [inline]

Definition at line 63 of file Array_ptr.h.

00064     {
00065         //We are not the owners
00066         m_bOwners=FALSE;
00067 
00068         //Done with it
00069         return Get();
00070     }

template<class PointerType>
void CArray_ptr< PointerType >::Reset (  )  [inline]

Definition at line 73 of file Array_ptr.h.

00074     {
00075         //Release the data we have
00076         if (m_bOwners)
00077             delete [] m_pData;
00078 
00079         //We don't have it anymore
00080         m_pData=NULL;
00081     }


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