lsst.astshim
19.0.0-2-g6e0b8f9
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_SHIFTMAP_H
23 #define ASTSHIM_SHIFTMAP_H
49 explicit ShiftMap(std::vector<double>
const &shift, std::string
const &options =
"")
50 :
Mapping(reinterpret_cast<AstMapping *>(
51 astShiftMap(shift.size(), shift.data(),
"%s", options.c_str()))) {
64 std::shared_ptr<ShiftMap>
copy()
const {
return std::static_pointer_cast<ShiftMap>(
copyPolymorphic()); }
68 return copyImpl<ShiftMap, AstShiftMap>();
72 explicit ShiftMap(AstShiftMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
74 std::ostringstream os;
75 os <<
"this is a " <<
getClassName() <<
", which is not a ShiftMap";
76 throw std::invalid_argument(os.str());
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: ShiftMap.h:67
ShiftMap & operator=(ShiftMap const &)=delete
ShiftMap(ShiftMap const &)=default
Copy constructor: make a deep copy.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Definition: base.cc:49
std::string getClassName() const
Definition: Object.h:139
Definition: ShiftMap.h:40
virtual ~ShiftMap()
Definition: ShiftMap.h:55
ShiftMap(std::vector< double > const &shift, std::string const &options="")
Definition: ShiftMap.h:49
ShiftMap(ShiftMap &&)=default
AST wrapper classes and functions.
Definition: attributes_channel.dox:1
ShiftMap & operator=(ShiftMap &&)=default
AstObject const * getRawPtr() const
Definition: Object.h:292
std::shared_ptr< ShiftMap > copy() const
Return a deep copy of this object.
Definition: ShiftMap.h:64
ShiftMap(AstShiftMap *rawptr)
Construct a ShiftMap from a raw AST pointer.
Definition: ShiftMap.h:72