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

FunctionWriterPtrFromPython Class Reference

This specialization of FunctionWriter generates a function that converts a PyObject pointer representing a class wrapper object to the corresponding C++ pointer. More...

#include <functionWriterPtrFromPython.h>

Inheritance diagram for FunctionWriterPtrFromPython:

FunctionWriter List of all members.

Public Member Functions

 FunctionWriterPtrFromPython (CPPType *type)
virtual ~FunctionWriterPtrFromPython ()
virtual void write_prototype (ostream &out)
 Outputs the prototype for the function.

virtual void write_code (ostream &out)
 Outputs the code for the function.

CPPTypeget_type () const
 Returns the type that represents the actual data type.

CPPTypeget_pointer_type () const
 Returns the type that represents a pointer to the data type.

const string & get_name () const
virtual int compare_to (const FunctionWriter &other) const

Protected Attributes

string _name

Private Attributes

CPPType_type
CPPType_pointer_type

Detailed Description

This specialization of FunctionWriter generates a function that converts a PyObject pointer representing a class wrapper object to the corresponding C++ pointer.

Definition at line 42 of file functionWriterPtrFromPython.h.


Constructor & Destructor Documentation

FunctionWriterPtrFromPython::FunctionWriterPtrFromPython CPPType type  ) 
 

Definition at line 37 of file functionWriterPtrFromPython.cxx.

FunctionWriterPtrFromPython::~FunctionWriterPtrFromPython  )  [virtual]
 

Definition at line 54 of file functionWriterPtrFromPython.cxx.

References FunctionWriter::_name, _pointer_type, CPPType::output_instance(), and parser.


Member Function Documentation

int FunctionWriter::compare_to const FunctionWriter other  )  const [virtual, inherited]
 

Definition at line 66 of file functionWriter.cxx.

const string & FunctionWriter::get_name  )  const [inherited]
 

Definition at line 54 of file functionWriter.cxx.

References FunctionWriter::_name.

CPPType * FunctionWriterPtrFromPython::get_pointer_type  )  const
 

Returns the type that represents a pointer to the data type.

Definition at line 135 of file functionWriterPtrFromPython.cxx.

CPPType * FunctionWriterPtrFromPython::get_type  )  const
 

Returns the type that represents the actual data type.

Definition at line 120 of file functionWriterPtrFromPython.cxx.

void FunctionWriterPtrFromPython::write_code ostream &  out  )  [virtual]
 

Outputs the code for the function.

Reimplemented from FunctionWriter.

Definition at line 86 of file functionWriterPtrFromPython.cxx.

References _pointer_type.

void FunctionWriterPtrFromPython::write_prototype ostream &  out  )  [virtual]
 

Outputs the prototype for the function.

Reimplemented from FunctionWriter.

Definition at line 67 of file functionWriterPtrFromPython.cxx.

References FunctionWriter::_name, _pointer_type, CPPType::output_instance(), and parser.


Member Data Documentation

string FunctionWriter::_name [protected, inherited]
 

Definition at line 52 of file functionWriter.h.

Referenced by FunctionWriter::get_name(), FunctionWriterPtrToPython::write_prototype(), write_prototype(), FunctionWriter::~FunctionWriter(), ~FunctionWriterPtrFromPython(), and FunctionWriterPtrToPython::~FunctionWriterPtrToPython().

CPPType* FunctionWriterPtrFromPython::_pointer_type [private]
 

Definition at line 54 of file functionWriterPtrFromPython.h.

Referenced by FunctionWriterPtrToPython::FunctionWriterPtrToPython(), write_code(), write_prototype(), and ~FunctionWriterPtrFromPython().

CPPType* FunctionWriterPtrFromPython::_type [private]
 

Definition at line 53 of file functionWriterPtrFromPython.h.


The documentation for this class was generated from the following files:
Generated on Thu May 1 22:13:33 2003 for DTool by doxygen1.3