Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::ParamIterator< T > Class Template Reference

#include <gtest-param-util.h>

Public Types

typedef T value_type
 
typedef const Treference
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 ParamIterator (const ParamIterator &other)
 
ParamIteratoroperator= (const ParamIterator &other)
 
const Toperator* () const
 
const Toperator-> () 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 118 of file gtest-param-util.h.

Member Typedef Documentation

◆ difference_type

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

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

◆ reference

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

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

◆ value_type

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

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

125: impl_(other.impl_->Clone()) {}
Here is the caller graph for this function:

Member Function Documentation

◆ operator!=()

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

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

148 {
149 return !(*this == other);
150 }

◆ operator*()

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

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

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

◆ operator++() [1/2]

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

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

135 {
136 impl_->Advance();
137 return *this;
138 }

◆ operator++() [2/2]

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

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

140 {
141 ParamIteratorInterface<T>* clone = impl_->Clone();
142 impl_->Advance();
143 return ParamIterator(clone);
144 }
ParamIterator(const ParamIterator &other)
Here is the call graph for this function:

◆ operator->()

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

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

133{ return impl_->Current(); }

◆ operator=()

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

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

126 {
127 if (this != &other)
128 impl_.reset(other.impl_->Clone());
129 return *this;
130 }

◆ operator==()

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

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

145 {
146 return impl_.get() == other.impl_.get() || impl_->Equals(*other.impl_);
147 }

Friends And Related Symbol Documentation

◆ ParamGenerator< T >

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

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


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