LSSTApplications  19.0.0-14-gb0260a2+55ebc804df,20.0.0+1b2fec4223,20.0.0+291834023b,20.0.0+3aed93c9a0,20.0.0+445d2e5176,20.0.0+44e6c265c0,20.0.0+5f0d44a82c,20.0.0+dbd2281351,20.0.0+e2e26847c2,20.0.0+f45b7d88f4,20.0.0+f48bb53858,20.0.0-1-g10df615+65b272dc7c,20.0.0-1-g253301a+1b2fec4223,20.0.0-1-g2b7511a+f48bb53858,20.0.0-1-g4d801e7+990eb492d1,20.0.0-1-g5b95a8c+535fc78ebf,20.0.0-1-gc96f8cb+92cff2790a,20.0.0-1-gd1c87d7+add1f556b4,20.0.0-1-gedffbd8+f862251818,20.0.0-10-gd6f3b0e+42e798760b,20.0.0-14-g199c894+1c6164e6a1,20.0.0-15-gf5872d0+92cff2790a,20.0.0-16-g6fe20a1+367edb3a36,20.0.0-2-g4dae9ad+92cff2790a,20.0.0-2-g5ad0983+42e798760b,20.0.0-2-g7818986+add1f556b4,20.0.0-2-gb095acb+63636aeed8,20.0.0-2-gdaeb0e8+e2e179d1a0,20.0.0-2-gec03fae+de92faa26f,20.0.0-22-g629db56c+016cf65f00,20.0.0-4-gfea843c+f45b7d88f4,20.0.0-46-g00fa051+95f8c0b24e,20.0.0-5-g357b56b+f45b7d88f4,20.0.0-5-gfcebe35+5d9781fc8a,20.0.0-7-gc818c6e6+f7ac80044f,20.0.0-7-gcda7bf1+85dc274a4b,20.0.0-9-g61a2a9a3d+63f5489896,w.2020.38
LSSTDataManagementBasePackage
Namespaces | Functions
utils.h File Reference
#include <cstddef>
#include <cctype>
#include <limits>
#include <sstream>
#include <stdexcept>
#include <vector>
#include "astshim/base.h"

Go to the source code of this file.

Namespaces

 ast
 AST wrapper classes and functions.
 
 ast::detail
 

Functions

void ast::detail::annulAstObject (AstObject *object)
 A wrapper around astAnnul; intended as a custom deleter for std::unique_ptr. More...
 
template<typename T1 , typename T2 >
void ast::detail::assertEqual (T1 val1, std::string const &descr1, T2 val2, std::string const &descr2)
 
void ast::detail::astBadToNan (std::vector< double > &p)
 Replace AST__BAD with a quiet NaN in a vector. More...
 
void ast::detail::astBadToNan (ast::Array2D const &arr)
 Replace AST__BAD with a quiet NaN in a 2-D array. More...
 
std::string ast::detail::formatAxisAttr (std::string const &name, int axis)
 Format an axis-specific attribute by appending the axis index. More...
 
bool ast::detail::isSeries (AstCmpMap const *cmpMap)
 Return true if the compound map is in series. More...
 
std::string ast::detail::getClassName (AstObject const *rawObj)
 Get the AST class name, changing CmpMap to SeriesMap or ParallelMap as appropriate. More...
 
double ast::detail::safeDouble (double val)
 Return a double value after checking status and replacing AST__BAD with nan More...
 
std::string ast::detail::stringToUpper (std::string const &str)
 Return a copy of a string in which all characters are uppercase. More...