LSSTApplications  19.0.0-10-g4a5fae6+14,19.0.0-10-g920eed2+3,19.0.0-11-g48a0200+5,19.0.0-19-g32a200e+8,19.0.0-2-g3b2f90d+5,19.0.0-2-gd671419+10,19.0.0-21-g2644856+27,19.0.0-22-g92e20685,19.0.0-24-g878c510+13,19.0.0-25-g1f84a6d+9,19.0.0-27-gbc613e1+5,19.0.0-27-gf99403173,19.0.0-3-g2b32d65+10,19.0.0-3-g8227491+24,19.0.0-3-g9c54d0d+24,19.0.0-3-gca68e65+21,19.0.0-3-gcfc5f51+10,19.0.0-3-ge110943+23,19.0.0-3-ge74d124,19.0.0-34-gfa6e18e+2,19.0.0-4-g06f5963+10,19.0.0-4-g10df615+9,19.0.0-4-g3d16501+28,19.0.0-4-g4a9c019+10,19.0.0-4-g5a8b323+3,19.0.0-4-g66397f0+4,19.0.0-4-g8557e14+3,19.0.0-4-ge404a01+24,19.0.0-5-g4db63b3+3,19.0.0-5-gb9eeb60+3,19.0.0-5-gc96f8cb+5,19.0.0-5-gfb03ce7+26,19.0.0-6-gbaebbfb+25,19.0.0-65-gd489f3fc,19.0.0-7-g039c0b5+26,19.0.0-7-gbea9075+7,19.0.0-7-gc567de5+26,19.0.0-8-g082faa5,19.0.0-80-g3c4dce0+1,19.0.0-9-g463f923+24,w.2020.25
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...