hops
Classes | Macros | Typedefs | Functions
tests_high_five.hpp File Reference
#include <complex>
#include <random>
#include <string>
#include <vector>
#include <boost/mpl/list.hpp>
Include dependency graph for tests_high_five.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ContentGenerate< T >
 
struct  ContentGenerate< char >
 
struct  ContentGenerate< std::string >
 

Macros

#define BOOST_GLOBAL_FIXTURE_END
 

Typedefs

using complex = std::complex< double >
 
typedef boost::mpl::list< float, double > floating_numerics_test_types
 
typedef boost::mpl::list< int, unsigned int, long, unsigned long, unsigned char, char, float, double, long long, unsigned long long, complexnumerical_test_types
 
typedef boost::mpl::list< int, unsigned int, long, unsigned long, unsigned char, char, float, double > dataset_test_types
 

Functions

template<typename T , typename Func >
void fillVec (std::vector< std::vector< T >> &v, std::vector< size_t > dims, const Func &f)
 
template<typename T , typename Func >
void fillVec (std::vector< T > &v, std::vector< size_t > dims, const Func &f)
 
template<typename T >
bool checkLength (const std::vector< T > &v, std::vector< size_t > dims)
 
template<typename T >
bool checkLength (const std::vector< std::vector< T >> &v, std::vector< size_t > dims)
 
template<typename T , typename Func >
void generate2D (T *table, size_t x, size_t y, Func &func)
 
template<typename T >
std::string typeNameHelper ()
 
template<typename ElemT , typename DataT >
HighFive::DataSet readWriteDataset (const DataT &ndvec, DataT &result, const size_t ndims, const std::string &struct_t)
 

Macro Definition Documentation

◆ BOOST_GLOBAL_FIXTURE_END

#define BOOST_GLOBAL_FIXTURE_END

Typedef Documentation

◆ complex

using complex = std::complex<double>

◆ dataset_test_types

typedef boost::mpl::list<int, unsigned int, long, unsigned long, unsigned char, char, float, double> dataset_test_types

◆ floating_numerics_test_types

typedef boost::mpl::list<float, double> floating_numerics_test_types

◆ numerical_test_types

typedef boost::mpl::list<int, unsigned int, long, unsigned long, unsigned char, char, float, double, long long, unsigned long long, complex> numerical_test_types

Function Documentation

◆ checkLength() [1/2]

template<typename T >
bool checkLength ( const std::vector< std::vector< T >> &  v,
std::vector< size_t >  dims 
)

◆ checkLength() [2/2]

template<typename T >
bool checkLength ( const std::vector< T > &  v,
std::vector< size_t >  dims 
)

◆ fillVec() [1/2]

template<typename T , typename Func >
void fillVec ( std::vector< std::vector< T >> &  v,
std::vector< size_t >  dims,
const Func &  f 
)

◆ fillVec() [2/2]

template<typename T , typename Func >
void fillVec ( std::vector< T > &  v,
std::vector< size_t >  dims,
const Func &  f 
)

◆ generate2D()

template<typename T , typename Func >
void generate2D ( T *  table,
size_t  x,
size_t  y,
Func &  func 
)

◆ readWriteDataset()

template<typename ElemT , typename DataT >
HighFive::DataSet readWriteDataset ( const DataT &  ndvec,
DataT &  result,
const size_t  ndims,
const std::string struct_t 
)
inline

◆ typeNameHelper()

template<typename T >
std::string typeNameHelper ( )
inline