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

#include <gtest.h>

Public Types

typedef T element_type
 

Public Member Functions

T * get () const
 
 linked_ptr (linked_ptr const &ptr)
 
template<typename U >
 linked_ptr (linked_ptr< U > const &ptr)
 
 linked_ptr (T *ptr=NULL)
 
template<typename U >
bool operator!= (linked_ptr< U > const &ptr) const
 
bool operator!= (T *p) const
 
T & operator* () const
 
T * operator-> () const
 
linked_ptroperator= (linked_ptr const &ptr)
 
template<typename U >
linked_ptroperator= (linked_ptr< U > const &ptr)
 
template<typename U >
bool operator== (linked_ptr< U > const &ptr) const
 
bool operator== (T *p) const
 
void reset (T *ptr=NULL)
 
 ~linked_ptr ()
 

Private Member Functions

void capture (T *ptr)
 
template<typename U >
void copy (linked_ptr< U > const *ptr)
 
void depart ()
 

Private Attributes

linked_ptr_internal link_
 
T * value_
 

Friends

template<typename U >
class linked_ptr
 

Detailed Description

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

Definition at line 9096 of file gtest.h.

Member Typedef Documentation

◆ element_type

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

Definition at line 9098 of file gtest.h.

Constructor & Destructor Documentation

◆ linked_ptr() [1/3]

template<typename T >
testing::internal::linked_ptr< T >::linked_ptr ( T *  ptr = NULL)
inlineexplicit

Definition at line 9102 of file gtest.h.

◆ ~linked_ptr()

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

Definition at line 9103 of file gtest.h.

◆ linked_ptr() [2/3]

template<typename T >
template<typename U >
testing::internal::linked_ptr< T >::linked_ptr ( linked_ptr< U > const &  ptr)
inline

Definition at line 9106 of file gtest.h.

◆ linked_ptr() [3/3]

template<typename T >
testing::internal::linked_ptr< T >::linked_ptr ( linked_ptr< T > const &  ptr)
inline

Definition at line 9107 of file gtest.h.

Member Function Documentation

◆ capture()

template<typename T >
void testing::internal::linked_ptr< T >::capture ( T *  ptr)
inlineprivate

Definition at line 9158 of file gtest.h.

◆ copy()

template<typename T >
template<typename U >
void testing::internal::linked_ptr< T >::copy ( linked_ptr< U > const *  ptr)
inlineprivate

Definition at line 9163 of file gtest.h.

◆ depart()

template<typename T >
void testing::internal::linked_ptr< T >::depart ( )
inlineprivate

Definition at line 9154 of file gtest.h.

◆ get()

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

Definition at line 9132 of file gtest.h.

◆ operator!=() [1/2]

template<typename T >
template<typename U >
bool testing::internal::linked_ptr< T >::operator!= ( linked_ptr< U > const &  ptr) const
inline

Definition at line 9143 of file gtest.h.

◆ operator!=() [2/2]

template<typename T >
bool testing::internal::linked_ptr< T >::operator!= ( T *  p) const
inline

Definition at line 9137 of file gtest.h.

◆ operator*()

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

Definition at line 9134 of file gtest.h.

◆ operator->()

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

Definition at line 9133 of file gtest.h.

◆ operator=() [1/2]

template<typename T >
linked_ptr& testing::internal::linked_ptr< T >::operator= ( linked_ptr< T > const &  ptr)
inline

Definition at line 9119 of file gtest.h.

◆ operator=() [2/2]

template<typename T >
template<typename U >
linked_ptr& testing::internal::linked_ptr< T >::operator= ( linked_ptr< U > const &  ptr)
inline

Definition at line 9113 of file gtest.h.

◆ operator==() [1/2]

template<typename T >
template<typename U >
bool testing::internal::linked_ptr< T >::operator== ( linked_ptr< U > const &  ptr) const
inline

Definition at line 9139 of file gtest.h.

◆ operator==() [2/2]

template<typename T >
bool testing::internal::linked_ptr< T >::operator== ( T *  p) const
inline

Definition at line 9136 of file gtest.h.

◆ reset()

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

Definition at line 9128 of file gtest.h.

Friends And Related Function Documentation

◆ linked_ptr

template<typename T >
template<typename U >
friend class linked_ptr
friend

Definition at line 9149 of file gtest.h.

Member Data Documentation

◆ link_

template<typename T >
linked_ptr_internal testing::internal::linked_ptr< T >::link_
private

Definition at line 9152 of file gtest.h.

◆ value_

template<typename T >
T* testing::internal::linked_ptr< T >::value_
private

Definition at line 9151 of file gtest.h.


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


diagnostic_aggregator
Author(s): Kevin Watts, Brice Rebsamen
autogenerated on Tue Nov 15 2022 03:17:13