KDevelop API Documentation

NamespaceModel Class Reference

#include <codemodel.h>

Inheritance diagram for NamespaceModel:

ClassModel CodeModelItem KShared FileModel List of all members.

Public Types

typedef NamespaceDom Ptr

Public Member Functions

virtual bool isClass () const
virtual bool isNamespace () const
NamespaceList namespaceList ()
const NamespaceList namespaceList () const
bool hasNamespace (const QString &name) const
NamespaceDom namespaceByName (const QString &name)
const NamespaceDom namespaceByName (const QString &name) const
bool addNamespace (NamespaceDom ns)
void removeNamespace (NamespaceDom ns)
virtual void read (QDataStream &stream)
virtual void write (QDataStream &stream) const

Protected Member Functions

 NamespaceModel (CodeModel *model)

Private Member Functions

 NamespaceModel (const NamespaceModel &source)
void operator= (const NamespaceModel &source)

Private Attributes

QMap< QString, NamespaceDomm_namespaces

Member Typedef Documentation

typedef NamespaceDom NamespaceModel::Ptr
 

Reimplemented from ClassModel.

Reimplemented in FileModel.

Definition at line 312 of file codemodel.h.


Constructor & Destructor Documentation

NamespaceModel::NamespaceModel CodeModel model  )  [protected]
 

Definition at line 297 of file codemodel.cpp.

References NamespaceModel().

Referenced by NamespaceModel().

NamespaceModel::NamespaceModel const NamespaceModel source  )  [private]
 


Member Function Documentation

bool NamespaceModel::addNamespace NamespaceDom  ns  ) 
 

Definition at line 336 of file codemodel.cpp.

References addNamespace(), and m_namespaces.

Referenced by addNamespace(), and read().

bool NamespaceModel::hasNamespace const QString name  )  const
 

Definition at line 331 of file codemodel.cpp.

References hasNamespace(), and m_namespaces.

Referenced by hasNamespace().

virtual bool NamespaceModel::isClass  )  const [inline, virtual]
 

Reimplemented from ClassModel.

Definition at line 314 of file codemodel.h.

virtual bool NamespaceModel::isNamespace  )  const [inline, virtual]
 

Reimplemented from CodeModelItem.

Definition at line 315 of file codemodel.h.

const NamespaceDom NamespaceModel::namespaceByName const QString name  )  const
 

Definition at line 326 of file codemodel.cpp.

References m_namespaces, namespaceByName(), and NamespaceDom.

NamespaceDom NamespaceModel::namespaceByName const QString name  ) 
 

Definition at line 321 of file codemodel.cpp.

References m_namespaces, namespaceByName(), and NamespaceDom.

Referenced by namespaceByName().

const NamespaceList NamespaceModel::namespaceList  )  const
 

Definition at line 312 of file codemodel.cpp.

References m_namespaces.

NamespaceList NamespaceModel::namespaceList  ) 
 

Definition at line 303 of file codemodel.cpp.

References m_namespaces, and NamespaceList.

Referenced by CodeModelTreeParser::parseNamespace(), and write().

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

void NamespaceModel::read QDataStream stream  )  [virtual]
 

Reimplemented from ClassModel.

Reimplemented in FileModel.

Definition at line 1016 of file codemodel.cpp.

References addNamespace(), CodeModelItem::codeModel(), CodeModel::create(), m_namespaces, and read().

Referenced by read().

void NamespaceModel::removeNamespace NamespaceDom  ns  ) 
 

Definition at line 345 of file codemodel.cpp.

References m_namespaces, and removeNamespace().

Referenced by removeNamespace().

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

Reimplemented from ClassModel.

Reimplemented in FileModel.

Definition at line 1031 of file codemodel.cpp.

References namespaceList(), and write().

Referenced by write().


Member Data Documentation

QMap<QString, NamespaceDom> NamespaceModel::m_namespaces [private]
 

Definition at line 329 of file codemodel.h.

Referenced by addNamespace(), hasNamespace(), namespaceByName(), namespaceList(), read(), and removeNamespace().


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:04 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003