ReactOS  0.4.15-dev-3324-gda4e15f
auto_array_ptr< Type > Class Template Reference

#include <auto_array_ptr.h>

Public Types

typedef Type element_type
 

Public Member Functions

 auto_array_ptr (Type *Ptr=0) throw ()
 
 auto_array_ptr (auto_array_ptr< Type > &Right) throw ()
 
 ~auto_array_ptr () throw ()
 
Typeget () const throw ()
 
Typerelease () throw ()
 
void reset (Type *Ptr=0) throw ()
 
 operator Type * () const throw ()
 

Private Attributes

Typem_Ptr
 

Detailed Description

template<typename Type>
class auto_array_ptr< Type >

Definition at line 9 of file auto_array_ptr.h.

Member Typedef Documentation

◆ element_type

template<typename Type>
typedef Type auto_array_ptr< Type >::element_type

Definition at line 15 of file auto_array_ptr.h.

Constructor & Destructor Documentation

◆ auto_array_ptr() [1/2]

template<typename Type>
auto_array_ptr< Type >::auto_array_ptr ( Type Ptr = 0)
throw (
)
inlineexplicit

Definition at line 18 of file auto_array_ptr.h.

19  : m_Ptr(Ptr)
20  {
21  }
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898

◆ auto_array_ptr() [2/2]

template<typename Type>
auto_array_ptr< Type >::auto_array_ptr ( auto_array_ptr< Type > &  Right)
throw (
)
inline

Definition at line 24 of file auto_array_ptr.h.

25  : m_Ptr(Right.release())
26  {
27  }
Type * release()

◆ ~auto_array_ptr()

template<typename Type>
auto_array_ptr< Type >::~auto_array_ptr ( )
throw (
)
inline

Definition at line 30 of file auto_array_ptr.h.

31  {
32  delete[] m_Ptr;
33  }

Member Function Documentation

◆ get()

template<typename Type>
Type* auto_array_ptr< Type >::get ( ) const
throw (
)
inline

Definition at line 36 of file auto_array_ptr.h.

37  {
38  return m_Ptr;
39  }

◆ operator Type *()

template<typename Type>
auto_array_ptr< Type >::operator Type * ( ) const
throw (
)
inline

Definition at line 60 of file auto_array_ptr.h.

61  {
62  return m_Ptr;
63  }

◆ release()

template<typename Type>
Type* auto_array_ptr< Type >::release ( )
throw (
)
inline

Definition at line 42 of file auto_array_ptr.h.

43  {
44  Type* Tmp = m_Ptr;
45  m_Ptr = 0;
46 
47  return Tmp;
48  }
Type
Definition: Type.h:6

Referenced by CWebService::GetSuiteID().

◆ reset()

template<typename Type>
void auto_array_ptr< Type >::reset ( Type Ptr = 0)
throw (
)
inline

Definition at line 51 of file auto_array_ptr.h.

52  {
53  if(Ptr != m_Ptr)
54  delete[] m_Ptr;
55 
56  m_Ptr = Ptr;
57  }
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898

Referenced by CWebService::GetSuiteID(), and CWebService::Submit().

Member Data Documentation

◆ m_Ptr


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