VTK
Classes | Typedefs | Functions
vtkParseMerge.h File Reference
#include "vtkParseData.h"
#include "vtkParseHierarchy.h"
Include dependency graph for vtkParseMerge.h:

Go to the source code of this file.

Classes

struct  _MergeInfo
 This file contains utility functions for merging together the methods for a class with those inherited from all superclasses. More...
 

Typedefs

typedef struct _MergeInfo MergeInfo
 This file contains utility functions for merging together the methods for a class with those inherited from all superclasses. More...
 

Functions

MergeInfovtkParseMerge_MergeSuperClasses (FileInfo *finfo, NamespaceInfo *data, ClassInfo *classInfo)
 Merge all inherited methods into the ClassInfo. More...
 
void vtkParseMerge_FreeMergeInfo (MergeInfo *info)
 Free the MergeInfo object. More...
 
void vtkParseMerge_MergeHelper (FileInfo *finfo, const NamespaceInfo *data, const HierarchyInfo *hinfo, const char *classname, FILE *hintfile, MergeInfo *info, ClassInfo *merge)
 Recursive suproutine to inherit methods from "classname". More...
 

Typedef Documentation

typedef struct _MergeInfo MergeInfo

This file contains utility functions for merging together the methods for a class with those inherited from all superclasses.

This struct is meant to supplement ClassInfo, it gives information about which class (or classes) each method was inherited from

Function Documentation

MergeInfo* vtkParseMerge_MergeSuperClasses ( FileInfo finfo,
NamespaceInfo data,
ClassInfo classInfo 
)

Merge all inherited methods into the ClassInfo.

This will find and parse the header files for all the superclasses, and recursively add all inherited superclass methods into one ClassInfo. The returned MergeInfo object provides information about which class each inherited method was inherited from.

void vtkParseMerge_FreeMergeInfo ( MergeInfo info)

Free the MergeInfo object.

void vtkParseMerge_MergeHelper ( FileInfo finfo,
const NamespaceInfo data,
const HierarchyInfo hinfo,
const char *  classname,
FILE *  hintfile,
MergeInfo info,
ClassInfo merge 
)

Recursive suproutine to inherit methods from "classname".

The class named by "classname" should be a superclass of the ClassInfo. If the MergeInfo is not provided (if it is NULL), then the only methods that are brought into the class are ones that are explicitly named by using declarations. The hintfile can also be NULL, if there is no hints file.