proxy_argument_iterator< T, Proxy > Class Template Reference

#include <proxy_parameter_generator.h>

Inheritance diagram for proxy_argument_iterator< T, Proxy >:

Public Member Functions

 proxy_argument_iterator (T &obj, const proxy_argument_generator< T, Proxy > &base, const_iterator it, const_iterator it_end)
 
virtual ~proxy_argument_iterator ()
 
virtual const ::testing::internal::ParamGeneratorInterface< typename T::parent_type > * BaseGenerator () const
 
virtual void Advance ()
 
virtual ::testing::internal::ParamIteratorInterface< typename T::parent_type > * Clone () const
 
virtual const T::parent_type * Current () const
 
virtual bool Equals (const ::testing::internal::ParamIteratorInterface< typename T::parent_type > &other) const
 

Detailed Description

template<typename T, typename Proxy>
class illumina::interop::unittest::proxy_argument_iterator< T, Proxy >

Iterator over persistent vector of arguments

Note
This code may only work with gtest 1.7.0

Constructor & Destructor Documentation

proxy_argument_iterator ( T &  obj,
const proxy_argument_generator< T, Proxy > &  base,
const_iterator  it,
const_iterator  it_end 
)
inline

Constructor

Parameters
objobject-like functor
basegenerator base
ititerator to std::vector
it_enditerator to end of std::vector
virtual ~proxy_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< typename T::parent_type >* 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< typename T::parent_type >* Clone ( ) const
inline

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

Returns
new instance to object
virtual const T::parent_type* 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< typename T::parent_type > &  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: