KDevelop API Documentation

CodeModel Class Reference

#include <codemodel.h>

Collaboration diagram for CodeModel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CodeModel ()
virtual ~CodeModel ()
template<class T>
T::Ptr create ()
void wipeout ()
FileList fileList ()
const FileList fileList () const
bool hasFile (const QString &name) const
FileDom fileByName (const QString &name)
const FileDom fileByName (const QString &name) const
bool addFile (FileDom file)
void removeFile (FileDom file)
const NamespaceDom globalNamespace () const
virtual void read (QDataStream &stream)
virtual void write (QDataStream &stream) const

Private Member Functions

void addNamespace (NamespaceDom target, NamespaceDom source)
void removeNamespace (NamespaceDom target, NamespaceDom source)
 CodeModel (const CodeModel &source)
void operator= (const CodeModel &source)

Private Attributes

QMap< QString, FileDomm_files
NamespaceDom m_globalNamespace

Friends

class CodeModelItem

Constructor & Destructor Documentation

CodeModel::CodeModel  ) 
 

Definition at line 23 of file codemodel.cpp.

References wipeout().

CodeModel::~CodeModel  )  [virtual]
 

Definition at line 28 of file codemodel.cpp.

CodeModel::CodeModel const CodeModel source  )  [private]
 


Member Function Documentation

bool CodeModel::addFile FileDom  file  ) 
 

Definition at line 165 of file codemodel.cpp.

References addNamespace(), ClassList, EnumList, file, FileDom, FunctionDefinitionList, FunctionList, m_files, m_globalNamespace, NamespaceList, TypeAliasList, and VariableList.

Referenced by JavaSupportPart::customEvent(), JavaDriver::fileParsed(), CppDriver::fileParsed(), AdaStoreWalker::init(), RubySupportPart::parse(), PythonSupportPart::parse(), perlparser::parse(), FixedFormParser::parse(), BashSupportPart::parse(), PHPParser::parseFile(), JavaSupportPart::parseProject(), read(), CppSupportPart::recomputeCodeModel(), CppSupportPart::slotParseFiles(), and SQLSupportPart::updateCatalog().

void CodeModel::addNamespace NamespaceDom  target,
NamespaceDom  source
[private]
 

Definition at line 85 of file codemodel.cpp.

References ClassList, EnumList, FunctionDefinitionList, FunctionList, NamespaceDom, NamespaceList, TypeAliasList, and VariableList.

Referenced by addFile().

template<class T>
T::Ptr CodeModel::create  )  [inline]
 

Definition at line 100 of file codemodel.h.

References T.

Referenced by BashSupportPart::addAttribute(), perlparser::addAttributetoPackage(), perlparser::addAttributetoScript(), perlparser::addClass(), perlparser::addClassMethod(), perlparser::addConstructor(), perlparser::addGlobalSub(), perlparser::addPackageSub(), perlparser::addScript(), perlparser::addScriptSub(), JavaStoreWalker::ctorDef(), JavaSupportPart::customEvent(), AdaStoreWalker::def_designator(), AdaStoreWalker::def_id(), JavaDriver::fileParsed(), StoreWalker::findOrInsertNamespace(), AdaStoreWalker::init(), AdaStoreWalker::insertScopeContainer(), JavaStoreWalker::methodDecl(), JavaStoreWalker::methodDef(), JavaStoreWalker::parameterDef(), RubySupportPart::parse(), PythonSupportPart::parse(), perlparser::parse(), FixedFormParser::parse(), BashSupportPart::parse(), StoreWalker::parseClassSpecifier(), StoreWalker::parseDeclaration(), StoreWalker::parseEnumSpecifier(), PHPParser::parseFile(), StoreWalker::parseFunctionArguments(), StoreWalker::parseFunctionDeclaration(), StoreWalker::parseFunctionDefinition(), PHPParser::parseLines(), JavaSupportPart::parseProject(), StoreWalker::parseTranslationUnit(), StoreWalker::parseTypedef(), FixedFormParser::process(), EnumModel::read(), FunctionModel::read(), NamespaceModel::read(), ClassModel::read(), CppSupportPart::slotParseFiles(), JavaStoreWalker::typeDefinition(), SQLSupportPart::updateCatalog(), and JavaStoreWalker::variableDef().

const FileDom CodeModel::fileByName const QString name  )  const
 

Definition at line 80 of file codemodel.cpp.

References FileDom, and m_files.

FileDom CodeModel::fileByName const QString name  ) 
 

Definition at line 75 of file codemodel.cpp.

References FileDom, and m_files.

Referenced by CppSupportPart::contextMenu(), JavaSupportPart::customEvent(), CodeModelItem::file(), JavaDriver::fileParsed(), CppDriver::fileParsed(), Navigator::functionDeclarationAt(), Navigator::functionDefinitionAt(), CppSupportPart::functionDefinitionAt(), AdaStoreWalker::init(), ClassViewWidget::insertFile(), QtDesignerIntegration::loadSettings(), QtDesignerIntegration::openFunction(), CppSupportPart::recomputeCodeModel(), Navigator::refreshNavBars(), ClassViewWidget::removeFile(), AdaStoreWalker::removeWithReferences(), Navigator::selectFunctionNav(), DoxygenPart::slotDocumentFunction(), and SubclassingDlg::SubclassingDlg().

const FileList CodeModel::fileList  )  const
 

Definition at line 61 of file codemodel.cpp.

References FileList, and m_files.

FileList CodeModel::fileList  ) 
 

Definition at line 52 of file codemodel.cpp.

References FileList, and m_files.

Referenced by FunctionDomBrowserItem::hasImplementation(), FunctionDomBrowserItem::openImplementation(), CodeModelTreeParser::parseCode(), QuickOpenFunctionDialog::QuickOpenFunctionDialog(), ClassViewWidget::refresh(), JavaSupportPart::saveProjectSourceInfo(), CppSupportPart::saveProjectSourceInfo(), typeNameList(), and write().

const NamespaceDom CodeModel::globalNamespace  )  const
 

Definition at line 892 of file codemodel.cpp.

References NamespaceDom.

Referenced by ImplementationWidget::accept(), PHPCodeCompletion::checkForGlobalFunctionArgHint(), PHPCodeCompletion::checkForMethodArgHint(), PHPCodeCompletion::checkForNewInstance(), PHPCodeCompletion::checkForNewInstanceArgHint(), CppNewClassDialog::CppNewClassDialog(), AdaStoreWalker::def_designator(), AdaStoreWalker::def_id(), PHPCodeCompletion::doGlobalMethodCompletion(), QuickOpenClassDialog::findAllClasses(), QuickOpenClassDialog::findClass(), AdaStoreWalker::generic_decl(), PHPCodeCompletion::getClassMethodsAndVariables(), PHPCodeCompletion::getClassName(), ImplementationWidget::ImplementationWidget(), AdaStoreWalker::init(), AdaStoreWalker::insertScopeContainer(), AdaStoreWalker::library_item(), BashSupportPart::parse(), CppNewClassDialog::parseClass(), HierarchyDialog::refresh(), ViewCombosOp::refreshClasses(), ViewCombosOp::refreshFunctions(), ViewCombosOp::refreshNamespaces(), CppNewClassDialog::setCompletionBasename(), and AdaStoreWalker::spec_decl_part().

bool CodeModel::hasFile const QString name  )  const
 

Definition at line 70 of file codemodel.cpp.

References m_files.

Referenced by perlparser::addUseLib(), CppSupportPart::contextMenu(), JavaSupportPart::customEvent(), JavaDriver::fileParsed(), CppDriver::fileParsed(), Navigator::functionDeclarationAt(), Navigator::functionDefinitionAt(), CppSupportPart::functionDefinitionAt(), AdaStoreWalker::init(), RubySupportPart::maybeParse(), PythonSupportPart::maybeParse(), PHPSupportPart::maybeParse(), FortranSupportPart::maybeParse(), QtDesignerIntegration::openFunction(), BashSupportPart::parse(), CppSupportPart::recomputeCodeModel(), RubySupportPart::removedFilesFromProject(), PythonSupportPart::removedFilesFromProject(), PHPSupportPart::removedFilesFromProject(), FortranSupportPart::removedFilesFromProject(), BashSupportPart::removedFilesFromProject(), AdaSupportPart::removedFilesFromProject(), PerlSupportPart::removeWithReference(), JavaSupportPart::removeWithReferences(), CppSupportPart::removeWithReferences(), DoxygenPart::slotDocumentFunction(), PHPSupportPart::slotTextChanged(), and SubclassingDlg::SubclassingDlg().

void CodeModel::operator= const CodeModel source  )  [private]
 

void CodeModel::read QDataStream stream  )  [virtual]
 

Definition at line 1102 of file codemodel.cpp.

References addFile(), file, FileDom, and m_files.

void CodeModel::removeFile FileDom  file  ) 
 

Definition at line 198 of file codemodel.cpp.

References ClassList, EnumList, file, FileDom, FunctionDefinitionList, FunctionList, m_files, m_globalNamespace, NamespaceList, removeNamespace(), TypeAliasList, and VariableList.

Referenced by AdaStoreWalker::init(), RubySupportPart::maybeParse(), PythonSupportPart::maybeParse(), PHPSupportPart::maybeParse(), FortranSupportPart::maybeParse(), BashSupportPart::parse(), RubySupportPart::removedFilesFromProject(), PythonSupportPart::removedFilesFromProject(), PHPSupportPart::removedFilesFromProject(), PascalSupportPart::removedFilesFromProject(), FortranSupportPart::removedFilesFromProject(), BashSupportPart::removedFilesFromProject(), AdaSupportPart::removedFilesFromProject(), PerlSupportPart::removeWithReference(), JavaSupportPart::removeWithReferences(), CppSupportPart::removeWithReferences(), AdaStoreWalker::removeWithReferences(), and PHPSupportPart::slotTextChanged().

void CodeModel::removeNamespace NamespaceDom  target,
NamespaceDom  source
[private]
 

Definition at line 123 of file codemodel.cpp.

References ClassList, EnumList, FunctionDefinitionList, FunctionList, NamespaceDom, NamespaceList, TypeAliasList, and VariableList.

Referenced by removeFile().

void CodeModel::wipeout  ) 
 

Definition at line 32 of file codemodel.cpp.

References m_files, m_globalNamespace, and NamespaceDom.

Referenced by ProjectManager::closeProject(), CodeModel(), SQLSupportPart::updateCatalog(), PascalStoreWalker::wipeout(), and AdaStoreWalker::wipeout().

void CodeModel::write QDataStream stream  )  const [virtual]
 

Definition at line 1116 of file codemodel.cpp.

References fileList(), and FileList.


Friends And Related Function Documentation

friend class CodeModelItem [friend]
 

Definition at line 135 of file codemodel.h.


Member Data Documentation

QMap<QString, FileDom> CodeModel::m_files [private]
 

Definition at line 129 of file codemodel.h.

Referenced by addFile(), fileByName(), fileList(), hasFile(), read(), removeFile(), and wipeout().

NamespaceDom CodeModel::m_globalNamespace [private]
 

Definition at line 130 of file codemodel.h.

Referenced by addFile(), removeFile(), and wipeout().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:38:15 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003