VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkWrapPythonOverload.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00016 #ifndef VTK_WRAP_PYTHON_OVERLOAD_H 00017 #define VTK_WRAP_PYTHON_OVERLOAD_H 00018 00019 #include "vtkParse.h" 00020 #include "vtkParseData.h" 00021 #include "vtkParseHierarchy.h" 00022 00023 /* output the method table for all overloads of a particular method */ 00024 void vtkWrapPython_OverloadMethodDef( 00025 FILE *fp, const char *classname, ClassInfo *data, int *overloadMap, 00026 FunctionInfo **wrappedFunctions, int numberOfWrappedFunctions, int fnum, 00027 int numberOfOccurrences, int is_vtkobject, int all_legacy); 00028 00029 /* a master method to choose which overload to call */ 00030 void vtkWrapPython_OverloadMasterMethod( 00031 FILE *fp, const char *classname, int *overloadMap, int maxArgs, 00032 FunctionInfo **wrappedFunctions, int numberOfWrappedFunctions, int fnum, 00033 int is_vtkobject, int all_legacy); 00034 00035 /* generate an int array that maps arg counts to overloads */ 00036 int *vtkWrapPython_ArgCountToOverloadMap( 00037 FunctionInfo **wrappedFunctions, int numberOfWrappedFunctions, 00038 int fnum, int is_vtkobject, int *nmax, int *overlap); 00039 00040 #endif /* VTK_WRAP_PYTHON_OVERLOAD_H */