VTK
vtkWrap.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWrap.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
20 #ifndef vtkWrap_h
21 #define vtkWrap_h
22 
23 #include "vtkParse.h"
24 #include "vtkParseHierarchy.h"
25 
30 #define VTK_WRAP_RETURN 1
31 #define VTK_WRAP_ARG 2
32 #define VTK_WRAP_NOSEMI 4
33 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
44 int vtkWrap_IsVoid(ValueInfo *val);
53 int vtkWrap_IsQtEnum(ValueInfo *val);
62 int vtkWrap_IsObject(ValueInfo *val);
64 int vtkWrap_IsStream(ValueInfo *val);
66 int vtkWrap_IsString(ValueInfo *val);
74 int vtkWrap_IsBool(ValueInfo *val);
75 int vtkWrap_IsChar(ValueInfo *val);
87 int vtkWrap_IsScalar(ValueInfo *val);
89 int vtkWrap_IsArray(ValueInfo *val);
90 int vtkWrap_IsNArray(ValueInfo *val);
99 int vtkWrap_IsRef(ValueInfo *val);
100 int vtkWrap_IsConst(ValueInfo *val);
118  HierarchyInfo *hinfo, const char *classname);
119 
126  HierarchyInfo *hinfo, const char *classname);
127 
133 int vtkWrap_IsTypeOf(
134  HierarchyInfo *hinfo, const char *classname, const char *superclass);
135 
140 
146  HierarchyInfo *hinfo, const char *classname);
147 
152 
157 
164  ClassInfo *data, FileInfo *finfo, HierarchyInfo *hinfo);
165 
173  ClassInfo *data, FileInfo *finfo, HierarchyInfo *hinfo);
174 
180  ClassInfo *data, FileInfo *finfo, HierarchyInfo *hinfo);
181 
185 int vtkWrap_GetTupleSize(ClassInfo *data, HierarchyInfo *hinfo);
186 
193  ClassInfo *data, HierarchyInfo *hinfo);
194 
198 const char *vtkWrap_GetTypeName(ValueInfo *val);
199 
204 
209 
214 
219 
226 
234 
250  FILE *fp, ClassInfo *data, ValueInfo *v, const char *name,
251  int idx, int flags);
252 
259  FILE *fp, ValueInfo *v, const char *name, int idx);
260 
265 char *vtkWrap_SafeSuperclassName(const char *name);
266 
267 
268 #ifdef __cplusplus
269 }
270 #endif
271 
272 #endif
int vtkWrap_IsVoidPointer(ValueInfo *val)
Check for common types.
int vtkWrap_IsObject(ValueInfo *val)
The basic types, all are mutually exclusive.
int vtkWrap_GetTupleSize(ClassInfo *data, HierarchyInfo *hinfo)
Get the size of a fixed-size tuple.
void vtkWrap_FindCountHints(ClassInfo *data, FileInfo *finfo, HierarchyInfo *hinfo)
Apply any hints about array sizes, e.g.
int vtkWrap_IsTypeOf(HierarchyInfo *hinfo, const char *classname, const char *superclass)
Check if the class is derived from superclass.
int vtkWrap_IsQtObject(ValueInfo *val)
Check for common types.
int vtkWrap_IsGetVectorMethod(FunctionInfo *f)
Check if a method is from a GetVector method.
int vtkWrap_IsPODPointer(ValueInfo *val)
Check for common types.
int vtkWrap_IsPythonObject(ValueInfo *val)
Check for common types.
All the entries from a hierarchy file.
int vtkWrap_IsVoidFunction(ValueInfo *val)
Check for common types.
int vtkWrap_IsRealNumber(ValueInfo *val)
Subcategories of numeric types.
FileInfo is for header files.
Definition: vtkParseData.h:222
int vtkWrap_IsScalar(ValueInfo *val)
Arrays and pointers.
int vtkWrap_IsBool(ValueInfo *val)
Subcategories of numeric types.
int vtkWrap_IsPointer(ValueInfo *val)
Arrays and pointers.
void vtkWrap_FindNewInstanceMethods(ClassInfo *data, HierarchyInfo *hinfo)
Apply any hints about methods that return a new object instance, i.e.
void vtkWrap_DeclareVariableSize(FILE *fp, ValueInfo *v, const char *name, int idx)
Write an "int" size variable for arrays, initialized to the array size if the size is greater than ze...
int vtkWrap_IsQtEnum(ValueInfo *val)
Check for common types.
int vtkWrap_IsFunction(ValueInfo *val)
The basic types, all are mutually exclusive.
int vtkWrap_IsRef(ValueInfo *val)
Properties that can combine with other properties.
int vtkWrap_IsDestructor(ClassInfo *c, FunctionInfo *f)
True if the method a destructor of the class.
int vtkWrap_CountRequiredArguments(FunctionInfo *f)
Count the number of args that are required.
void vtkWrap_DeclareVariable(FILE *fp, ClassInfo *data, ValueInfo *v, const char *name, int idx, int flags)
Write a variable declaration to a file.
int vtkWrap_IsClassWrapped(HierarchyInfo *hinfo, const char *classname)
Check whether a class is wrapped.
int vtkWrap_IsString(ValueInfo *val)
The basic types, all are mutually exclusive.
int vtkWrap_IsSpecialObject(ValueInfo *val)
Check for common types.
int vtkWrap_IsSpecialType(HierarchyInfo *hinfo, const char *classname)
Check whether the class is not derived from vtkObjectBase.
int vtkWrap_HasPublicDestructor(ClassInfo *data)
Check whether the destructor is public.
int vtkWrap_IsNArray(ValueInfo *val)
Arrays and pointers.
int vtkWrap_IsConstRef(ValueInfo *val)
Properties that can combine with other properties.
int vtkWrap_IsNonConstRef(ValueInfo *val)
Properties that can combine with other properties.
int vtkWrap_HasPublicCopyConstructor(ClassInfo *data)
Check whether the copy constructor is public.
int vtkWrap_IsConstructor(ClassInfo *c, FunctionInfo *f)
True if the method a constructor of the class.
int vtkWrap_IsArray(ValueInfo *val)
Arrays and pointers.
ValueInfo is for typedefs, constants, variables, function parameters, and return values.
Definition: vtkParseData.h:98
const char * vtkWrap_GetTypeName(ValueInfo *val)
Get the name of a type.
void vtkWrap_ApplyUsingDeclarations(ClassInfo *data, FileInfo *finfo, HierarchyInfo *hinfo)
Apply any using declarations that appear in the class.
FunctionInfo is for functions and methods.
Definition: vtkParseData.h:121
int vtkWrap_IsCharPointer(ValueInfo *val)
Check for common types.
ClassInfo is for classes, structs, unions, and namespaces.
Definition: vtkParseData.h:175
void vtkWrap_ExpandTypedefs(ClassInfo *data, FileInfo *finfo, HierarchyInfo *hinfo)
Expand all typedef types that are used in function arguments.
int vtkWrap_IsVoid(ValueInfo *val)
Check for common types.
int vtkWrap_IsStream(ValueInfo *val)
The basic types, all are mutually exclusive.
int vtkWrap_IsVTKObjectBaseType(HierarchyInfo *hinfo, const char *classname)
Check whether the class is derived from vtkObjectBase.
int vtkWrap_IsEnumMember(ClassInfo *data, ValueInfo *arg)
Check if the type of the value is an enum member of the class.
int vtkWrap_IsChar(ValueInfo *val)
Subcategories of numeric types.
int vtkWrap_IsNewInstance(ValueInfo *val)
Hints.
int vtkWrap_IsVTKObject(ValueInfo *val)
Check for common types.
int vtkWrap_IsSetVectorMethod(FunctionInfo *f)
Check if a method is from a SetVector method.
char * vtkWrap_SafeSuperclassName(const char *name)
Makes a superclass name into a valid identifier.
int vtkWrap_IsNumeric(ValueInfo *val)
The basic types, all are mutually exclusive.
int vtkWrap_IsConst(ValueInfo *val)
Properties that can combine with other properties.
int vtkWrap_IsInteger(ValueInfo *val)
Subcategories of numeric types.
int vtkWrap_CountWrappedParameters(FunctionInfo *f)
Count the number of parameters that are wrapped.