metric_test< Metric, Version, Variant > Class Template Reference

#include <metric_test.h>

Public Types

enum  Checks { VERSION =Version, disable_check_record_size = false, disable_binary_data_size = false, disable_binary_data = false }
 
typedef Metric metric_t
 
typedef model::metric_base::metric_set< Metric > metric_set_t
 
typedef metric_t::header_type header_t
 
typedef metric_set_t::const_iterator const_iterator
 

Static Public Member Functions

static std::string name ()
 
template<typename T , size_t N>
static std::vector< T > to_vector (const T(&vals)[N])
 
template<typename T , size_t N, size_t Size>
static std::vector< T > to_vector (const sparse_value< T, Size >(&vals)[N])
 

Detailed Description

template<class Metric, int Version, char Variant = 0>
class illumina::interop::unittest::metric_test< Metric, Version, Variant >

Generic metric set structure

Member Typedef Documentation

Constant iterator over metrics

typedef metric_t::header_type header_t

Metric set header type

Metric set type

typedef Metric metric_t

Metric type

Member Enumeration Documentation

enum Checks
Enumerator
VERSION 

Version of the format

disable_check_record_size 

Check record size

disable_binary_data_size 

Check the size of the expected written binary data

disable_binary_data 

Check the expected written binary data

Member Function Documentation

static std::string name ( )
inlinestatic

Get name of the test generator

Returns
name of metric plus version of format
static std::vector<T> to_vector ( const T(&)  vals[N])
inlinestatic

Convert an array to a vector

Determines the length of the stack array automatically.

Parameters
valsarray pointer
Returns
vector of values
static std::vector<T> to_vector ( const sparse_value< T, Size >(&)  vals[N])
inlinestatic

Convert an array to a vector

Determines the length of the stack array automatically.

Parameters
valsarray pointer
Returns
vector of values

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