Xmipp  v3.23.11-Nereus
Public Types | Public Member Functions | Friends | List of all members
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 128 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 132 of file gtest-param-util.h.

◆ reference

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

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

◆ value_type

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

Definition at line 130 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 135 of file gtest-param-util.h.

135 : 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 157 of file gtest-param-util.h.

157  {
158  return !(*this == other);
159  }

◆ operator*()

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

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

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

◆ operator++() [1/2]

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

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

144  {
145  impl_->Advance();
146  return *this;
147  }

◆ operator++() [2/2]

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

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

149  {
150  ParamIteratorInterface<T>* clone = impl_->Clone();
151  impl_->Advance();
152  return ParamIterator(clone);
153  }
ParamIterator(const ParamIterator &other)

◆ operator->()

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

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

142 { return impl_->Current(); }

◆ operator=()

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

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

136  {
137  if (this != &other) impl_.reset(other.impl_->Clone());
138  return *this;
139  }

◆ operator==()

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

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

154  {
155  return impl_.get() == other.impl_.get() || impl_->Equals(*other.impl_);
156  }

Friends And Related Function Documentation

◆ ParamGenerator< T >

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

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


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