22 #ifndef ASTSHIM_UNITMAP_H 23 #define ASTSHIM_UNITMAP_H 55 :
Mapping(reinterpret_cast<AstMapping *>(astUnitMap(ncoord,
"%s",
options.c_str()))) {
72 return copyImpl<UnitMap, AstUnitMap>();
76 explicit UnitMap(AstUnitMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
79 os <<
"this is a " <<
getClassName() <<
", which is not a UnitMap";
AstObject const * getRawPtr() const
Get the raw AST pointer.
A UnitMap is a unit (null) Mapping that has no effect on the coordinates supplied to it...
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.
UnitMap(int ncoord, std::string const &options="")
Construct a UnitMap.
T static_pointer_cast(T... args)
UnitMap & operator=(UnitMap const &)=delete
UnitMap(AstUnitMap *rawptr)
Construct a UnitMap from a raw AST pointer.
Abstract base class for all AST objects.
std::shared_ptr< UnitMap > copy() const
Return a deep copy of this object.