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";
AstObject const * getRawPtr() const
Get the raw AST pointer.
TimeMap & operator=(TimeMap const &)=delete
AST wrapper classes and functions.
std::string getClassName() const
Get Class: the name of the class (e.g.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
An abstract base class for objects which transform one set of coordinates to another.
A TimeMap is a specialised form of 1-dimensional Mapping which can be used to represent a sequence of...
T static_pointer_cast(T... args)
std::shared_ptr< TimeMap > copy() const
Return a deep copy of this object.
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(AstTimeMap *rawptr)
Construct a TimeMap from a raw AST pointer.
TimeMap(std::string const &options="")
Construct a TimeMap.