22 #ifndef ASTSHIM_CMPFRAME_H
23 #define ASTSHIM_CMPFRAME_H
29 #include "astshim/base.h"
30 #include "astshim/Frame.h"
75 :
Frame(reinterpret_cast<AstFrame *>(astCmpFrame(const_cast<AstObject *>(frame1.
getRawPtr()),
76 const_cast<AstObject *>(frame2.
getRawPtr()),
87 std::shared_ptr<CmpFrame>
copy()
const {
98 return _decompose<Frame>(i,
false);
103 return _copyImpl<CmpFrame, AstCmpFrame>();
109 Frame(reinterpret_cast<AstFrame *>(rawptr))
112 std::ostringstream os;
113 os <<
"this is a " <<
getClass() <<
", which is not a CmpFrame";
114 throw std::invalid_argument(os.str());
CmpFrame(Frame const &frame1, Frame const &frame2, std::string const &options="")
Definition: CmpFrame.h:74
std::string getClass() const
Definition: Object.h:117
CmpFrame(AstCmpFrame *rawptr)
Definition: CmpFrame.h:108
std::shared_ptr< Frame > operator[](int i) const
Definition: CmpFrame.h:97
std::shared_ptr< CmpFrame > copy() const
Return a deep copy of this object.
Definition: CmpFrame.h:87
Definition: CmpFrame.h:60
virtual std::shared_ptr< Object > _copyPolymorphic() const override
Definition: CmpFrame.h:102
AstObject const * getRawPtr() const
Definition: Object.h:260