#include <interrogateFunctionWrapper.h>
Inheritance diagram for InterrogateFunctionWrapper:
Public Member Functions | |
InterrogateFunctionWrapper (InterrogateModuleDef *def=NULL) | |
InterrogateFunctionWrapper (const InterrogateFunctionWrapper ©) | |
void | operator= (const InterrogateFunctionWrapper ©) |
FunctionIndex | get_function () const |
Returns the FunctionIndex of the function that this wrapper corresponds to. | |
bool | is_callable_by_name () const |
bool | has_return_value () const |
TypeIndex | get_return_type () const |
bool | caller_manages_return_value () const |
FunctionIndex | get_return_value_destructor () const |
int | number_of_parameters () const |
TypeIndex | parameter_get_type (int n) const |
bool | parameter_has_name (int n) const |
const string & | parameter_get_name (int n) const |
bool | parameter_is_this (int n) const |
const string & | get_unique_name () const |
void | output (ostream &out) const |
Formats the InterrogateFunctionWrapper data for output to a data file. | |
void | input (istream &in) |
Reads the data file as previously formatted by output(). | |
void | remap_indices (const IndexRemapper &remap) |
Remaps all internal index numbers according to the indicated map. | |
bool | has_library_name () const |
Returns true if we have a known library name, false if we do not. | |
const char * | get_library_name () const |
Returns the library name, if it is known, or NULL if it is not. | |
bool | has_module_name () const |
Returns true if we have a known module name, false if we do not. | |
const char * | get_module_name () const |
Returns the module name, if it is known, or NULL if it is not. | |
bool | has_name () const |
const string & | get_name () const |
Private Types | |
typedef vector< Parameter > | Parameters |
enum | Flags { F_caller_manages = 0x0001, F_has_return = 0x0002, F_callable_by_name = 0x0004 } |
enum | ParameterFlags { PF_has_name = 0x0001, PF_is_this = 0x0002 } |
Private Attributes | |
int | _flags |
FunctionIndex | _function |
TypeIndex | _return_type |
FunctionIndex | _return_value_destructor |
string | _unique_name |
Parameters | _parameters |
Friends | |
class | InterrogateBuilder |
class | FunctionRemap |
Definition at line 40 of file interrogateFunctionWrapper.h.
|
Definition at line 101 of file interrogateFunctionWrapper.h. |
|
Definition at line 69 of file interrogateFunctionWrapper.h. |
|
Definition at line 75 of file interrogateFunctionWrapper.h. |
|
Definition at line 31 of file interrogateFunctionWrapper.I. References _return_type, and _return_value_destructor. |
|
Definition at line 48 of file interrogateFunctionWrapper.I. References _flags, _function, _parameters, _return_type, _return_value_destructor, _unique_name, INLINE, and InterrogateComponent::operator=(). |
|
Definition at line 129 of file interrogateFunctionWrapper.I. References _parameters. Referenced by interrogate_wrapper_return_type(). |
|
Returns the FunctionIndex of the function that this wrapper corresponds to.
Definition at line 81 of file interrogateFunctionWrapper.I. References _flags, F_has_return, and INLINE. |
|
Returns the library name, if it is known, or NULL if it is not. This is the name of the library that this particular component was built into. Typically this will be a one-to-one correspondance with an invocation of the interrogate command. Typical examples are "libutil" and "liblinmath". Definition at line 98 of file interrogateComponent.I. References InterrogateComponent::_def, INLINE, InterrogateModuleDef::module_name, and NULL. Referenced by InterrogateComponent::operator=(). |
|
Returns the module name, if it is known, or NULL if it is not. This is the name of the module that this particular component is associated with. This is a higher grouping than library. Typical examples are "panda" and "pandaegg". Definition at line 138 of file interrogateComponent.I. Referenced by interrogate_function_has_module_name(), and interrogate_type_has_module_name(). |
|
Definition at line 165 of file interrogateComponent.I. Referenced by interrogate_function_python_wrapper(), interrogate_get_function(), interrogate_get_manifest_by_name(), interrogate_get_type_by_true_name(), and interrogate_manifest_get_int_value(). |
|
Definition at line 117 of file interrogateFunctionWrapper.I. References _return_value_destructor, FunctionIndex, and INLINE. Referenced by interrogate_wrapper_has_return_value(). |
|
Definition at line 141 of file interrogateFunctionWrapper.I. Referenced by interrogate_wrapper_caller_manages_return_value(). |
|
Definition at line 226 of file interrogateFunctionWrapper.I. Referenced by interrogate_wrapper_pointer(). |
|
Returns true if we have a known library name, false if we do not. See get_library_name(). Definition at line 74 of file interrogateComponent.I. References InterrogateComponent::_def, INLINE, InterrogateModuleDef::library_name, and NULL. |
|
Returns true if we have a known module name, false if we do not. See get_module_name(). Definition at line 116 of file interrogateComponent.I. References InterrogateComponent::_name, and INLINE. Referenced by interrogate_function_class(), and interrogate_type_comment(). |
|
Definition at line 153 of file interrogateComponent.I. |
|
Definition at line 105 of file interrogateFunctionWrapper.I. References _flags, F_caller_manages, and INLINE. Referenced by interrogate_wrapper_is_callable_by_name(). |
|
Reads the data file as previously formatted by output().
Reimplemented from InterrogateComponent. Definition at line 86 of file interrogateFunctionWrapper.cxx. References _parameters, _return_type, _return_value_destructor, and IndexRemapper::map_from(). |
|
Definition at line 93 of file interrogateFunctionWrapper.I. References _return_type, INLINE, and TypeIndex. |
|
Definition at line 153 of file interrogateFunctionWrapper.I. References _parameters, and PF_has_name. Referenced by interrogate_wrapper_return_value_destructor(). |
|
Definition at line 60 of file interrogateFunctionWrapper.I. References _function, FunctionIndex, and INLINE. |
|
Formats the InterrogateFunctionWrapper data for output to a data file.
Reimplemented from InterrogateComponent. Definition at line 65 of file interrogateFunctionWrapper.cxx. References _flags, _function, _parameters, _return_type, _return_value_destructor, _unique_name, idf_input_string(), idf_input_vector(), and InterrogateComponent::input(). Referenced by parameter_get_name(). |
|
Definition at line 195 of file interrogateFunctionWrapper.I. References INLINE, and output(). Referenced by interrogate_wrapper_parameter_has_name(). |
|
Definition at line 165 of file interrogateFunctionWrapper.I. References _parameters. Referenced by interrogate_wrapper_number_of_parameters(). |
|
Definition at line 180 of file interrogateFunctionWrapper.I. References _parameters, and PF_is_this. Referenced by interrogate_wrapper_parameter_type(). |
|
Definition at line 211 of file interrogateFunctionWrapper.I. Referenced by interrogate_wrapper_parameter_name(). |
|
Remaps all internal index numbers according to the indicated map. This called from InterrogateDatabase::remap_indices(). Definition at line 109 of file interrogateFunctionWrapper.cxx. |
|
Reimplemented from InterrogateComponent. Definition at line 105 of file interrogateFunctionWrapper.h. |
|
Reimplemented from InterrogateComponent. Definition at line 104 of file interrogateFunctionWrapper.h. |
|
Definition at line 80 of file interrogateFunctionWrapper.h. Referenced by get_function(), has_return_value(), InterrogateFunctionWrapper(), and output(). |
|
Definition at line 81 of file interrogateFunctionWrapper.h. Referenced by InterrogateFunctionWrapper(), operator=(), and output(). |
|
Definition at line 102 of file interrogateFunctionWrapper.h. Referenced by caller_manages_return_value(), input(), InterrogateFunctionWrapper(), number_of_parameters(), output(), parameter_get_type(), and parameter_has_name(). |
|
Definition at line 82 of file interrogateFunctionWrapper.h. Referenced by input(), InterrogateFunctionWrapper(), is_callable_by_name(), and output(). |
|
Definition at line 83 of file interrogateFunctionWrapper.h. Referenced by get_return_type(), input(), InterrogateFunctionWrapper(), and output(). |
|
Definition at line 84 of file interrogateFunctionWrapper.h. Referenced by InterrogateFunctionWrapper(), and output(). |