LSST Applications g0265f82a02+854d3789d3,g043fd6e71d+ecd3b418b6,g08227fae09+8ae94975b2,g08a116f7bc+57bb215cac,g2079a07aa2+0cbdeccc59,g2bbee38e9b+854d3789d3,g337abbeb29+854d3789d3,g33a09d4741+23f865b930,g3ddfee87b4+23f865b930,g44018dc512+854d3789d3,g50ff169b8f+f6908454ef,g5f6f997623+81bc2a20b4,g7d743f24c3+8895823d37,g858d7b2824+8ae94975b2,g98ffbb4407+81bc2a20b4,g9ddcbc5298+7f7571301f,ga1e77700b3+495ad9f5da,ga32f2f2709+af3962d5ba,ga8c6da7877+76c5868621,gae46bcf261+854d3789d3,gb700894bec+06b15f4d5f,gba4ed39666+8672027aa3,gbeb006f7da+5ed2700748,gc72ce4b948+2de78236ac,gc86a011abf+8ae94975b2,gcb20ee0ffd+e93720af08,gcf0d15dbbd+23f865b930,gd1098699b4+9345aa8671,gd162630629+1170b6f92f,gdaeeff99f8+0d8dbea60f,gdb4ec4c597+854d3789d3,gee10cc3b42+81bc2a20b4,gf041782ebf+f93289ef23,gf1cff7945b+8ae94975b2,gf748b16de2+f08916bab7,w.2024.01
LSST Data Management Base Package
Loading...
Searching...
No Matches
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

namespace  ast
 AST wrapper classes and functions.
 
namespace  ast::detail
 

Functions

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