codemodel_utils.h
Go to the documentation of this file.
75 template <class Pred> void findFunctionDefinitions( Pred pred, const FileList& fileList, FunctionDefinitionList & lst );
86 template <class Pred> void findFunctionDefinitions( Pred pred, const NamespaceDom& ns, FunctionDefinitionList & lst );
97 template <class Pred> void findFunctionDefinitions( Pred pred, const NamespaceList& namespaceList, FunctionDefinitionList & lst );
108 template <class Pred> void findFunctionDefinitions( Pred pred, const ClassList& classList, FunctionDefinitionList & lst );
119 template <class Pred> void findFunctionDefinitions( Pred pred, const FunctionDefinitionList& functionDefinitionList, FunctionDefinitionList & lst );
130 template <class Pred> void findFunctionDefinitions( Pred pred, const ClassDom& klass, FunctionDefinitionList & lst );
141 template <class Pred> void findFunctionDefinitions( Pred pred, const FunctionDefinitionDom& fun, FunctionDefinitionList & lst );
152 template <class Pred> void findFunctionDeclarations( Pred pred, const FileList& fileList, FunctionList & lst );
163 template <class Pred> void findFunctionDeclarations( Pred pred, const NamespaceDom& ns, FunctionList & lst );
174 template <class Pred> void findFunctionDeclarations( Pred pred, const NamespaceList& namespaceList, FunctionList & lst );
185 template <class Pred> void findFunctionDeclarations( Pred pred, const ClassList& classList, FunctionList & lst );
196 template <class Pred> void findFunctionDeclarations( Pred pred, const FunctionList& functionList, FunctionList & lst );
207 template <class Pred> void findFunctionDeclarations( Pred pred, const ClassDom& klass, FunctionList & lst );
218 template <class Pred> void findFunctionDeclarations( Pred pred, const FunctionDom& fun, FunctionList & lst );
224 void findFunctionDefinitions( Pred pred, const FileList& fileList, FunctionDefinitionList & lst )
239 void findFunctionDefinitions( Pred pred, const NamespaceList& namespaceList, FunctionDefinitionList & lst )
246 void findFunctionDefinitions( Pred pred, const ClassList& classList, FunctionDefinitionList & lst )
253 void findFunctionDefinitions( Pred pred, const FunctionDefinitionList& functionDefinitionList, FunctionDefinitionList & lst )
255 for( FunctionDefinitionList::ConstIterator it=functionDefinitionList.begin(); it!=functionDefinitionList.end(); ++it )
267 void findFunctionDefinitions( Pred pred, const FunctionDefinitionDom& fun, FunctionDefinitionList & lst )
291 void findFunctionDeclarations( Pred pred, const NamespaceList& namespaceList, FunctionList & lst )
305 void findFunctionDeclarations( Pred pred, const FunctionList& functionList, FunctionList & lst )
364 void processClasses(FunctionList &list, const ClassDom dom, TQMap<FunctionDom, Scope> &relations);
372 void processClasses(FunctionList &list, const ClassDom dom, TQMap<FunctionDom, Scope> &relations, const NamespaceDom &nsdom);
378 void processNamespaces(FunctionList &list, const NamespaceDom dom, TQMap<FunctionDom, Scope> &relations);
397 void processClasses(FunctionDefinitionList &list, const ClassDom dom, TQMap<FunctionDefinitionDom, Scope> &relations);
405 void processClasses(FunctionDefinitionList &list, const ClassDom dom, TQMap<FunctionDefinitionDom, Scope> &relations, const NamespaceDom &nsdom);
411 void processNamespaces(FunctionDefinitionList &list, const NamespaceDom dom, TQMap<FunctionDefinitionDom, Scope> &relations);
430 bool compareDeclarationToDefinition(const FunctionDom& dec, const FunctionDefinitionDom& def, const std::set<NamespaceImportModel>& nsImports);
AllFunctions allFunctionsDetailed(const FileDom &dom)
Definition: codemodel_utils.cpp:245
int findLastMethodLine(ClassDom aClass, CodeModelItem::Access access)
Finds the last occurrence (line of file wise) of a method inside a class declaration with specific ac...
Definition: codemodel_utils.cpp:455
FunctionDefinitionList allFunctionDefinitionsExhaustive(FileDom &dom)
Definition: codemodel_utils.cpp:393
AllFunctionDefinitions allFunctionDefinitionsDetailed(const FileDom &dom)
Definition: codemodel_utils.cpp:271
FunctionList allFunctionsExhaustive(FileDom &dom)
Definition: codemodel_utils.cpp:383
Code Model - a memory symbol store.
Predicate for use with findFunctionDefintions.
Definition: codemodel_utils.h:437
void findFunctionDefinitions(Pred pred, const FileList &fileList, FunctionDefinitionList &lst)
Finds function definitions which match given predicate in files.
Definition: codemodel_utils.h:224
Information about function definitions.
Definition: codemodel_utils.h:341
The list of code model namespaces.
The list of code model function definitions.
TQString accessSpecifierToString(CodeModelItem::Access access)
Get the string representation of an accesss pecifier.
Definition: codemodel_utils.cpp:489
int findLastVariableLine(ClassDom aClass, CodeModelItem::Access access)
Same as above, but finds a membervariable instead of a method.
Definition: codemodel_utils.cpp:472
ClassDom findClassByPosition(NamespaceModel *nameSpace, int line, int col)
Finds a class by its position in a file(position inside the part of the file, where the class is decl...
Definition: codemodel_utils.cpp:404
The list of code model classes.
Safe pointer to the FunctionModel.
Safe pointer to the ClassModel.
TQMap< FunctionDefinitionDom, Scope > relations
Scope of function definitions.
Definition: codemodel_utils.h:343
void findFunctionDeclarations(Pred pred, const FileList &fileList, FunctionList &lst)
Finds function declarations which match given predicate in files.
Definition: codemodel_utils.h:276
The list of code model files.
Safe pointer to the FunctionDefinitionModel.
Safe pointer to the FileModel.
Namespace which contains utility functions and classes for the CodeModel.
Definition: codemodel_utils.cpp:24
FunctionList allFunctions(const FileDom &dom)
Definition: codemodel_utils.cpp:219
Safe pointer to the NamespaceModel.
The list of code model functions.
The predicate.
bool compareDeclarationToDefinition(const FunctionDom &dec, const FunctionDefinitionDom &def)
Compares a declaration and a defintion of a function.
Definition: codemodel_utils.cpp:320