1
2
3
4
5
6 """
7 defines default declarations factory class
8 """
9
10 from calldef import member_function_t
11 from calldef import constructor_t
12 from calldef import destructor_t
13 from calldef import member_operator_t
14 from calldef import casting_operator_t
15 from calldef import free_function_t
16 from calldef import free_operator_t
17 from enumeration import enumeration_t
18 from namespace import namespace_t
19 from class_declaration import class_t
20 from class_declaration import class_declaration_t
21 from typedef import typedef_t
22 from variable import variable_t
23
25 """
26 declarations factory class
27 """
29 """creates declarations factory"""
30 object.__init__(self)
31
35
37 """creates instance of class that describes constructor declaration"""
38 return constructor_t(*arguments, **keywords)
39
41 """creates instance of class that describes destructor declaration"""
42 return destructor_t(*arguments, **keywords)
43
47
51
53 """creates instance of class that describes free function declaration"""
54 return free_function_t(*arguments, **keywords)
55
57 """creates instance of class that describes free operator declaration"""
58 return free_operator_t(*arguments, **keywords)
59
63
65 """creates instance of class that describes class definition declaration"""
66 return class_t(*arguments, **keywords)
67
69 """creates instance of class that describes enumeration declaration"""
70 return enumeration_t(*arguments, **keywords)
71
73 """creates instance of class that describes namespace declaration"""
74 return namespace_t(*arguments, **keywords)
75
77 """creates instance of class that describes typedef declaration"""
78 return typedef_t(*arguments, **keywords)
79
81 """creates instance of class that describes variable declaration"""
82 return variable_t(*arguments, **keywords)
83