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;
62 return (_flags & F_constructor) != 0;
70 return (_flags & F_destructor) != 0;
84INLINE
bool InterrogateFunction::
85has_scoped_name()
const {
86 return !_scoped_name.empty();
92INLINE
const std::string &InterrogateFunction::
93get_scoped_name()
const {
100INLINE
bool InterrogateFunction::
102 return !_comment.empty();
108INLINE
const std::string &InterrogateFunction::
116INLINE
bool InterrogateFunction::
117has_prototype()
const {
118 return !_prototype.empty();
124INLINE
const std::string &InterrogateFunction::
125get_prototype()
const {
132INLINE
int InterrogateFunction::
133number_of_c_wrappers()
const {
134 return _c_wrappers.size();
140INLINE FunctionWrapperIndex InterrogateFunction::
141get_c_wrapper(
int n)
const {
142 if (n >= 0 && n < (
int)_c_wrappers.size()) {
143 return _c_wrappers[n];
151INLINE
int InterrogateFunction::
152number_of_python_wrappers()
const {
153 return _python_wrappers.size();
159INLINE FunctionWrapperIndex InterrogateFunction::
160get_python_wrapper(
int n)
const {
161 if (n >= 0 && n < (
int)_python_wrappers.size()) {
162 return _python_wrappers[n];
An internal representation of a function.
bool is_method() const
Returns true if the function is a class method.
bool is_destructor() const
Returns true if the function is a destructor.
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_constructor() const
Returns true if the function is a constructor.
void output(std::ostream &out) const
Formats the InterrogateFunction data for output to a data file.
void input(std::istream &in)
Reads the data file as previously formatted by output().
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().