LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_TIMEMAP_H
23 #define ASTSHIM_TIMEMAP_H
57 :
Mapping(reinterpret_cast<AstMapping *>(astTimeMap(0,
"%s", options.c_str()))) {
190 return copyImpl<TimeMap, AstTimeMap>();
194 explicit TimeMap(AstTimeMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
197 os <<
"this is a " <<
getClassName() <<
", which is not a TimeMap";
std::shared_ptr< TimeMap > copy() const
Return a deep copy of this object.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
TimeMap(TimeMap const &)=default
Copy constructor: make a deep copy.
An abstract base class for objects which transform one set of coordinates to another.
void add(std::string const &cvt, std::vector< double > const &args)
Add one of the standard time coordinate system conversions listed below.
Abstract base class for all AST objects.
TimeMap(std::string const &options="")
Construct a TimeMap.
TimeMap(TimeMap &&)=default
std::string getClassName() const
Get Class: the name of the class (e.g.
TimeMap(AstTimeMap *rawptr)
Construct a TimeMap from a raw AST pointer.
A TimeMap is a specialised form of 1-dimensional Mapping which can be used to represent a sequence of...
TimeMap & operator=(TimeMap const &)=delete
AST wrapper classes and functions.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
AstObject const * getRawPtr() const
Get the raw AST pointer.
TimeMap & operator=(TimeMap &&)=default