20 return (_flags & F_global) != 0;
28 return (_flags & F_virtual) != 0;
36 return (_flags & F_method) != 0;
45 return (_flags & F_unary_op) != 0;
54 return (_flags & F_operator_typecast) != 0;
68 INLINE
bool InterrogateFunction::
69 has_scoped_name()
const {
70 return !_scoped_name.empty();
76 INLINE
const std::string &InterrogateFunction::
77 get_scoped_name()
const {
84 INLINE
bool InterrogateFunction::
86 return !_comment.empty();
92 INLINE
const std::string &InterrogateFunction::
100 INLINE
bool InterrogateFunction::
101 has_prototype()
const {
102 return !_prototype.empty();
108 INLINE
const std::string &InterrogateFunction::
109 get_prototype()
const {
116 INLINE
int InterrogateFunction::
117 number_of_c_wrappers()
const {
118 return _c_wrappers.size();
124 INLINE FunctionWrapperIndex InterrogateFunction::
125 get_c_wrapper(
int n)
const {
126 if (n >= 0 && n < (
int)_c_wrappers.size()) {
127 return _c_wrappers[n];
135 INLINE
int InterrogateFunction::
136 number_of_python_wrappers()
const {
137 return _python_wrappers.size();
143 INLINE FunctionWrapperIndex InterrogateFunction::
144 get_python_wrapper(
int n)
const {
145 if (n >= 0 && n < (
int)_python_wrappers.size()) {
146 return _python_wrappers[n];
152 INLINE std::ostream &
154 function.output(out);
158 INLINE std::istream &
bool is_global() const
Returns true if the function is marked as 'global'.
bool is_virtual() const
Returns true if the function is virtual, for whatever that's worth.
bool is_method() const
Returns true if the function is a class method.
bool is_unary_op() const
Returns true if the function is flagged as a special unary operator, like operator -() with no parame...
An internal representation of a function.
bool is_operator_typecast() const
Returns true if the function is a special typecast operator, like operator bool().
TypeIndex get_class() const
Return the class that owns the method, if is_method() returns true.