argument_iterator< T > Class Template Reference

#include <persistent_parameter_generator.h>

Inheritance diagram for argument_iterator< T >:

Public Member Functions

 argument_iterator (const argument_generator< T > &base, const_iterator it)
 
virtual ~argument_iterator ()
 
virtual const ::testing::internal::ParamGeneratorInterface< T > * BaseGenerator () const
 
virtual void Advance ()
 
virtual ::testing::internal::ParamIteratorInterface< T > * Clone () const
 
virtual const T * Current () const
 
virtual bool Equals (const ::testing::internal::ParamIteratorInterface< T > &other) const
 

Detailed Description

template<typename T>
class illumina::interop::unittest::argument_iterator< T >

Iterator over persistent vector of arguments

Note
This code may only work with gtest 1.7.0

Constructor & Destructor Documentation

argument_iterator ( const argument_generator< T > &  base,
const_iterator  it 
)
inline

Constructor

Parameters
basegenerator base
ititerator to std::vector
virtual ~argument_iterator ( )
inlinevirtual

Destructor

Member Function Documentation

virtual void Advance ( )
inlinevirtual

Advances iterator to point to the next element provided by the generator. The caller is responsible for not calling Advance() on an iterator equal to BaseGenerator()->End().

virtual const ::testing::internal::ParamGeneratorInterface<T>* BaseGenerator ( ) const
inlinevirtual

A pointer to the base generator instance. Used only for the purposes of iterator comparison to make sure that two iterators belong to the same generator.

Returns
base generator
virtual ::testing::internal::ParamIteratorInterface<T>* Clone ( ) const
inline

Clones the iterator object. Used for implementing copy semantics of ParamIterator<T>.

Returns
new instance to object
virtual const T* Current ( ) const
inlinevirtual

Dereferences the current iterator and provides (read-only) access to the pointed value. It is the caller's responsibility not to call Current() on an iterator equal to BaseGenerator()->End(). Used for implementing ParamGenerator<T>::operator*().

Returns
pointer to current value
virtual bool Equals ( const ::testing::internal::ParamIteratorInterface< T > &  other) const
inlinevirtual

Determines whether the given iterator and other point to the same element in the sequence generated by the generator. Used for implementing ParamGenerator<T>::operator==().

Parameters
otherother iterator
Returns
true if the base and iterator match

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