tesseract v5.3.3.20231005
testing::internal::ParamIterator< T > Class Template Reference

#include <gtest-param-util.h>

Public Types

typedef T value_type
 
typedef const T & reference
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 ParamIterator (const ParamIterator &other)
 
ParamIteratoroperator= (const ParamIterator &other)
 
const T & operator* () const
 
const T * operator-> () const
 
ParamIteratoroperator++ ()
 
ParamIterator operator++ (int)
 
bool operator== (const ParamIterator &other) const
 
bool operator!= (const ParamIterator &other) const
 

Friends

class ParamGenerator< T >
 

Detailed Description

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

Definition at line 123 of file gtest-param-util.h.

Member Typedef Documentation

◆ difference_type

template<typename T >
typedef ptrdiff_t testing::internal::ParamIterator< T >::difference_type

Definition at line 127 of file gtest-param-util.h.

◆ reference

template<typename T >
typedef const T& testing::internal::ParamIterator< T >::reference

Definition at line 126 of file gtest-param-util.h.

◆ value_type

template<typename T >
typedef T testing::internal::ParamIterator< T >::value_type

Definition at line 125 of file gtest-param-util.h.

Constructor & Destructor Documentation

◆ ParamIterator()

template<typename T >
testing::internal::ParamIterator< T >::ParamIterator ( const ParamIterator< T > &  other)
inline

Definition at line 130 of file gtest-param-util.h.

130: impl_(other.impl_->Clone()) {}

Member Function Documentation

◆ operator!=()

template<typename T >
bool testing::internal::ParamIterator< T >::operator!= ( const ParamIterator< T > &  other) const
inline

Definition at line 153 of file gtest-param-util.h.

153 {
154 return !(*this == other);
155 }

◆ operator*()

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

Definition at line 137 of file gtest-param-util.h.

137{ return *impl_->Current(); }

◆ operator++() [1/2]

template<typename T >
ParamIterator & testing::internal::ParamIterator< T >::operator++ ( )
inline

Definition at line 140 of file gtest-param-util.h.

140 {
141 impl_->Advance();
142 return *this;
143 }

◆ operator++() [2/2]

template<typename T >
ParamIterator testing::internal::ParamIterator< T >::operator++ ( int  )
inline

Definition at line 145 of file gtest-param-util.h.

145 {
146 ParamIteratorInterface<T>* clone = impl_->Clone();
147 impl_->Advance();
148 return ParamIterator(clone);
149 }
ParamIterator(const ParamIterator &other)

◆ operator->()

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

Definition at line 138 of file gtest-param-util.h.

138{ return impl_->Current(); }

◆ operator=()

template<typename T >
ParamIterator & testing::internal::ParamIterator< T >::operator= ( const ParamIterator< T > &  other)
inline

Definition at line 131 of file gtest-param-util.h.

131 {
132 if (this != &other)
133 impl_.reset(other.impl_->Clone());
134 return *this;
135 }

◆ operator==()

template<typename T >
bool testing::internal::ParamIterator< T >::operator== ( const ParamIterator< T > &  other) const
inline

Definition at line 150 of file gtest-param-util.h.

150 {
151 return impl_.get() == other.impl_.get() || impl_->Equals(*other.impl_);
152 }

Friends And Related Function Documentation

◆ ParamGenerator< T >

template<typename T >
friend class ParamGenerator< T >
friend

Definition at line 153 of file gtest-param-util.h.


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