LSST Applications  21.0.0-139-g4e3796b1+8e0e4477b2,22.0.0+22452ee3e8,22.0.0+5c8c79b9bb,22.0.0+64c1bc5aa5,22.0.0+a7cb47fe15,22.0.0+c28b2074bc,22.0.0+d0d93e33b5,22.0.1-1-g7d6de66+8fa39470f7,22.0.1-1-g87000a6+9f9726e262,22.0.1-1-g8760c09+64c1bc5aa5,22.0.1-1-g8e32f31+d0d93e33b5,22.0.1-10-g779eefa+7cd471aaa9,22.0.1-12-g3bd7ecb+46a3b70696,22.0.1-14-g86e9b50+99e7338883,22.0.1-17-ge5a99e88+8a77b73346,22.0.1-18-g473f1e9+8fa39470f7,22.0.1-2-g1cb3e5b+b4ba395e9d,22.0.1-2-g8ef0a89+8fa39470f7,22.0.1-2-g92698f7+a7cb47fe15,22.0.1-2-ga9b0f51+64c1bc5aa5,22.0.1-2-gb66926d+d0d93e33b5,22.0.1-2-gcb770ba+25b68d6910,22.0.1-2-ge470956+2bf6a8d4a7,22.0.1-21-g532228a4+ca1041e437,22.0.1-28-g197addcb9+e812cf48d3,22.0.1-3-g59f966b+3a013779d7,22.0.1-3-g8c1d971+f4bf734fca,22.0.1-3-g997b569+0b1c48e3e0,22.0.1-3-gaaec9c0+a441c9b5a1,22.0.1-4-g1930a60+a886f25f17,22.0.1-4-g5b7b756+d686d30ffd,22.0.1-4-g8623105+8fa39470f7,22.0.1-7-g3402376+8ed7904e4c,22.0.1-7-gba73697+a886f25f17,master-g5f2689bdc5+c28b2074bc,w.2021.37
LSST Data Management Base Package
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...