22 #ifndef ASTSHIM_RATEMAP_H 23 #define ASTSHIM_RATEMAP_H 72 :
Mapping(reinterpret_cast<AstMapping *>(astRateMap(const_cast<AstObject *>(map.
getRawPtr()), ax1,
90 return copyImpl<RateMap, AstRateMap>();
94 explicit RateMap(AstRateMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
97 os <<
"this is a " <<
getClassName() <<
", which is not a RateMap";
RateMap(AstRateMap *rawptr)
Construct a RateMap from a raw AST pointer.
AstObject const * getRawPtr() const
Get the raw AST pointer.
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.
An abstract base class for objects which transform one set of coordinates to another.
std::shared_ptr< RateMap > copy() const
Return a deep copy of this object.
RateMap(Mapping const &map, int ax1, int ax2, std::string const &options="")
Construct a RateMap.
RateMap is a Mapping which represents a single element of the Jacobian matrix of another Mapping...
T static_pointer_cast(T... args)
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
RateMap & operator=(RateMap const &)=delete
Abstract base class for all AST objects.