#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) |
Definition at line 1147 of file gtest-port.h.
typedef T testing::internal::scoped_ptr< T >::element_type |
Definition at line 1149 of file gtest-port.h.
testing::internal::scoped_ptr< T >::scoped_ptr | ( | T * | p = NULL | ) | [inline, explicit] |
Definition at line 1151 of file gtest-port.h.
testing::internal::scoped_ptr< T >::~scoped_ptr | ( | ) | [inline] |
Definition at line 1152 of file gtest-port.h.
T* testing::internal::scoped_ptr< T >::get | ( | ) | const [inline] |
Definition at line 1156 of file gtest-port.h.
testing::internal::scoped_ptr< T >::GTEST_DISALLOW_COPY_AND_ASSIGN_ | ( | scoped_ptr< T > | ) | [private] |
T& testing::internal::scoped_ptr< T >::operator* | ( | ) | const [inline] |
Definition at line 1154 of file gtest-port.h.
T* testing::internal::scoped_ptr< T >::operator-> | ( | ) | const [inline] |
Definition at line 1155 of file gtest-port.h.
T* testing::internal::scoped_ptr< T >::release | ( | ) | [inline] |
Definition at line 1158 of file gtest-port.h.
void testing::internal::scoped_ptr< T >::reset | ( | T * | p = NULL | ) | [inline] |
Definition at line 1164 of file gtest-port.h.
void swap | ( | scoped_ptr< T > & | a, |
scoped_ptr< T > & | b | ||
) | [friend] |
Definition at line 1173 of file gtest-port.h.
T* testing::internal::scoped_ptr< T >::ptr_ [private] |
Definition at line 1179 of file gtest-port.h.