22 #ifndef ASTSHIM_NORMMAP_H 23 #define ASTSHIM_NORMMAP_H 62 :
Mapping(reinterpret_cast<AstMapping *>(
63 astNormMap(const_cast<AstObject *>(frame.
getRawPtr()),
"%s",
options.c_str()))) {
80 return copyImpl<NormMap, AstNormMap>();
84 explicit NormMap(AstNormMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
87 os <<
"this is a " <<
getClassName() <<
", which is not a NormMap";
AstObject const * getRawPtr() const
Get the raw AST pointer.
NormMap & operator=(NormMap 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.
A Mapping which normalises coordinate values using the norm method of the supplied Frame...
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.
Frame is used to represent a coordinate system.
T static_pointer_cast(T... args)
NormMap(Frame const &frame, std::string const &options="")
Construct a NormMap.
NormMap(AstNormMap *rawptr)
Construct a NormMap from a raw AST pointer.
Abstract base class for all AST objects.
std::shared_ptr< NormMap > copy() const
Return a deep copy of this object.