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

#include <gtest.h>

Public Types

typedef T element_type
 

Public Member Functions

Tget () const
 
Toperator* () const
 
Toperator-> () const
 
Trelease ()
 
void reset (T *p=NULL)
 
 scoped_ptr (T *p=NULL)
 
 ~scoped_ptr ()
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (scoped_ptr)
 

Private Attributes

Tptr_
 

Friends

void swap (scoped_ptr &a, scoped_ptr &b)
 

Detailed Description

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

Definition at line 2390 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

Member Typedef Documentation

◆ element_type

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

Definition at line 2392 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

Constructor & Destructor Documentation

◆ scoped_ptr()

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

Definition at line 2394 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

◆ ~scoped_ptr()

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

Definition at line 2395 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

Member Function Documentation

◆ get()

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

Definition at line 2399 of file cares/cares/test/gmock-1.8.0/gtest/gtest.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 2397 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

◆ operator->()

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

Definition at line 2398 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

◆ release()

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

Definition at line 2401 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

◆ reset()

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

Definition at line 2407 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

Friends And Related Function Documentation

◆ swap

template<typename T >
void swap ( scoped_ptr< T > &  a,
scoped_ptr< T > &  b 
)
friend

Definition at line 2416 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

Member Data Documentation

◆ ptr_

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

Definition at line 2422 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:50