![]() |
EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
Test-related classes and functions.
Classes | |
| class | MinimalFile |
| A minimal and temporary Fits file removed by destructor. More... | |
| class | NewMefFile |
| MefFile with random name and create-only policy. More... | |
| class | NewSifFile |
| SifFile with random name and create-only policy. More... | |
| struct | RandomHeader |
| A random set of Records. More... | |
| class | RandomRaster |
| A random Raster of given type and shape. More... | |
| class | RandomScalarColumn |
| A random scalar Column of given type. More... | |
| struct | RandomTable |
| A set of random columns which cover the whole set of supported types. More... | |
| class | RandomVectorColumn |
| A small vector column of given type. More... | |
| class | SmallRaster |
| A 2D image Raster of floats. More... | |
| class | SmallTable |
| A small set of columns with various types. More... | |
| class | TemporaryMefFile |
| Temporary MefFile with random name. More... | |
| class | TemporarySifFile |
| Temporary SifFile with random name. More... | |
Functions | |
| template<typename T , long n> | |
| bool | rasterApprox (const Raster< T, n > &test, const Raster< T, n > &ref, double tol=0.01) |
| Check whether a test raster is approximately equal to a reference raster. More... | |
| template<typename T > | |
| static Record< T > | generateRandomRecord (const std::string &typeName) |
| Generate a random record. More... | |
| template<typename T > | |
| static Record< T > | generateRandomRecord (const std::string &k, const std::string &u, const std::string &c) |
| Generate a random record. | |
| template<typename T > | |
| T | almostMin () |
| Value very close to the min of the type. | |
| template<typename T > | |
| T | almostMax () |
| Value very close to the max of the type. | |
| template<typename T > | |
| T | halfMin () |
| Half the min of the type. | |
| template<typename T > | |
| T | halfMax () |
| Half the max of the type. | |
| template<typename T > | |
| T | generateRandomValue (T min=halfMin< T >(), T max=halfMax< T >()) |
| Generate a random value of given type. | |
| template<typename T > | |
| std::vector< T > | generateRandomVector (long size, T min=halfMin< T >(), T max=halfMax< T >()) |
| Generate a random vector of given type and size. | |
| template<typename T > | |
| bool | approx (T test, T ref, double tol=0.01) |
| Check whether a test value is approximately equal to a reference value. More... | |
| std::string | temporaryFilename () |
| Valid name for temporary files. | |