OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
testing::internal::scoped_ptr< T > Class Template Reference

#include "gtest-port.h"

Public Types

typedef T element_type
 

Public Member Functions

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

Friends

void swap (scoped_ptr &a, scoped_ptr &b)
 

Member Typedef Documentation

◆ element_type

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

Constructor & Destructor Documentation

◆ scoped_ptr()

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

◆ ~scoped_ptr()

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

Member Function Documentation

◆ get()

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

◆ operator*()

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

◆ operator->()

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

◆ release()

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

◆ reset()

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

Friends And Related Symbol Documentation

◆ swap

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

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