abstract_generator< T > Class Template Referenceabstract

#include <generic_fixture.h>

Inheritance diagram for abstract_generator< T >:
standard_parameter_generator< T, Fixture > iterator_parameter_generator< T, Fixture >

Public Types

typedef generator_ptr< T > parent_type
 

Public Member Functions

 abstract_generator (const int test_modifier=0)
 
virtual ~abstract_generator ()
 
virtual ::testing::AssertionResult generate (T &expected, T &actual, bool *skip_test) const =0
 
virtual bool advance ()
 
virtual parent_type clone () const =0
 
int test_modifier () const
 
virtual void write (std::ostream &out) const =0
 
std::string info () const
 

Friends

std::ostream & operator<< (std::ostream &out, const abstract_generator< T > &gen)
 

Detailed Description

template<class T>
class illumina::interop::unittest::abstract_generator< T >

Abstract interface for generators

Member Typedef Documentation

Pointer to abtract generator

Constructor & Destructor Documentation

abstract_generator ( const int  test_modifier = 0)
inline

Constructor

Parameters
test_modifierflag that modifies the test
virtual ~abstract_generator ( )
inlinevirtual

Destructor

Member Function Documentation

virtual bool advance ( )
inlinevirtual

Advance to the next type

Returns
true when the generator has finished, and the next parameter can be obtained

Reimplemented in iterator_parameter_generator< T, Fixture >, plot_regression_test_generator< PlotData >, collapsed_q_plot_test_generator< PlotData >, and empty_plot_test_generator< PlotData >.

std::string info ( ) const
inline

Generator information

Returns
generator info
int test_modifier ( ) const
inline

Flag that modifies the test

Returns
flag that modifies the test

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const abstract_generator< T > &  gen 
)
friend

Write name of generator to output stream

Parameters
outoutput stream
gengenerator
Returns
output stream

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