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

FunctionWriterPtrToPython Class Reference

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

#include <functionWriterPtrToPython.h>

Inheritance diagram for FunctionWriterPtrToPython:

FunctionWriter List of all members.

Public Member Functions

 FunctionWriterPtrToPython (CPPType *type)
virtual ~FunctionWriterPtrToPython ()
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_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 generates a PyObject class wrapper object around the corresponding C++ pointer.

Definition at line 40 of file functionWriterPtrToPython.h.


Constructor & Destructor Documentation

FunctionWriterPtrToPython::FunctionWriterPtrToPython CPPType type  ) 
 

Definition at line 38 of file functionWriterPtrToPython.cxx.

References FunctionWriterPtrFromPython::_pointer_type.

FunctionWriterPtrToPython::~FunctionWriterPtrToPython  )  [virtual]
 

Definition at line 55 of file functionWriterPtrToPython.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 * FunctionWriterPtrToPython::get_pointer_type  )  const
 

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

Definition at line 111 of file functionWriterPtrToPython.cxx.

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

Outputs the code for the function.

Reimplemented from FunctionWriter.

Definition at line 83 of file functionWriterPtrToPython.cxx.

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

Outputs the prototype for the function.

Reimplemented from FunctionWriter.

Definition at line 68 of file functionWriterPtrToPython.cxx.

References FunctionWriter::_name, _pointer_type, _type, InterfaceMakerPythonObj::get_builder_name(), 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(), write_prototype(), FunctionWriterPtrFromPython::write_prototype(), FunctionWriter::~FunctionWriter(), FunctionWriterPtrFromPython::~FunctionWriterPtrFromPython(), and ~FunctionWriterPtrToPython().

CPPType* FunctionWriterPtrToPython::_pointer_type [private]
 

Definition at line 51 of file functionWriterPtrToPython.h.

Referenced by write_prototype(), and ~FunctionWriterPtrToPython().

CPPType* FunctionWriterPtrToPython::_type [private]
 

Definition at line 50 of file functionWriterPtrToPython.h.

Referenced by write_prototype().


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