Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
testing::internal::scoped_ptr< T > Class Template Reference

#include <gtest-port.h>

Public Types

typedef T element_type
 

Public Member Functions

T * get () const
 
T & operator* () const
 
T * operator-> () const
 
T * release ()
 
void reset (T *p=NULL)
 
 scoped_ptr (T *p=NULL)
 
 ~scoped_ptr ()
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (scoped_ptr)
 

Private Attributes

T * ptr_
 

Detailed Description

template<typename T>
class testing::internal::scoped_ptr< T >

Definition at line 893 of file gtest-port.h.

Member Typedef Documentation

◆ element_type

template<typename T >
typedef T testing::internal::scoped_ptr< T >::element_type

Definition at line 895 of file gtest-port.h.

Constructor & Destructor Documentation

◆ scoped_ptr()

template<typename T >
testing::internal::scoped_ptr< T >::scoped_ptr ( T *  p = NULL)
inlineexplicit

Definition at line 897 of file gtest-port.h.

◆ ~scoped_ptr()

template<typename T >
testing::internal::scoped_ptr< T >::~scoped_ptr ( )
inline

Definition at line 898 of file gtest-port.h.

Member Function Documentation

◆ get()

template<typename T >
T* testing::internal::scoped_ptr< T >::get ( ) const
inline

Definition at line 902 of file gtest-port.h.

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_()

template<typename T >
testing::internal::scoped_ptr< T >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( scoped_ptr< T >  )
private

◆ operator*()

template<typename T >
T& testing::internal::scoped_ptr< T >::operator* ( ) const
inline

Definition at line 900 of file gtest-port.h.

◆ operator->()

template<typename T >
T* testing::internal::scoped_ptr< T >::operator-> ( ) const
inline

Definition at line 901 of file gtest-port.h.

◆ release()

template<typename T >
T* testing::internal::scoped_ptr< T >::release ( )
inline

Definition at line 904 of file gtest-port.h.

◆ reset()

template<typename T >
void testing::internal::scoped_ptr< T >::reset ( T *  p = NULL)
inline

Definition at line 910 of file gtest-port.h.

Member Data Documentation

◆ ptr_

template<typename T >
T* testing::internal::scoped_ptr< T >::ptr_
private

Definition at line 920 of file gtest-port.h.


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


fcl
Author(s):
autogenerated on Wed Feb 17 2021 03:40:11