|
lsst.utils
15.0-3-g9103c06
|
Namespaces | |
| get_caller_name | |
| python | |
| tests | |
| version | |
| wrappers | |
Classes | |
| class | Backtrace |
| Singleton, enables automatic backtraces on the following signals: More... | |
| class | Cache |
| Cache of most recently used values. More... | |
| struct | key |
| struct | n |
| class | Symbol |
Functions | |
| std::string | demangleType (std::string const _typeName) |
| std::string | raRadToStr (double raRad) |
| Convert a right ascension in radians to a string format. More... | |
| std::string | decRadToStr (double decRad) |
| std::string | raDegToStr (double raDeg) |
| std::string | decDegToStr (double decDeg) |
| std::string | raDecRadToStr (double raRad, double decRad) |
| std::string | raDecDegToStr (double raDeg, double decDeg) |
| double | raStrToRad (std::string raStr, std::string delimiter=":") |
| double | raStrToDeg (std::string raStr, std::string delimiter=":") |
| double | decStrToRad (std::string decStr, std::string delimiter=":") |
| double | decStrToDeg (std::string decStr, std::string delimiter=":") |
| std::string | getPackageDir (std::string const &packageName) |
| return the root directory of a setup package More... | |
| std::size_t | hashCombine (std::size_t seed) |
| Combine hashes. More... | |
| template<typename T , typename... Rest> | |
| std::size_t | hashCombine (std::size_t seed, const T &value, Rest... rest) |
| Combine hashes. More... | |
| std::string lsst::utils::demangleType | ( | std::string const | _typeName | ) |
Definition at line 113 of file Demangle.cc.
| std::string lsst::utils::getPackageDir | ( | std::string const & | packageName | ) |
return the root directory of a setup package
| [in] | packageName | name of package (e.g. "utils") |
| lsst::pex::exceptions::NotFoundError | if desired version can't be found |
|
inline |
Combine hashes.
This is provided as a convenience for those who need to hash a composite. C++11 includes std::hash, but neglects to include a facility for combining hashes.
To use it:
std::size_t seed = 0; result = hashCombine(seed, obj1, obj2, obj3);
This solution is provided by Matteo Italia https://stackoverflow.com/a/38140932/834250
Definition at line 24 of file hashCombine.h.
| std::size_t lsst::utils::hashCombine | ( | std::size_t | seed, |
| const T & | value, | ||
| Rest... | rest | ||
| ) |
Combine hashes.
This is provided as a convenience for those who need to hash a composite. C++11 includes std::hash, but neglects to include a facility for combining hashes.
To use it:
std::size_t seed = 0; result = hashCombine(seed, obj1, obj2, obj3);
This solution is provided by Matteo Italia https://stackoverflow.com/a/38140932/834250
Definition at line 27 of file hashCombine.h.
1.8.13