LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_LUTMAP_H
23 #define ASTSHIM_LUTMAP_H
76 :
Mapping(reinterpret_cast<AstMapping *>(
77 astLutMap(lut.size(), lut.
data(), start, inc,
"%s", options.c_str()))) {
104 return copyImpl<LutMap, AstLutMap>();
108 explicit LutMap(AstLutMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
111 os <<
"this is a " <<
getClassName() <<
", which is not a LutMap";
std::shared_ptr< LutMap > 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.
LutMap is a specialised form of Mapping which transforms 1-dimensional coordinates by using linear in...
LutMap(std::vector< double > const &lut, double start, double inc, std::string const &options="")
Construct an LutMap.
LutMap(LutMap const &)=default
Copy constructor: make a deep copy.
An abstract base class for objects which transform one set of coordinates to another.
LutMap(LutMap &&)=default
int getLutInterp() const
Get attribute LutInterp: the interpolation method to use between table entries.
LutMap(AstLutMap *rawptr)
Construct an LutMap from a raw AST pointer.
Abstract base class for all AST objects.
LutMap & operator=(LutMap &&)=default
std::string getClassName() const
Get Class: the name of the class (e.g.
int getI(std::string const &attrib) const
Get the value of an attribute as an int.
double getLutEpsilon() const
Get attribute LutEpsilon: the relative error of the values in the table.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
AST wrapper classes and functions.
double getD(std::string const &attrib) const
Get the value of an attribute as a double.
LutMap & operator=(LutMap const &)=delete
AstObject const * getRawPtr() const
Get the raw AST pointer.