14 #ifndef INTERROGATEFUNCTIONWRAPPER_H 15 #define INTERROGATEFUNCTIONWRAPPER_H 34 INLINE FunctionIndex get_function()
const;
36 INLINE
bool is_callable_by_name()
const;
38 INLINE
bool has_return_value()
const;
39 INLINE TypeIndex get_return_type()
const;
40 INLINE
bool caller_manages_return_value()
const;
41 INLINE FunctionIndex get_return_value_destructor()
const;
43 INLINE
int number_of_parameters()
const;
44 INLINE TypeIndex parameter_get_type(
int n)
const;
45 INLINE
bool parameter_has_name(
int n)
const;
46 INLINE
const std::string ¶meter_get_name(
int n)
const;
47 INLINE
bool parameter_is_this(
int n)
const;
49 INLINE
const std::string &get_unique_name()
const;
51 INLINE
bool has_comment()
const;
52 INLINE
const std::string &get_comment()
const;
54 void output(std::ostream &out)
const;
55 void input(std::istream &in);
61 F_caller_manages = 0x0001,
62 F_has_return = 0x0002,
63 F_callable_by_name = 0x0004
72 FunctionIndex _function;
73 TypeIndex _return_type;
74 FunctionIndex _return_value_destructor;
75 std::string _unique_name;
84 void output(std::ostream &out)
const;
85 void input(std::istream &in);
93 typedef std::vector<Parameter> Parameters;
94 Parameters _parameters;
96 friend class InterrogateBuilder;
97 friend class FunctionRemap;
103 INLINE std::ostream &operator << (std::ostream &out,
const InterrogateFunctionWrapper::Parameter &p);
104 INLINE std::istream &operator >> (std::istream &in, InterrogateFunctionWrapper::Parameter &p);
This class manages a mapping of integers to integers.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void output(std::ostream &out) const
Formats the component for output to a data file.
An internal representation of a callable function.
The base class for things that are part of the interrogate database.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void input(std::istream &in)
Reads the data file as previously formatted by output().