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

#include <gtest-param-util.h>

Inheritance diagram for testing::internal::RangeGenerator< T, IncrementT >:
Collaboration diagram for testing::internal::RangeGenerator< T, IncrementT >:

Public Member Functions

 RangeGenerator (T begin, T end, IncrementT step)
 
virtual ~RangeGenerator ()
 
virtual ParamIteratorInterface< T > * Begin () const
 
virtual ParamIteratorInterface< T > * End () const
 
- Public Member Functions inherited from testing::internal::ParamGeneratorInterface< T >
virtual ~ParamGeneratorInterface ()
 

Additional Inherited Members

- Public Types inherited from testing::internal::ParamGeneratorInterface< T >
typedef T ParamType
 

Detailed Description

template<typename T, typename IncrementT>
class testing::internal::RangeGenerator< T, IncrementT >

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

Constructor & Destructor Documentation

◆ RangeGenerator()

template<typename T , typename IncrementT >
testing::internal::RangeGenerator< T, IncrementT >::RangeGenerator ( T begin,
T end,
IncrementT step )
inline

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

205 : begin_(begin), end_(end),
206 step_(step), end_index_(CalculateEndIndex(begin, end, step)) {}

◆ ~RangeGenerator()

template<typename T , typename IncrementT >
virtual testing::internal::RangeGenerator< T, IncrementT >::~RangeGenerator ( )
inlinevirtual

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

207{}

Member Function Documentation

◆ Begin()

template<typename T , typename IncrementT >
virtual ParamIteratorInterface< T > * testing::internal::RangeGenerator< T, IncrementT >::Begin ( ) const
inlinevirtual

Implements testing::internal::ParamGeneratorInterface< T >.

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

209 {
210 return new Iterator(this, begin_, 0, step_);
211 }

◆ End()

template<typename T , typename IncrementT >
virtual ParamIteratorInterface< T > * testing::internal::RangeGenerator< T, IncrementT >::End ( ) const
inlinevirtual

Implements testing::internal::ParamGeneratorInterface< T >.

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

212 {
213 return new Iterator(this, end_, end_index_, step_);
214 }

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