lsst.astshim
19.0.0-3-ge74d124
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_LUTMAP_H
23 #define ASTSHIM_LUTMAP_H
75 explicit LutMap(std::vector<double>
const &lut,
double start,
double inc, std::string
const &options =
"")
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)) {
110 std::ostringstream os;
111 os <<
"this is a " <<
getClassName() <<
", which is not a LutMap";
112 throw std::invalid_argument(os.str());
double getD(std::string const &attrib) const
Definition: Object.h:374
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Definition: base.cc:49
std::string getClassName() const
Definition: Object.h:139
LutMap(AstLutMap *rawptr)
Construct an LutMap from a raw AST pointer.
Definition: LutMap.h:108
AstObject const * getRawPtr() const
Definition: Object.h:292
LutMap(LutMap &&)=default
LutMap(LutMap const &)=default
Copy constructor: make a deep copy.
virtual ~LutMap()
Definition: LutMap.h:81
int getI(std::string const &attrib) const
Definition: Object.h:400
AST wrapper classes and functions.
Definition: attributes_channel.dox:1
LutMap & operator=(LutMap const &)=delete
double getLutEpsilon() const
Definition: LutMap.h:95
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: LutMap.h:103
LutMap & operator=(LutMap &&)=default
std::shared_ptr< LutMap > copy() const
Return a deep copy of this object.
Definition: LutMap.h:90
LutMap(std::vector< double > const &lut, double start, double inc, std::string const &options="")
Definition: LutMap.h:75
int getLutInterp() const
Definition: LutMap.h:100