15 #ifndef INTERROGATEFUNCTIONWRAPPER_H
16 #define INTERROGATEFUNCTIONWRAPPER_H
18 #include "dtoolbase.h"
20 #include "interrogateComponent.h"
33 INLINE InterrogateFunctionWrapper(
const InterrogateFunctionWrapper ©);
34 INLINE
void operator = (
const InterrogateFunctionWrapper ©);
36 INLINE FunctionIndex get_function()
const;
38 INLINE
bool is_callable_by_name()
const;
40 INLINE
bool has_return_value()
const;
41 INLINE TypeIndex get_return_type()
const;
42 INLINE
bool caller_manages_return_value()
const;
43 INLINE FunctionIndex get_return_value_destructor()
const;
45 INLINE
int number_of_parameters()
const;
46 INLINE TypeIndex parameter_get_type(
int n)
const;
47 INLINE
bool parameter_has_name(
int n)
const;
48 INLINE
const string ¶meter_get_name(
int n)
const;
49 INLINE
bool parameter_is_this(
int n)
const;
51 INLINE
const string &get_unique_name()
const;
53 INLINE
bool has_comment()
const;
54 INLINE
const string &get_comment()
const;
56 void output(ostream &out)
const;
57 void input(istream &in);
63 F_caller_manages = 0x0001,
64 F_has_return = 0x0002,
65 F_callable_by_name = 0x0004
74 FunctionIndex _function;
75 TypeIndex _return_type;
76 FunctionIndex _return_value_destructor;
86 void output(ostream &out)
const;
87 void input(istream &in);
95 typedef vector<Parameter> Parameters;
96 Parameters _parameters;
98 friend class InterrogateBuilder;
99 friend class FunctionRemap;
108 #include "interrogateFunctionWrapper.I"
This class manages a mapping of integers to integers.
void input(istream &in)
Reads the data file as previously formatted by output().
An internal representation of a callable function.
The base class for things that are part of the interrogate database.
void output(ostream &out) const
Formats the component for output to a data file.