25 return (_flags & F_global) != 0;
36 return (_flags & F_virtual) != 0;
46 return (_flags & F_method) != 0;
57 return (_flags & F_unary_op) != 0;
68 return (_flags & F_operator_typecast) != 0;
87 INLINE
bool InterrogateFunction::
88 has_scoped_name()
const {
89 return !_scoped_name.empty();
97 INLINE
const string &InterrogateFunction::
98 get_scoped_name()
const {
107 INLINE
bool InterrogateFunction::
108 has_comment()
const {
109 return !_comment.empty();
117 INLINE
const string &InterrogateFunction::
118 get_comment()
const {
127 INLINE
bool InterrogateFunction::
128 has_prototype()
const {
129 return !_prototype.empty();
137 INLINE
const string &InterrogateFunction::
138 get_prototype()
const {
147 INLINE
int InterrogateFunction::
148 number_of_c_wrappers()
const {
149 return _c_wrappers.size();
157 INLINE FunctionWrapperIndex InterrogateFunction::
158 get_c_wrapper(
int n)
const {
159 if (n >= 0 && n < (
int)_c_wrappers.size()) {
160 return _c_wrappers[n];
170 INLINE
int InterrogateFunction::
171 number_of_python_wrappers()
const {
172 return _python_wrappers.size();
180 INLINE FunctionWrapperIndex InterrogateFunction::
181 get_python_wrapper(
int n)
const {
182 if (n >= 0 && n < (
int)_python_wrappers.size()) {
183 return _python_wrappers[n];
191 function.output(out);
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.