Monero
Loading...
Searching...
No Matches
testing::gmock_matchers_test::scoped_ptr< T > Class Template Reference

#include <gtest-port.h>

Public Types

typedef T element_type
typedef T element_type

Public Member Functions

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

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (scoped_ptr)
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (scoped_ptr)

Private Attributes

Tptr_

Friends

void swap (scoped_ptr &a, scoped_ptr &b)
void swap (scoped_ptr &a, scoped_ptr &b)

Member Typedef Documentation

◆ element_type [1/2]

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

◆ element_type [2/2]

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

Constructor & Destructor Documentation

◆ scoped_ptr() [1/2]

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

◆ scoped_ptr() [2/2]

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

◆ ~scoped_ptr() [1/2]

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

◆ ~scoped_ptr() [2/2]

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

Member Function Documentation

◆ get() [1/2]

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

◆ get() [2/2]

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

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [1/2]

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

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [2/2]

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator->() [1/2]

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

◆ operator->() [2/2]

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

◆ release() [1/2]

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

◆ release() [2/2]

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

◆ reset() [1/2]

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

◆ reset() [2/2]

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

◆ swap [1/2]

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

◆ swap [2/2]

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

Member Data Documentation

◆ ptr_

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

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