LSSTApplications  19.0.0-10-g4a5fae6+21,20.0.0,20.0.0+1,20.0.0+2,20.0.0+3,20.0.0+6,20.0.0+7,20.0.0+8,20.0.0-1-g10df615+6,20.0.0-1-g253301a+2,20.0.0-1-g32a200e+6,20.0.0-1-g596936a+6,20.0.0-1-g8a53f90,20.0.0-1-gc96f8cb+7,20.0.0-1-gd1c87d7,20.0.0-15-g34741e2+1,20.0.0-2-g04cfba9,20.0.0-2-g92e20685+7,20.0.0-2-gec03fae,20.0.0-3-g082faa5,20.0.0-3-g2fa8bb8+3,20.0.0-4-gde602ef96+1,20.0.0-4-ge48a6ca+1,20.0.0-7-g180d0f2+2,20.0.0-8-g7eef53f7+2,w.2020.27
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...