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

InterfaceMakerPythonSimple Class Reference

#include <interfaceMakerPythonSimple.h>

Inheritance diagram for InterfaceMakerPythonSimple:

InterfaceMakerPython InterfaceMaker List of all members.

Public Member Functions

 InterfaceMakerPythonSimple (InterrogateModuleDef *def)
virtual ~InterfaceMakerPythonSimple ()
virtual void write_prototypes (ostream &out)
virtual void write_functions (ostream &out)
virtual void write_module (ostream &out, InterrogateModuleDef *def)
virtual bool synthesize_this_parameter ()

Protected Member Functions

virtual string get_wrapper_prefix ()
virtual string get_unique_prefix ()
virtual void record_function_wrapper (InterrogateFunction &ifunc, FunctionWrapperIndex wrapper_index)

Private Member Functions

void write_prototype_for (ostream &out, Function *func)
void write_function_for (ostream &out, Function *func)
void write_function_instance (ostream &out, Function *func, FunctionRemap *remap)
void pack_return_value (ostream &out, int indent_level, FunctionRemap *remap, string return_expr)

Constructor & Destructor Documentation

InterfaceMakerPythonSimple::InterfaceMakerPythonSimple InterrogateModuleDef def  ) 
 

Definition at line 37 of file interfaceMakerPythonSimple.cxx.

InterfaceMakerPythonSimple::~InterfaceMakerPythonSimple  )  [virtual]
 

Definition at line 48 of file interfaceMakerPythonSimple.cxx.


Member Function Documentation

string InterfaceMakerPythonSimple::get_unique_prefix  )  [protected, virtual]
 

Reimplemented from InterfaceMaker.

Definition at line 157 of file interfaceMakerPythonSimple.cxx.

string InterfaceMakerPythonSimple::get_wrapper_prefix  )  [protected, virtual]
 

Reimplemented from InterfaceMaker.

Definition at line 145 of file interfaceMakerPythonSimple.cxx.

void InterfaceMakerPythonSimple::pack_return_value ostream out,
int  indent_level,
FunctionRemap remap,
string  return_expr
[private]
 

Definition at line 384 of file interfaceMakerPythonSimple.cxx.

References FunctionRemap::_return_type, ParameterRemap::get_new_type(), ParameterRemap::get_orig_type(), InterfaceMaker::indent(), TypeManager::is_char_pointer(), TypeManager::is_float(), TypeManager::is_integer(), TypeManager::is_pointer(), ParameterRemap::new_type_is_atomic_string(), and type.

Referenced by write_function_instance().

void InterfaceMakerPythonSimple::record_function_wrapper InterrogateFunction ifunc,
FunctionWrapperIndex  wrapper_index
[protected, virtual]
 

Reimplemented from InterfaceMaker.

Definition at line 168 of file interfaceMakerPythonSimple.cxx.

References InterrogateFunction::_python_wrappers.

bool InterfaceMakerPythonSimple::synthesize_this_parameter  )  [virtual]
 

Reimplemented from InterfaceMaker.

Definition at line 134 of file interfaceMakerPythonSimple.cxx.

void InterfaceMakerPythonSimple::write_function_for ostream out,
Function *  func
[private]
 

Definition at line 203 of file interfaceMakerPythonSimple.cxx.

References InterfaceMaker::Function::_remaps, and write_function_instance().

Referenced by write_functions().

void InterfaceMakerPythonSimple::write_function_instance ostream out,
Function *  func,
FunctionRemap remap
[private]
 

Definition at line 219 of file interfaceMakerPythonSimple.cxx.

References FunctionRemap::_has_this, FunctionRemap::_parameters, FunctionRemap::_return_type, FunctionRemap::_void_return, FunctionRemap::_wrapper_name, FunctionRemap::call_function(), ParameterRemap::get_orig_type(), FunctionRemap::get_parameter_name(), ParameterRemap::get_temporary_type(), InterfaceMaker::indent(), TypeManager::is_bool(), TypeManager::is_char_pointer(), TypeManager::is_float(), TypeManager::is_integer(), TypeManager::is_pointer(), InterfaceMaker::manage_return_value(), ParameterRemap::new_type_is_atomic_string(), output_function_names, pack_return_value(), parser, ParameterRemap::temporary_to_return(), InterfaceMakerPython::test_assert(), type, vector_string, FunctionRemap::write_orig_prototype(), and InterfaceMaker::write_spam_message().

Referenced by write_function_for().

void InterfaceMakerPythonSimple::write_functions ostream out  )  [virtual]
 

Reimplemented from InterfaceMaker.

Definition at line 78 of file interfaceMakerPythonSimple.cxx.

References InterfaceMaker::_functions, write_function_for(), and InterfaceMaker::write_functions().

void InterfaceMakerPythonSimple::write_module ostream out,
InterrogateModuleDef def
[virtual]
 

Reimplemented from InterfaceMaker.

Definition at line 95 of file interfaceMakerPythonSimple.cxx.

References InterfaceMaker::_functions, FunctionRemap::_unique_name, FunctionRemap::_wrapper_name, InterrogateModuleDef::library_name, and InterfaceMaker::write_module().

void InterfaceMakerPythonSimple::write_prototype_for ostream out,
Function *  func
[private]
 

Definition at line 179 of file interfaceMakerPythonSimple.cxx.

References InterfaceMaker::Function::_remaps, FunctionRemap::_wrapper_name, and output_function_names.

Referenced by write_prototypes().

void InterfaceMakerPythonSimple::write_prototypes ostream out  )  [virtual]
 

Reimplemented from InterfaceMaker.

Definition at line 59 of file interfaceMakerPythonSimple.cxx.

References InterfaceMaker::_functions, write_prototype_for(), and InterfaceMaker::write_prototypes().


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