Synopsis - Cross-Reference

File: /src/Synopsis/ASG/IR.hh
 1//
 2// Copyright (C) 2004 Stefan Seefeld
 3// All rights reserved.
 4// Licensed to the public under the terms of the GNU LGPL (>= 2),
 5// see the file COPYING for details.
 6//
 7
 8#ifndef _Synopsis_ASG_IR_hh
 9#define _Synopsis_ASG_IR_hh
10
11#include <Synopsis/Python/Object.hh>
12#include <Synopsis/ASG/Declaration.hh>
13
14namespace Synopsis
15{
16class IR : public Python::Object
17{
18public:
19  IR() {}
20  IR(const Python::Object &o) throw(TypeError) : Python::Object(o) { assert_type();}
21
22  Python::Dict files() { return Python::Dict(attr("files"));}
23  Python::Object types() { return attr("asg").attr("types");}
24  Python::List declarations() { return Python::List(attr("asg").attr("declarations"));}
25  void assert_type() throw(TypeError) { Python::Object::assert_type("Synopsis.IR", "IR");}
26};
27
28}
29
30#endif