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