Panda3D
Classes | Public Member Functions | Friends | List of all members
InterrogateFunctionWrapper Class Reference

An internal representation of a callable function. More...

#include "interrogateFunctionWrapper.h"

Inheritance diagram for InterrogateFunctionWrapper:
InterrogateComponent

Classes

class  Parameter
 

Public Member Functions

 InterrogateFunctionWrapper (InterrogateModuleDef *def=nullptr)
 
 InterrogateFunctionWrapper (const InterrogateFunctionWrapper &copy)
 
bool caller_manages_return_value () const
 
const std::string & get_comment () const
 
FunctionIndex get_function () const
 Returns the FunctionIndex of the function that this wrapper corresponds to. More...
 
TypeIndex get_return_type () const
 
FunctionIndex get_return_value_destructor () const
 
const std::string & get_unique_name () const
 
bool has_comment () const
 
bool has_return_value () const
 
void input (std::istream &in)
 Reads the data file as previously formatted by output(). More...
 
bool is_callable_by_name () const
 
int number_of_parameters () const
 
void operator= (const InterrogateFunctionWrapper &copy)
 
void output (std::ostream &out) const
 Formats the InterrogateFunctionWrapper data for output to a data file. More...
 
const std::string & parameter_get_name (int n) const
 
TypeIndex parameter_get_type (int n) const
 
bool parameter_has_name (int n) const
 
bool parameter_is_this (int n) const
 
void remap_indices (const IndexRemapper &remap)
 Remaps all internal index numbers according to the indicated map. More...
 
- Public Member Functions inherited from InterrogateComponent
 InterrogateComponent (InterrogateModuleDef *def=nullptr)
 
 InterrogateComponent (const InterrogateComponent &copy)
 
const std::string & get_alt_name (int n) const
 
const char * get_library_name () const
 Returns the library name, if it is known, or NULL if it is not. More...
 
const char * get_module_name () const
 Returns the module name, if it is known, or NULL if it is not. More...
 
const std::string & get_name () const
 
int get_num_alt_names () const
 
bool has_library_name () const
 Returns true if we have a known library name, false if we do not. More...
 
bool has_module_name () const
 Returns true if we have a known module name, false if we do not. More...
 
bool has_name () const
 
void input (std::istream &in)
 Reads the data file as previously formatted by output(). More...
 
void operator= (const InterrogateComponent &copy)
 
void output (std::ostream &out) const
 Formats the component for output to a data file. More...
 

Friends

class FunctionRemap
 
class InterrogateBuilder
 

Detailed Description

An internal representation of a callable function.

Definition at line 28 of file interrogateFunctionWrapper.h.

Member Function Documentation

◆ get_function()

FunctionIndex InterrogateFunctionWrapper::get_function ( ) const
inline

Returns the FunctionIndex of the function that this wrapper corresponds to.

Definition at line 54 of file interrogateFunctionWrapper.I.

◆ input()

void InterrogateFunctionWrapper::input ( std::istream &  in)

Reads the data file as previously formatted by output().

Definition at line 60 of file interrogateFunctionWrapper.cxx.

References idf_input_string(), idf_input_vector(), and InterrogateComponent::input().

◆ output()

void InterrogateFunctionWrapper::output ( std::ostream &  out) const

Formats the InterrogateFunctionWrapper data for output to a data file.

Definition at line 45 of file interrogateFunctionWrapper.cxx.

References idf_output_string(), idf_output_vector(), and InterrogateComponent::output().

◆ remap_indices()

void InterrogateFunctionWrapper::remap_indices ( const IndexRemapper remap)

Remaps all internal index numbers according to the indicated map.

This called from InterrogateDatabase::remap_indices().

Definition at line 76 of file interrogateFunctionWrapper.cxx.

References IndexRemapper::map_from().


The documentation for this class was generated from the following files: