KDevelop API Documentation

CodeModel Class Reference

#include <codemodel.h>

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


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 addFile(), addNamespace(), file, m_files, and m_globalNamespace.

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

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

Definition at line 85 of file codemodel.cpp.

References addNamespace(), ClassList, EnumList, FunctionDefinitionList, FunctionList, NamespaceList, TypeAliasList, and VariableList.

Referenced by addFile(), and addNamespace().

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(), 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(), CppSupportPart::parseProject(), StoreWalker::parseTranslationUnit(), StoreWalker::parseTypedef(), FixedFormParser::process(), EnumModel::read(), FunctionModel::read(), NamespaceModel::read(), ClassModel::read(), JavaStoreWalker::typeDefinition(), SQLSupportPart::updateCatalog(), and JavaStoreWalker::variableDef().

const FileDom CodeModel::fileByName const QString name  )  const
 

Definition at line 80 of file codemodel.cpp.

References fileByName(), FileDom, and m_files.

FileDom CodeModel::fileByName const QString name  ) 
 

Definition at line 75 of file codemodel.cpp.

References fileByName(), FileDom, and m_files.

Referenced by ClassViewPart::addFile(), CppSupportPart::contextMenu(), JavaSupportPart::customEvent(), CodeModelItem::file(), fileByName(), JavaDriver::fileParsed(), CppDriver::fileParsed(), CppSupportPart::functionDefinitionAt(), AdaStoreWalker::init(), ClassViewWidget::insertFile(), CppSupportPart::recomputeCodeModel(), ClassViewWidget::removeFile(), ClassViewPart::removeFile(), AdaStoreWalker::removeWithReferences(), SubclassingDlg::SubclassingDlg(), and ClassViewPart::syncCombos().

const FileList CodeModel::fileList  )  const
 

Definition at line 61 of file codemodel.cpp.

References m_files.

FileList CodeModel::fileList  ) 
 

Definition at line 52 of file codemodel.cpp.

References FileList, and m_files.

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

const NamespaceDom CodeModel::globalNamespace  )  const
 

Definition at line 892 of file codemodel.cpp.

References m_globalNamespace.

Referenced by ClassViewPart::addFile(), 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(), AdaStoreWalker::init(), AdaStoreWalker::insertScopeContainer(), AdaStoreWalker::library_item(), BashSupportPart::parse(), CppNewClassDialog::parseClass(), ViewCombosOp::processNamespace(), HierarchyDialog::refresh(), ViewCombosOp::refreshClasses(), ViewCombosOp::refreshFunctions(), ViewCombosOp::refreshNamespaces(), CppNewClassDialog::setCompletionBasename(), AdaStoreWalker::spec_decl_part(), and ClassViewPart::syncCombos().

bool CodeModel::hasFile const QString name  )  const
 

Definition at line 70 of file codemodel.cpp.

References hasFile(), and m_files.

Referenced by perlparser::addUseLib(), CppSupportPart::contextMenu(), JavaSupportPart::customEvent(), JavaDriver::fileParsed(), CppDriver::fileParsed(), CppSupportPart::functionDefinitionAt(), hasFile(), AdaStoreWalker::init(), PythonSupportPart::maybeParse(), PHPSupportPart::maybeParse(), FortranSupportPart::maybeParse(), BashSupportPart::parse(), CppSupportPart::recomputeCodeModel(), PythonSupportPart::removedFilesFromProject(), PHPSupportPart::removedFilesFromProject(), FortranSupportPart::removedFilesFromProject(), BashSupportPart::removedFilesFromProject(), AdaSupportPart::removedFilesFromProject(), PerlSupportPart::removeWithReference(), JavaSupportPart::removeWithReferences(), CppSupportPart::removeWithReferences(), 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, m_files, and read().

Referenced by read().

void CodeModel::removeFile FileDom  file  ) 
 

Definition at line 198 of file codemodel.cpp.

References file, m_files, m_globalNamespace, removeFile(), and removeNamespace().

Referenced by AdaStoreWalker::init(), PythonSupportPart::maybeParse(), PHPSupportPart::maybeParse(), FortranSupportPart::maybeParse(), BashSupportPart::parse(), PythonSupportPart::removedFilesFromProject(), PHPSupportPart::removedFilesFromProject(), PascalSupportPart::removedFilesFromProject(), FortranSupportPart::removedFilesFromProject(), BashSupportPart::removedFilesFromProject(), AdaSupportPart::removedFilesFromProject(), removeFile(), 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 removeNamespace().

Referenced by removeFile(), and removeNamespace().

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 write().

Referenced by write().


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(), globalNamespace(), 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.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:00 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003