Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
DataCreatorBase Class Referenceabstract

Interface of an object creating data to be tested on. More...

Inheritance diagram for DataCreatorBase:
GaussianNoiseCreator RandomDataCreator SineWaveCreator UniformNoiseCreator

Public Types

typedef std::vector< short > InputData_t
 

Public Member Functions

 DataCreatorBase (std::string new_name)
 Constructor: just assigns a name to this data set. More...
 
std::string name () const
 Returns the name of this set. More...
 
virtual ~DataCreatorBase ()
 Virtual destructor. More...
 
virtual InputData_t create (size_t size)=0
 Creates and returns the data sample; pure virtual. More...
 

Static Public Attributes

static std::default_random_engine random_engine
 Random engine shared by all the data creators. More...
 

Private Attributes

std::string test_name
 internal storage for test name More...
 

Detailed Description

Interface of an object creating data to be tested on.

Definition at line 61 of file raw_test.cc.

Member Typedef Documentation

Definition at line 63 of file raw_test.cc.

Constructor & Destructor Documentation

DataCreatorBase::DataCreatorBase ( std::string  new_name)
inline

Constructor: just assigns a name to this data set.

Definition at line 69 of file raw_test.cc.

69 : test_name(new_name) {}
std::string test_name
internal storage for test name
Definition: raw_test.cc:81
virtual DataCreatorBase::~DataCreatorBase ( )
inlinevirtual

Virtual destructor.

Definition at line 75 of file raw_test.cc.

75 {}

Member Function Documentation

virtual InputData_t DataCreatorBase::create ( size_t  size)
pure virtual

Creates and returns the data sample; pure virtual.

Implemented in RandomDataCreator, SineWaveCreator, GaussianNoiseCreator, and UniformNoiseCreator.

std::string DataCreatorBase::name ( ) const
inline

Returns the name of this set.

Definition at line 72 of file raw_test.cc.

72 { return test_name; }
std::string test_name
internal storage for test name
Definition: raw_test.cc:81

Member Data Documentation

std::default_random_engine DataCreatorBase::random_engine
static

Random engine shared by all the data creators.

Definition at line 66 of file raw_test.cc.

std::string DataCreatorBase::test_name
private

internal storage for test name

Definition at line 81 of file raw_test.cc.


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