LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
move.hxx
Go to the documentation of this file.
1 
6 #ifndef TREE_MOVE_HXX
7 # define TREE_MOVE_HXX
8 
9 # include <tree/move.hh>
10 
11 namespace tree
12 {
13 
14  inline
15  Move::Move(const rExp& dst, const rExp& src)
16  : Stm()
17  {
18  child_push_back(dst);
19  child_push_back(src);
20  }
21 
22  inline rExp
23  Move::dst_get() const
24  {
25  return child_get(0).cast<Exp>();
26  }
27 
28  inline rExp
29  Move::src_get() const
30  {
31  return child_get(1).cast<Exp>();
32  }
33 
34 }
35 
36 #endif // !TREE_MOVE_HXX