Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

InterrogateFunctionWrapper Class Reference

#include <interrogateFunctionWrapper.h>

Inheritance diagram for InterrogateFunctionWrapper:

InterrogateComponent List of all members.

Public Member Functions

INLINE InterrogateFunctionWrapper (InterrogateModuleDef *def=NULL)
INLINE InterrogateFunctionWrapper (const InterrogateFunctionWrapper &copy)
INLINE void operator= (const InterrogateFunctionWrapper &copy)
INLINE FunctionIndex get_function () const
INLINE bool is_callable_by_name () const
INLINE bool has_return_value () const
INLINE TypeIndex get_return_type () const
INLINE bool caller_manages_return_value () const
INLINE FunctionIndex get_return_value_destructor () const
INLINE int number_of_parameters () const
INLINE TypeIndex parameter_get_type (int n) const
INLINE bool parameter_has_name (int n) const
INLINE const string & parameter_get_name (int n) const
INLINE bool parameter_is_this (int n) const
INLINE const string & get_unique_name () const
void output (ostream &out) const
void input (istream &in)
void remap_indices (const IndexRemapper &remap)

Private Types

typedef vector< ParameterParameters
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

Member Typedef Documentation

typedef vector<Parameter> InterrogateFunctionWrapper::Parameters [private]
 

Definition at line 95 of file interrogateFunctionWrapper.h.


Member Enumeration Documentation

enum InterrogateFunctionWrapper::Flags [private]
 

Enumeration values:
F_caller_manages 
F_has_return 
F_callable_by_name 

Definition at line 63 of file interrogateFunctionWrapper.h.

enum InterrogateFunctionWrapper::ParameterFlags [private]
 

Enumeration values:
PF_has_name 
PF_is_this 

Definition at line 69 of file interrogateFunctionWrapper.h.


Constructor & Destructor Documentation

INLINE InterrogateFunctionWrapper::InterrogateFunctionWrapper InterrogateModuleDef def = NULL  ) 
 

INLINE InterrogateFunctionWrapper::InterrogateFunctionWrapper const InterrogateFunctionWrapper &  copy  ) 
 


Member Function Documentation

INLINE bool InterrogateFunctionWrapper::caller_manages_return_value  )  const
 

Referenced by interrogate_wrapper_caller_manages_return_value().

INLINE FunctionIndex InterrogateFunctionWrapper::get_function  )  const
 

INLINE TypeIndex InterrogateFunctionWrapper::get_return_type  )  const
 

Referenced by interrogate_wrapper_return_type().

INLINE FunctionIndex InterrogateFunctionWrapper::get_return_value_destructor  )  const
 

Referenced by interrogate_wrapper_return_value_destructor().

INLINE const string& InterrogateFunctionWrapper::get_unique_name  )  const
 

Referenced by interrogate_wrapper_unique_name().

INLINE bool InterrogateFunctionWrapper::has_return_value  )  const
 

Referenced by interrogate_wrapper_has_return_value().

void InterrogateFunctionWrapper::input istream in  ) 
 

Reimplemented from InterrogateComponent.

Definition at line 71 of file interrogateFunctionWrapper.cxx.

References _flags, _function, _parameters, _return_type, _return_value_destructor, _unique_name, idf_input_string(), idf_input_vector(), and InterrogateComponent::input().

INLINE bool InterrogateFunctionWrapper::is_callable_by_name  )  const
 

Referenced by interrogate_wrapper_is_callable_by_name().

INLINE int InterrogateFunctionWrapper::number_of_parameters  )  const
 

Referenced by interrogate_wrapper_number_of_parameters().

INLINE void InterrogateFunctionWrapper::operator= const InterrogateFunctionWrapper &  copy  ) 
 

void InterrogateFunctionWrapper::output ostream out  )  const
 

Reimplemented from InterrogateComponent.

Definition at line 54 of file interrogateFunctionWrapper.cxx.

References _flags, _function, _parameters, _return_type, _return_value_destructor, _unique_name, idf_output_string(), idf_output_vector(), and InterrogateComponent::output().

INLINE const string& InterrogateFunctionWrapper::parameter_get_name int  n  )  const
 

Referenced by interrogate_wrapper_parameter_name().

INLINE TypeIndex InterrogateFunctionWrapper::parameter_get_type int  n  )  const
 

Referenced by interrogate_wrapper_parameter_type().

INLINE bool InterrogateFunctionWrapper::parameter_has_name int  n  )  const
 

Referenced by interrogate_wrapper_parameter_has_name().

INLINE bool InterrogateFunctionWrapper::parameter_is_this int  n  )  const
 

Referenced by interrogate_wrapper_parameter_is_this().

void InterrogateFunctionWrapper::remap_indices const IndexRemapper remap  ) 
 

Definition at line 89 of file interrogateFunctionWrapper.cxx.

References _parameters, _return_type, _return_value_destructor, and IndexRemapper::map_from().

Referenced by InterrogateDatabase::merge_from().


Friends And Related Function Documentation

friend class FunctionRemap [friend]
 

Reimplemented from InterrogateComponent.

Definition at line 99 of file interrogateFunctionWrapper.h.

friend class InterrogateBuilder [friend]
 

Reimplemented from InterrogateComponent.

Definition at line 98 of file interrogateFunctionWrapper.h.


Member Data Documentation

int InterrogateFunctionWrapper::_flags [private]
 

Definition at line 74 of file interrogateFunctionWrapper.h.

Referenced by input(), FunctionRemap::make_wrapper_entry(), and output().

FunctionIndex InterrogateFunctionWrapper::_function [private]
 

Definition at line 75 of file interrogateFunctionWrapper.h.

Referenced by input(), FunctionRemap::make_wrapper_entry(), and output().

Parameters InterrogateFunctionWrapper::_parameters [private]
 

Definition at line 96 of file interrogateFunctionWrapper.h.

Referenced by input(), FunctionRemap::make_wrapper_entry(), output(), and remap_indices().

TypeIndex InterrogateFunctionWrapper::_return_type [private]
 

Definition at line 76 of file interrogateFunctionWrapper.h.

Referenced by input(), FunctionRemap::make_wrapper_entry(), output(), and remap_indices().

FunctionIndex InterrogateFunctionWrapper::_return_value_destructor [private]
 

Definition at line 77 of file interrogateFunctionWrapper.h.

Referenced by input(), FunctionRemap::make_wrapper_entry(), output(), and remap_indices().

string InterrogateFunctionWrapper::_unique_name [private]
 

Definition at line 78 of file interrogateFunctionWrapper.h.

Referenced by input(), FunctionRemap::make_wrapper_entry(), and output().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:35:01 2003 for DTool by doxygen1.3