22 #ifndef ASTSHIM_CMPFRAME_H 23 #define ASTSHIM_CMPFRAME_H 75 :
Frame(reinterpret_cast<AstFrame *>(astCmpFrame(const_cast<AstObject *>(frame1.
getRawPtr()),
76 const_cast<AstObject *>(frame2.
getRawPtr()),
77 "%s", options.c_str()))) {}
96 std::shared_ptr<Frame>
operator[](
int i)
const {
return decompose<Frame>(i,
false); }
100 return copyImpl<CmpFrame, AstCmpFrame>();
105 explicit CmpFrame(AstCmpFrame *rawptr) :
Frame(reinterpret_cast<AstFrame *>(rawptr)) {
107 std::ostringstream os;
108 os <<
"this is a " <<
getClassName() <<
", which is not a CmpFrame";
109 throw std::invalid_argument(os.str());
Definition: CmpFrame.h:60
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: CmpFrame.h:99
virtual ~CmpFrame()
Definition: CmpFrame.h:79
AstObject const * getRawPtr() const
Definition: Object.h:291
AST wrapper classes and functions.
Definition: attributes_channel.dox:1
CmpFrame(Frame const &frame1, Frame const &frame2, std::string const &options="")
Definition: CmpFrame.h:74
std::string getClassName() const
Definition: Object.h:138
CmpFrame(AstCmpFrame *rawptr)
Definition: CmpFrame.h:105
std::shared_ptr< CmpFrame > copy() const
Return a deep copy of this object.
Definition: CmpFrame.h:88
CmpFrame & operator=(CmpFrame const &)=delete
std::shared_ptr< Frame > operator[](int i) const
Definition: CmpFrame.h:96