lsst.astshim
20.0.0-4-g45278ab+d529cf1a41
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_SLAMAP_H
23 #define ASTSHIM_SLAMAP_H
66 explicit SlaMap(std::string
const &options =
"")
67 :
Mapping(reinterpret_cast<AstMapping *>(astSlaMap(0,
"%s", options.c_str()))) {
175 void add(std::string
const &cvt, std::vector<double>
const &args = std::vector<double>()) {
176 astSlaAdd(
getRawPtr(), cvt.c_str(), args.size(), args.data());
182 return copyImpl<SlaMap, AstSlaMap>();
186 explicit SlaMap(AstSlaMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
188 std::ostringstream os;
189 os <<
"this is a " <<
getClassName() <<
", which is not a SlaMap";
190 throw std::invalid_argument(os.str());
SlaMap(AstSlaMap *rawptr)
Construct a SlaMap from a raw AST pointer.
Definition: SlaMap.h:186
SlaMap(std::string const &options="")
Definition: SlaMap.h:66
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Definition: base.cc:49
SlaMap & operator=(SlaMap &&)=default
void add(std::string const &cvt, std::vector< double > const &args=std::vector< double >())
Definition: SlaMap.h:175
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: SlaMap.h:181
std::string getClassName() const
Definition: Object.h:139
SlaMap(SlaMap &&)=default
SlaMap(SlaMap const &)=default
Copy constructor: make a deep copy.
std::shared_ptr< SlaMap > copy() const
Return a deep copy of this object.
Definition: SlaMap.h:80
AST wrapper classes and functions.
Definition: attributes_channel.dox:1
SlaMap & operator=(SlaMap const &)=delete
AstObject const * getRawPtr() const
Definition: Object.h:292
virtual ~SlaMap()
Definition: SlaMap.h:71