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-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_
 

Friends

void swap (scoped_ptr &a, scoped_ptr &b)
 

Detailed Description

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

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

Member Typedef Documentation

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

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

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

Friends And Related Function Documentation

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

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

Member Data Documentation

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

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


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


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:18